glibc in chapter 5, make install problems
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[2]: 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[2]: *** [/lfs/sources/glibc-build/iconv/iconv_prog] Error 1 make[2]: Leaving directory `/lfs/sources/glibc-2.3.2/iconv' make[1]: *** [iconv/subdir_install] Error 2 make[1]: 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? |
Code:
collect2: ld returned 1 exit status 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
Code:
../binutils-2.14/configure --prefix=/tools/--disable-nls |
I went back a deleted all the contents of /tools and redid binutils and gcc and now glibc has installed cleanly. I can now carry on the rest of the chapter now!
|
All times are GMT -5. The time now is 12:18 PM. |