fileutils and glibc 2.2

Dennis Leeuw dleeuw at made-it.com
Sun Nov 26 22:24:22 PST 2000


warren mann wrote:

> Dennis Leeuw wrote:
>
> > Hi all,
> >
> > A little problem arises when compiling fileutils with glibc 2.2 it exits
> > with:
> > make[2]: Entering directory `/usr/src/fileutils-4.0/src'
> > gcc -DLOCALEDIR=\"/usr/share/locale\" -DSHAREDIR=\"/usr/share\"
> > -DHAVE_CONFIG_H -I.. -I. -I../lib -I../intl  -D_FILE_OFFSET_BITS=64  -g
> > -O2 -c dircolors.c
> > dircolors.c:40: macro `strndup' used without args
> > make[2]: *** [dircolors.o] Error 1
> > make[2]: Leaving directory `/usr/src/fileutils-4.0/src'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/usr/src/fileutils-4.0'
> > make: *** [all-recursive-am] Error 2
> >
> > on line 40 of dircolors.c it reads:
> > char *strndup();
> >
> > Since I don't know much about C, can someone tell what is wrong and how
> > to fix it?
> >
> > Thanks,
> >
> > Dennis
>
> comment out line 40, like so:
>
> /* char * strndup(); */
>
>

Okay, that does it. But why?
Why didn't that line create any problems with glic 2.1.3 and does with 2.2?


Thanks,

Dennis

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dleeuw.vcf
Type: text/x-vcard
Size: 235 bytes
Desc: Card for Dennis Leeuw
URL: <http://lists.linuxfromscratch.org/pipermail/blfs-support/attachments/20001127/6a8acb84/attachment.vcf>


More information about the blfs-support mailing list