I tried this and the compile was successful. I have been following the book strictly, but it is always possible that I fatfingered something along the way.
Chris -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Nikolai Sent: Thursday, April 06, 2006 5:51 PM To: LFS Support List Subject: Re: Compile problem with module-init-tools Parker, Chris escreveu: > Up until now, I have been cruising along. I am on step 6.50 and am getting a > compile error trying to make module-init-tools-3.1. The error is: > > gcc -g -O2 -Wunused -Wall -o lsmod lsmod.o -Wl,-Bstatic -lz -Wl,-Bdynamic > /usr/bin/ld: cannot find -lz > collect2: ld returned 1 exit status > make: *** [lsmod] Error 1 > > I assume this to be a problem with one of the compression utilities, but I > have checked those builds and they looked good. > > Thanks, > Chris > It appears that it can't link with libz. Test the build with the following commands: echo "int main(){}" >> dummy.c && gcc dummy.c -lz If you get the same error, try rebuilding and reinstalling zlib. Follow the book strictly and you will get what you want... -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
