bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

patch-2.5.4 not building on FreeBSD-5.1


From: Sam Halliday
Subject: patch-2.5.4 not building on FreeBSD-5.1
Date: Sat, 6 Dec 2003 15:18:32 +0000

hi there,

i wish to have all the GNU tools on all the OS i use, so i tried to compile
patch-2.5.4 on a FreeBSD-5.1 pentium4 system (i didnt install anything from
the ports as i'd prefer to compile them myself to have recent verisons of
everything). unfortunately the compile fails, does anyone know how to fix this?

I have installed GNU libiconv and gettext, and nothing else beyond the standard
at this stage, the problem is coming from the file pch.c:113

   setmode (STDIN_FILENO, O_BINARY);

but the FreeBSD man page for setmode states:

  void * setmode(const char *mode_str);

so we get an error during the compile as pch.c tries to pass 2 parameters to
setmode. i cant seem to find glib docs for this function

gcc -c -I/opt/sam/include -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\"  -I. -I. -O2
-fomit-frame-pointer -march=pentium4 pch.c
pch.c: In function `open_patch_file':
pch.c:113: too many arguments to function `setmode'
*** Error code 1

Stop in /usr/src/sam/gnutools/patch-2.5.4.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]