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

Reply via email to