Bug 313 - Link error for glibc 2.3.3 with gcc 3.4.1
Summary: Link error for glibc 2.3.3 with gcc 3.4.1
Status: RESOLVED WORKSFORME
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.3.3
: P2 normal
Target Milestone: ---
Assignee: GOTO Masanori
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-08 09:32 UTC by Jan D.
Modified: 2004-08-10 04:43 UTC (History)
2 users (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan D. 2004-08-08 09:32:39 UTC
Configure command:
% ../glibc-2.3.3/configure --prefix=/usr --enable-add-ons=nptl --with-tls

% gcc -v
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/specs
Configured with: ../gcc-3.4.1/configure --prefix=/usr --enable-shared
--with-gnu-as --with-gnu-ld --enable-threads
Thread model: posix
gcc version 3.4.1

% ld -v
GNU ld version 2.15.90.0.1.1 20040303
Host type: i686-pc-linux-gnu
System: Linux gaffa 2.6.7 #11 Sat Jul 24 00:06:03 CEST 2004 i686 unknown unknown
GNU/Linux
Architecture: i686

% as -v
GNU assembler version 2.15.90.0.1.1 (i386-redhat-linux-gnu) using BFD version
2.15.90.0.1.1 20040303

% /lib/libc.so.6 
GNU C Library stable release version 2.3.2, by Roland McGrath et al.
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.2.2.
Compiled on a Linux 2.4.19 system on 2003-03-29.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        linuxthreads-0.10 by Xavier Leroy
        BIND-8.2.3-T5B
        libthread_db work sponsored by Alpha Processor Inc
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Report bugs using the `glibcbug' script to <bugs@gnu.org>.

Addons: nptl
Build CFLAGS: -g -O2
Build CC: gcc
Compiler version: 3.4.1
Kernel headers: 2.6.7
Symbol versioning: yes
Build static: yes
Build shared: yes
Build pic-default: no
Build profile: yes
Build omitfp: no
Build bounded: no
Build static-nss: no


Description:
	When compiling I get these errors:

gcc -nostdlib -nostartfiles -o /home/jhd/build/obj/iconv/iconvconfig  -Wl,-dynam
ic-linker=/lib/ld-linux.so.2   -Wl,-z,combreloc /home/jhd/build/obj/csu/crt1.o /
home/jhd/build/obj/csu/crti.o `gcc --print-file-name=crtbegin.o` /home/jhd/build
/obj/iconv/iconvconfig.o /home/jhd/build/obj/iconv/strtab.o /home/jhd/build/obj/
iconv/xmalloc.o /home/jhd/build/obj/iconv/hash-string.o  -Wl,-rpath-link=/home/j
hd/build/obj:/home/jhd/build/obj/math:/home/jhd/build/obj/elf:/home/jhd/build/ob
j/dlfcn:/home/jhd/build/obj/nss:/home/jhd/build/obj/nis:/home/jhd/build/obj/rt:/
home/jhd/build/obj/resolv:/home/jhd/build/obj/crypt:/home/jhd/build/obj/nptl /ho
me/jhd/build/obj/libc.so.6 /home/jhd/build/obj/libc_nonshared.a -lgcc -lgcc_eh `
gcc --print-file-name=crtend.o` /home/jhd/build/obj/csu/crtn.o
/home/jhd/build/obj/csu/crtn.o(.text+0x0): In function `dummy':
/home/jhd/build/obj/csu/crtn.S:14: multiple definition of `dummy'
/home/jhd/build/obj/csu/crti.o(.text+0x0):/home/jhd/build/obj/csu/crti.S:33: fir
st defined here
/home/jhd/build/obj/csu/crtn.o(.text+0x14): In function `_init':
/home/jhd/build/obj/csu/crtn.S:28: multiple definition of `_init'
/home/jhd/build/obj/csu/crti.o(.text+0x24):/home/jhd/build/obj/csu/crti.S:61: fi
rst defined here
/home/jhd/build/obj/csu/crtn.o(.init+0x8): In function `_fini':
/home/jhd/build/obj/csu/crtn.S:69: multiple definition of `_fini'
/home/jhd/build/obj/csu/crti.o(.init+0x4):/home/jhd/build/obj/csu/crti.S:36: fir
st defined here
/home/jhd/build/obj/csu/crti.o(.init+0x16): In function `_fini':
/home/jhd/build/obj/csu/crti.S:43: undefined reference to `i_am_not_a_leaf'
/home/jhd/build/obj/csu/crtn.o(.init+0x2b): In function `_fini':
/home/jhd/build/obj/csu/crtn.S:37: undefined reference to `i_am_not_a_leaf'
/home/jhd/build/obj/csu/crtn.o(.init+0x30):/home/jhd/build/obj/csu/crtn.S:39: un
defined reference to `i_am_not_a_leaf'
collect2: ld returned 1 exit status
make[2]: *** [/home/jhd/build/obj/iconv/iconvconfig] Error 1
Comment 1 Ulrich Drepper 2004-08-10 04:43:17 UTC
As for bug #312, works fine here with the current cvs sources.  Nobody.