This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/313] New: Link error for glibc 2.3.3 with gcc 3.4.1


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

-- 
           Summary: Link error for glibc 2.3.3 with gcc 3.4.1
           Product: glibc
           Version: 2.3.3
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: jan dot h dot d at swipnet dot se
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://sources.redhat.com/bugzilla/show_bug.cgi?id=313

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]