Linux From Scratch This 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. |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-01-2004, 04:29 PM
|
#1
|
Member
Registered: Mar 2004
Location: UK
Posts: 62
Rep:
|
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?
|
|
|
04-03-2004, 11:31 PM
|
#2
|
Senior Member
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577
Rep:
|
Code:
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
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........
|
|
|
04-05-2004, 09:41 AM
|
#3
|
Senior Member
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263
Rep:
|
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
because i forgot the space my binutils had been installed in /tools/--disable-nls/ i then recompiled binutils appropriatly and my glibc compiled fine, its now running make check.
|
|
|
04-06-2004, 03:31 AM
|
#4
|
Member
Registered: Mar 2004
Location: UK
Posts: 62
Original Poster
Rep:
|
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 10:35 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|