urgent

scott thomason scott at industrial-linux.org
Wed Jan 24 04:27:15 PST 2001


A search for this error from the LFS site will give you the answer. Simply delete that line of code (the strndup at line 40 in dircolors.c). But next time, search first, please!
---scott

On Wed, 24 Jan 2001 17:27:02 -0500 (GMT), Vibhor Chaswal said:

> Hi,
>  
>  	I am having a problem installing LFS using Red hat 7.0.
>  
>  I have stuck up while installing fileutils-4.0. The configuration is
>  successful from the command :
>  
>  "./configure --disable-nls --prefix=$LFS/usr --bindir=$LFS/bin "
>  
>  
>  but while recompliling with the make utility using the next command :
>  
>  
>  "make LDFLAGS=-static"
>  
>  i get the error messages saying :
>  
>  
>  dircolors.c:40:16:not enough arguments for macro "strndup"  
>  
>  I checked the file dircolors.c, the variable strndup is defined as :
>  
>  line 40:      char *strndup ();
>  
>  
>  
>  while it is later used in the function xstrndup as
>  
>  line 125:     xstrndup (const char *s, size_t n);
>  line 127:     char *new = strdup (s, n);
>  
>  what are the arguments to be given to the strndup to overcome this
>  problem. Please answer this at the reply address since I am not on the
>  mailing list right now.
>  
>  
>  		Thanx,
>  		VC
>  
>  
>  
>  -- 
>  Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
>  and put unsubscribe in the subject header of the message
>  
>  


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




More information about the lfs-dev mailing list