Click to See Complete Forum and Search --> : Fileutils won't compile in LFS


Llhorian
11-16-2000, 07:37 AM
I want to give LFS (Linux From Scratch) a try so I downloaded all the packages and started compile as per the instructions but fileutils gives me errors and then abors the make process.
It gives the following errors:
dircolors.c:40: macro `strndup' used without args
make[2]: *** [dircolors.o] Error 1
make[2]: Leaving directory `/lfs/usr/src/fileutils-4.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/lfs/usr/src/fileutils-4.0'
make: *** [all-recursive-am] Error 2

So..what did I do wrong?
The command I gave was exactly following the instructions:
./configure --disable-nls --prefix=/lfs/usr --bindir=/lfs/bin &&
make LDFLAGS=-static &&
make install &&
cd /lfs/usr/bin && ln -s ../../bin/install install



------------------
--Llhorian
'Linux, it's a little bit different.'

ph34r
11-16-2000, 10:10 AM
I think there was a "fixed" version of that package at one time, with changes in it to make it compile properly. Check the LFS docs, a download for it should be listed. You also probably want to subscribe to the lfs lists, or maybe check the news server mirror of the list.

Llhorian
11-16-2000, 10:15 AM
Yes, I just subscribed to their mailing list and was told it was the glibc that ships with Debian unstable that causes the problem.
An editing of the dircolors.c solved it http://www.linuxnewbie.org/ubb/smile.gif

------------------
--Llhorian
'Linux, it's a little bit different.'