Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Sorry, I seem to be hammering this forum at the moment....
I'm trying to install glib in chapter 5 and got as far as 'make install' which gives these errors at the end
of all the gumf it spews:
make: Entering directory `/lfs/sources/glibc-2.3.2/iconv'
/usr/bin/install -c -m 644 iconv.h /tools/include/iconv.h
/usr/bin/install -c -m 644 gconv.h /tools/include/gconv.h
gcc -B/tools/bin/ -nostdlib -nostartfiles -o /lfs/sources/glibc-build/iconv/iconv_prog -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2 -Wl,-z,combreloc /lfs/sources/glibc-build/csu/crt1.o /lfs/sources/glibc-build/csu/crti.o `gcc -B/tools/bin/ --print-file-name=crtbegin.o` /lfs/sources/glibc-build/iconv/iconv_prog.o /lfs/sources/glibc-build/iconv/iconv_charmap.o /lfs/sources/glibc-build/iconv/charmap.o /lfs/sources/glibc-build/iconv/charmap-dir.o /lfs/sources/glibc-build/iconv/linereader.o /lfs/sources/glibc-build/iconv/dummy-repertoire.o /lfs/sources/glibc-build/iconv/simple-hash.o /lfs/sources/glibc-build/iconv/xstrdup.o /lfs/sources/glibc-build/iconv/xmalloc.o -Wl,-rpath-link=/lfs/sources/glibc-build:/lfs/sources/glibc-build/math:/lfs/sources/glibc-build/elf:/lfs/sources/glibc-build/dlfcn:/lfs/sources/glibc-build/nss:/lfs/sources/glibc-build/nis:/lfs/sources/glibc-build/rt:/lfs/sources/glibc-build/resolv:/lfs/sources/glibc-build/crypt:/lfs/sources/glibc-build/linuxthreads /lfs/sources/glibc-build/libc.so.6 /lfs/sources/glibc-build/libc_nonshared.a -lgcc `gcc -B/tools/bin/ --print-file-name=crtend.o` /lfs/sources/glibc-build/csu/crtn.o
/lfs/sources/glibc-build/libc.so.6(*IND*+0x0): multiple definition of `__udivdi3@GLIBC_2.0'
/lfs/sources/glibc-build/libc.so.6(.text+0x59f): first defined here
/lfs/sources/glibc-build/libc.so.6: In function `__umoddi3@GLIBC_2.0':
/lfs/sources/glibc-build/libc.so.6(.text+0x5b7): multiple definition of `__umoddi3@GLIBC_2.0'
/lfs/sources/glibc-build/libc.so.6(.data+0x56c): multiple definition of `__ctype_toupper@GLIBC_2.0'
/lfs/sources/glibc-build/libc.so.6(*IND*+0x0): multiple definition of `_res@GLIBC_2.0'
/lfs/sources/glibc-build/libc.so.6(.bss+0x1ba0): first defined here
/lfs/sources/glibc-build/libc.so.6(.bss+0xe0): multiple definition of `errno@GLIBC_2.0'
/lfs/sources/glibc-build/libc.so.6(*IND*+0x0): multiple definition of `__ctype32_toupper@GLIBC_2.2'
/lfs/sources/glibc-build/libc.so.6(.data+0x574): first defined here
/lfs/sources/glibc-build/libc.so.6(.bss+0x1de4): multiple definition of `h_errno@GLIBC_2.0'
/lfs/sources/glibc-build/libc.so.6: In function `__divdi3@GLIBC_2.0':
/lfs/sources/glibc-build/libc.so.6(.text+0x4df): multiple definition of `__divdi3@GLIBC_2.0'
/lfs/sources/glibc-build/libc.so.6(.data+0x570): multiple definition of `__ctype32_tolower@GLIBC_2.2'
/lfs/sources/glibc-build/libc.so.6(*IND*+0x0): multiple definition of `_errno@GLIBC_2.0'
/lfs/sources/glibc-build/libc.so.6(.bss+0xe0): first defined here
/lfs/sources/glibc-build/libc.so.6(*IND*+0x0): multiple definition of `__moddi3@GLIBC_2.0'
/lfs/sources/glibc-build/libc.so.6(.text+0x53a): first defined here
/lfs/sources/glibc-build/libc.so.6(.data+0x560): multiple definition of `__ctype_b@GLIBC_2.0'
/lfs/sources/glibc-build/libc.so.6(*IND*+0x0): multiple definition of `__ctype_tolower@GLIBC_2.0'
/lfs/sources/glibc-build/libc.so.6(.data+0x568): first defined here
/lfs/sources/glibc-build/libc.so.6(.data+0x564): multiple definition of `__ctype32_b@GLIBC_2.0'
collect2: ld returned 1 exit status
make: *** [/lfs/sources/glibc-build/iconv/iconv_prog] Error 1
make: Leaving directory `/lfs/sources/glibc-2.3.2/iconv'
make: *** [iconv/subdir_install] Error 2
make: Leaving directory `/lfs/sources/glibc-2.3.2'
make: *** [install] Error 2
Sorry, a bit of a monster, but it seems this multiple defintion thing is the main issue, why is this happening?
I've seen this error once or twice in my LFS adventures........
I had to go into the Makefile and edit a $PATH or two............
just scan thru the Makefile and see if something does not look right........
i just got that exact error but it was in the make stage, not the make install stage, anyway its pretty obvious somethings wrong with the linker, so i went to have a look at the linker in /tools/bin and it wasnt there?? so i looked at my history and it turned out i had configured binutils like