[Top][All Lists]

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

compile error in

From: Andreas Thienemann
Subject: compile error in
Date: Fri, 20 Apr 2001 01:39:49 +0200 (CEST)


while trying to compile the current fileutils-4.0 on a hppa-linux
machine with "gcc version 3.0 20010315 (prerelease)" (current parisc CVS)
I'm getting the following error in dircolors.c:

Making all in src
make[2]: Entering directory `/mnt/lfs/usr/src/fileutils-4.0/src'
gcc -DLOCALEDIR=\"/mnt/lfs/usr/share/locale\"
-DHAVE_CONFIG_H -I.. -I. -I../lib -I../intl  -D_FILE_OFFSET_BITS=64  -g
-O2 -c dircolors.c
dircolors.c:40:15: macro "strndup" requires 2 arguments, but only 1 given
dircolors.c:40: `strndup' redeclared as different kind of symbol
/usr/include/string.h:128: previous declaration of `strndup'
make[2]: *** [dircolors.o] Error 1
make[2]: Leaving directory `/mnt/lfs/usr/src/fileutils-4.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/lfs/usr/src/fileutils-4.0'
make: *** [all-recursive-am] Error 2

The offending line is: "char *strndup();"
Commenting it out does at least result in a successful (?) compile run
without errors.


reply via email to

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