LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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

Reply
 
Search this Thread
Old 04-01-2004, 04:29 PM   #1
davemar
Member
 
Registered: Mar 2004
Location: UK
Posts: 62

Rep: Reputation: 15
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?
 
Old 04-03-2004, 11:31 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
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........
 
Old 04-05-2004, 09:41 AM   #3
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 50
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.
 
Old 04-06-2004, 03:31 AM   #4
davemar
Member
 
Registered: Mar 2004
Location: UK
Posts: 62

Original Poster
Rep: Reputation: 15
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS 6, chapter 6.11; Glibc 'make check' error Zamochit Linux From Scratch 5 05-31-2005 12:54 PM
Problems with "make check" while compiling Glibc in Chapter 6.11 Spuckdung Linux From Scratch 2 02-13-2005 05:12 AM
glibc make install problems in chapter 5 scudco Linux From Scratch 3 09-12-2004 04:12 PM
Chapter 6: Glibc make check problems davemar Linux From Scratch 0 04-08-2004 05:17 PM
Chapter 6 glibc-2.3.1 install gabebster Linux From Scratch 14 09-24-2003 10:38 PM


All times are GMT -5. The time now is 03:08 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration