Compileproblems with fileutils-4.0

Gerard Beekmans gerard at
Thu Jan 11 05:59:02 PST 2001

On January 11, 2001 09:44 am, root wrote:
> Im trying to compile fileutils static as described in the LFS book, however
> it doesnt work.
> This is what i get at the end of the build procedure:
> dircolors.c:40:15: not enough arguments for macro "strndup"
> make[2]: *** [dircolors.o] Error 1
> make[2]: Leaving directory `/mnt/junx/usr/src/fileutils-4.0/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/mnt/junx/usr/src/fileutils-4.0'
> make: *** [all-recursive-am] Error 2
> I am using RedHat 7 to compile fileutils. What am i doing wrong?

Download the patch from

	cd fileutils-4.0
	patch -Np1 -i /path/to/fileutils-4.0-glibc-2.2.patch

Continue compilation, thing should work now.

In your situation also apply the gcc patch later on (the patch is found in 
the same directory as the fileutils patch):
	cd gcc-2.95.2
	patch -Np1 -i /path/to/gcc-2.95.2-glibc-2.2.patch

Gerard Beekmans

-*- If Linux doesn't have the solution, you have the wrong problem -*-

Unsubscribe: send email to lfs-discuss-request at
and put unsubscribe in the subject header of the message

More information about the lfs-dev mailing list