|
glibc2.2.4 link error: msg#00105linux.ports.arm.general
Hi all, I use binutils2.9 gcc2.96-xscale to cross-compile glibc2.2.4, the below is what I do. configure glibc2.2.4 ./configure --host=arm-linux --prefix=/prefix --enable-add-ons=linuxthreads --with-fp=no make gcc -shared -Wl,-O1 -Wl,-dynamic-linker=/usr/local/xscale/lib/ld.so.1 -Bsysdeps/../csu/ -Wl,--version-script=sysdeps/../libc.map -Wl,-soname=libc.so.6 -nostdlib -nostartfiles -e __libc_main -u __register_frame -L. -Lsysdeps/../math -Lsysdeps/../elf -Lsysdeps/../dlfcn -Lsysdeps/../nss -Lsysdeps/../nis -Lsysdeps/../rt -Lsysdeps/../resolv -Lsysdeps/../crypt -Lsysdeps/../linuxthreads -Wl,-rpath-link=.:sysdeps/../math:sysdeps/../elf:sysdeps/../dlfcn:sysdeps/../nss:sysdeps/../nis:sysdeps/../rt:sysdeps/../resolv:sysdeps/../crypt:sysdeps/../linuxthreads -o sysdeps/../libc.so.new sysdeps/../csu/abi-note.o -Wl,--verbose -lgcc 2>&1 | sed -e '/^=========/,/^=========/!d;/^=========/d' -e 's/^.*\.hash[ ]*:.*$/ .note.ABI-tag : { *(.note.ABI-tag) } &/' > sysdeps/../libc.so.lds rm -f sysdeps/../libc.so.new gcc -shared -Wl,-O1 -Wl,-dynamic-linker=/usr/local/xscale/lib/ld.so.1 -Bsysdeps/../csu/ -Wl,--version-script=sysdeps/../libc.map -Wl,-soname=libc.so.6 -nostdlib -nostartfiles -e __libc_main -u __register_frame -L. -Lsysdeps/../math -Lsysdeps/../elf -Lsysdeps/../dlfcn -Lsysdeps/../nss -Lsysdeps/../nis -Lsysdeps/../rt -Lsysdeps/../resolv -Lsysdeps/../crypt -Lsysdeps/../linuxthreads -Wl,-rpath-link=.:sysdeps/../math:sysdeps/../elf:sysdeps/../dlfcn:sysdeps/../nss:sysdeps/../nis:sysdeps/../rt:sysdeps/../resolv:sysdeps/../crypt:sysdeps/../linuxthreads -o sysdeps/../libc.so -T sysdeps/../libc.so.lds sysdeps/../csu/abi-note.o sysdeps/../elf/soinit.os sysdeps/../libc_pic.os sysdeps/../elf/sofini.os sysdeps/../elf/ interp.os sysdeps/../elf/ld.so -lgcc sysdeps/../elf/ld.so: In function `o_directory_works': sysdeps/../elf/ld.so(.bss+0x180): multiple definition of `__libc_internal_tsd_set' sysdeps/../libc_pic.os:../iconv/skeleton.c:649: first defined here sysdeps/../elf/ld.so: In function `profil_counter': ../sysdeps/unix/sysv/linux/arm/profil-counter.h:25: multiple definition of `profil_counter' sysdeps/../libc_pic.os:../sysdeps/unix/sysv/linux/arm/profil-counter.h:25: first defined here sysdeps/../elf/ld.so: In function `__libc_sigaction': ../sysdeps/unix/sysv/linux/arm/sigaction.c:62: multiple definition of `__libc_sigaction' sysdeps/../libc_pic.os:../sysdeps/unix/sysv/linux/arm/sigaction.c:62: first defined here sysdeps/../elf/ld.so: In function `strcpy': ../sysdeps/generic/strcpy.c:34: multiple definition of `strcpy' sysdeps/../libc_pic.os:../sysdeps/generic/strcpy.c:34: first defined here sysdeps/../elf/ld.so: In function `__longjmp': sysdeps/../elf/ld.so(.text+0xe300): multiple definition of `__longjmp' sysdeps/../libc_pic.os(.text+0x131b0): first defined here sysdeps/../elf/ld.so: In function `___xstat64': ../sysdeps/unix/sysv/linux/xstat64.c:55: multiple definition of `__xstat64@xxxxxxxxx' sysdeps/../libc_pic.os:../sysdeps/unix/sysv/linux/xstat64.c:55: first defined here sysdeps/../elf/ld.so: In function `getpid': sysdeps/../elf/ld.so(.text+0xf6c0): multiple definition of `__getpid' sysdeps/../libc_pic.os(.text+0x871b0): first defined here sysdeps/../elf/ld.so(.data+0x94): multiple definition of `__libc_multiple_libcs' sysdeps/../libc_pic.os:../sysdeps/unix/sysv/linux/init-first.c:59: first defined here sysdeps/../elf/ld.so: In function `_wordcopy_fwd_aligned': ../sysdeps/generic/wordcopy.c:38: multiple definition of `_wordcopy_fwd_aligned' sysdeps/../libc_pic.os:../sysdeps/generic/wordcopy.c:38: first defined here sysdeps/../elf/ld.so: In function `___xstat64': ../sysdeps/unix/sysv/linux/xstat64.c:55: multiple definition of `___xstat64' sysdeps/../libc_pic.os:../sysdeps/unix/sysv/linux/xstat64.c:55: first defined here sysdeps/../elf/ld.so: In function `__getdents': ../sysdeps/unix/sysv/linux/getdents.c:99: multiple definition of `__getdents' sysdeps/../libc_pic.os:../sysdeps/unix/sysv/linux/getdents.c:99: first defined here sysdeps/../elf/ld.so: In function `memmove': ../sysdeps/generic/memmove.c:46: multiple definition of `memmove' sysdeps/../libc_pic.os:../sysdeps/generic/memmove.c:46: first defined here sysdeps/../elf/ld.so: In function `__ffs': ../sysdeps/generic/ffs.c:30: multiple definition of `__ffs' sysdeps/../libc_pic.os:../sysdeps/generic/ffs.c:30: first defined here sysdeps/../elf/ld.so: In function `__libc_fcntl': ../sysdeps/unix/sysv/linux/i386/fcntl.c:40: multiple definition of `__libc_fcntl' sysdeps/../libc_pic.os:../sysdeps/unix/sysv/linux/i386/fcntl.c:40: first defined here sysdeps/../elf/ld.so: In function `mmap': sysdeps/../elf/ld.so(.text+0x107b0): multiple definition of `__mmap' sysdeps/../libc_pic.os(.text+0xb3400): first defined here sysdeps/../elf/ld.so: In function `mprotect': sysdeps/../elf/ld.so(.text+0x107e0): multiple definition of `__mprotect' sysdeps/../libc_pic.os(.text+0xb34a0): first defined here sysdeps/../elf/ld.so: In function `o_directory_works': sysdeps/../elf/ld.so(.bss+0x200): multiple definition of `__have_no_fcntl64' sysdeps/../libc_pic.os:/mnt/redhat/libc/glibc-2.2.4/iconv/gconv_simple.c:81: first defined here sysdeps/../elf/ld.so: In function `pc_scale': sysdeps/../elf/ld.so(.bss+0x160): multiple definition of `errno' sysdeps/../libc_pic.os:../sysdeps/unix/sysv/linux/init-first.c:59: first defined here sysdeps/../elf/ld.so: In function `__rawmemchr': ../sysdeps/generic/rawmemchr.c:74: multiple definition of `__rawmemchr' sysdeps/../libc_pic.os:../sysdeps/generic/rawmemchr.c:74: first defined here sysdeps/../elf/ld.so: In function `__getcwd': ../sysdeps/unix/sysv/linux/getcwd.c:66: multiple definition of `__getcwd' sysdeps/../libc_pic.os:../sysdeps/unix/sysv/linux/getcwd.c:66: first defined here sysdeps/../elf/ld.so: In function `___fxstat64': ../sysdeps/unix/sysv/linux/fxstat64.c:50: multiple definition of `__fxstat64@xxxxxxxxx' sysdeps/../libc_pic.os:../sysdeps/unix/sysv/linux/fxstat64.c:50: first defined here sysdeps/../elf/ld.so: In function `memcpy': ../sysdeps/generic/memcpy.c:33: multiple definition of `memcpy' sysdeps/../libc_pic.os:../sysdeps/generic/memcpy.c:33: first defined here sysdeps/../elf/ld.so: In function `___xstat64': ../sysdeps/unix/sysv/linux/xstat64.c:55: multiple definition of `__old__xstat64' sysdeps/../libc_pic.os:../sysdeps/unix/sysv/linux/xstat64.c:55: first defined here sysdeps/../elf/ld.so: In function `__llseek': ../sysdeps/unix/sysv/linux/llseek.c:34: multiple definition of `__llseek' sysdeps/../libc_pic.os:../sysdeps/unix/sysv/linux/llseek.c:34: first defined here sysdeps/../elf/ld.so: In function `o_directory_works': sysdeps/../elf/ld.so(.bss+0x420): multiple definition of `__have_no_getdents64' sysdeps/../libc_pic.os:../iconv/skeleton.c:537: first defined here sysdeps/../elf/ld.so: In function `__llseek': ../sysdeps/unix/sysv/linux/llseek.c:34: multiple definition of `__lseek64' sysdeps/../libc_pic.os:../sysdeps/unix/sysv/linux/llseek.c:34: first defined here sysdeps/../elf/ld.so: In function `__syscall_error_1': sysdeps/../elf/ld.so(.text+0x10bd4): multiple definition of `__syscall_error_1' sysdeps/../libc_pic.os(.text+0x274): first defined here sysdeps/../elf/ld.so: In function `read': sysdeps/../elf/ld.so(.text+0xfae0): multiple definition of `__libc_read' sysdeps/../libc_pic.os(.text+0xa9740): first defined here sysdeps/../elf/ld.so(.data+0x9c): multiple definition of `__environ' sysdeps/../libc_pic.os:/mnt/redhat/libc/glibc-2.2.4/iconv/gconv_db.c:711: first defined here sysdeps/../elf/ld.so: In function `__sigsetjmp': sysdeps/../elf/ld.so(.text+0x10c10): multiple definition of `__sigsetjmp' sysdeps/../libc_pic.os(.text+0x13100): first defined here sysdeps/../elf/ld.so: In function `__llseek': ../sysdeps/unix/sysv/linux/llseek.c:34: multiple definition of `__libc_lseek64' sysdeps/../libc_pic.os:../sysdeps/unix/sysv/linux/llseek.c:34: first defined here sysdeps/../elf/ld.so: In function `__lxstat': ../sysdeps/unix/sysv/linux/i386/lxstat.c:53: multiple definition of `__lxstat' sysdeps/../libc_pic.os:../sysdeps/unix/sysv/linux/i386/lxstat.c:53: first defined here sysdeps/../elf/ld.so: In function `strrchr': ../sysdeps/generic/strrchr.c:26: multiple definition of `strrchr' sysdeps/../libc_pic.os:../sysdeps/generic/strrchr.c:26: first defined here sysdeps/../elf/ld.so: In function `__libc_check_standard_fds': ../sysdeps/generic/check_fds.c:81: multiple definition of `__libc_check_standard_fds' sysdeps/../libc_pic.os:../sysdeps/generic/check_fds.c:81: first defined here sysdeps/../elf/ld.so: In function `o_directory_works': sysdeps/../elf/ld.so(.bss+0x560): multiple definition of `__libc_internal_tsd_get' sysdeps/../libc_pic.os:../iconv/skeleton.c:664: first defined here sysdeps/../elf/ld.so: In function `__setitimer': sysdeps/../elf/ld.so(.text+0x10ed0): multiple definition of `__setitimer' sysdeps/../libc_pic.os(.text+0x7d050): first defined here sysdeps/../elf/ld.so: In function `__profile_frequency': ../sysdeps/generic/prof-freq.c:45: multiple definition of `__profile_frequency' sysdeps/../libc_pic.os:../sysdeps/generic/prof-freq.c:45: first defined here sysdeps/../elf/ld.so: In function `__stpcpy': ../sysdeps/generic/stpcpy.c:43: multiple definition of `__stpcpy' sysdeps/../libc_pic.os:../sysdeps/generic/stpcpy.c:43: first defined here sysdeps/../elf/ld.so: In function `__readdir': ../sysdeps/unix/readdir.c:40: multiple definition of `__readdir' sysdeps/../libc_pic.os:../sysdeps/unix/readdir.c:40: first defined here sysdeps/../elf/ld.so: In function `___fxstat64': ../sysdeps/unix/sysv/linux/fxstat64.c:50: multiple definition of `___fxstat64' sysdeps/../libc_pic.os:../sysdeps/unix/sysv/linux/fxstat64.c:50: first defined here sysdeps/../elf/ld.so: In function `__libc_open64': ../sysdeps/posix/open64.c:27: multiple definition of `__libc_open64' sysdeps/../libc_pic.os:../sysdeps/posix/open64.c:27: first defined here sysdeps/../elf/ld.so: In function `strstr': ../sysdeps/generic/strstr.c:45: multiple definition of `strstr' sysdeps/../libc_pic.os:../sysdeps/generic/strstr.c:45: first defined here sysdeps/../elf/ld.so: In function `__readlink': sysdeps/../elf/ld.so(.text+0x10540): multiple definition of `__readlink' sysdeps/../libc_pic.os(.text+0xab530): first defined here sysdeps/../elf/ld.so: In function `strncmp': ../sysdeps/generic/strncmp.c:34: multiple definition of `strncmp' sysdeps/../libc_pic.os:../sysdeps/generic/strncmp.c:34: first defined here sysdeps/../elf/ld.so: In function `strncpy': ../sysdeps/generic/strncpy.c:35: multiple definition of `strncpy' sysdeps/../libc_pic.os:../sysdeps/generic/strncpy.c:35: first defined here sysdeps/../elf/ld.so: In function `_wordcopy_bwd_dest_aligned': ../sysdeps/generic/wordcopy.c:345: multiple definition of `_wordcopy_bwd_dest_aligned' sysdeps/../libc_pic.os:../sysdeps/generic/wordcopy.c:345: first defined here sysdeps/../elf/ld.so: In function `__opendir': ../sysdeps/unix/opendir.c:77: multiple definition of `__opendir' sysdeps/../libc_pic.os:../sysdeps/unix/opendir.c:77: first defined here sysdeps/../elf/ld.so: In function `__brk': ../sysdeps/unix/sysv/linux/arm/brk.c:29: multiple definition of `__brk' sysdeps/../libc_pic.os:../sysdeps/unix/sysv/linux/arm/brk.c:29: first defined here sysdeps/../elf/ld.so: In function `___fxstat64': ../sysdeps/unix/sysv/linux/fxstat64.c:50: multiple definition of `__old__fxstat64' sysdeps/../libc_pic.os:../sysdeps/unix/sysv/linux/fxstat64.c:50: first defined here sysdeps/../elf/ld.so: In function `sigfillset': /mnt/redhat/libc/glibc-2.2.4/signal/sigfillset.c:27: multiple definition of `sigfillset' sysdeps/../libc_pic.os:/mnt/redhat/libc/glibc-2.2.4/signal/sigfillset.c:27: first defined here sysdeps/../elf/ld.so: In function `memcmp': ../sysdeps/generic/memcmp.c:335: multiple definition of `memcmp' sysdeps/../libc_pic.os:../sysdeps/generic/memcmp.c:335: first defined here sysdeps/../elf/ld.so: In function `__profil': ../sysdeps/posix/profil.c:64: multiple definition of `__profil' sysdeps/../libc_pic.os:../sysdeps/posix/profil.c:64: first defined here sysdeps/../elf/ld.so: In function `_dl_get_origin': ../sysdeps/unix/sysv/linux/dl-origin.c:36: multiple definition of `_dl_get_origin' sysdeps/../libc_pic.os:../sysdeps/unix/sysv/linux/dl-origin.c:36: first defined here sysdeps/../elf/ld.so: In function `__getpagesize': ../sysdeps/unix/sysv/linux/getpagesize.c:25: multiple definition of `__getpagesize' sysdeps/../libc_pic.os:../sysdeps/unix/sysv/linux/getpagesize.c:25: first defined here sysdeps/../elf/ld.so: In function `__syscall_error': sysdeps/../elf/ld.so(.text+0x10bd0): multiple definition of `__syscall_error' sysdeps/../libc_pic.os(.text+0x270): first defined here sysdeps/../elf/ld.so(.rodata+0x2770): multiple definition of `_itoa_lower_digits' sysdeps/../libc_pic.os:/mnt/redhat/libc/glibc-2.2.4/intl/dcigettext.c:485: first defined here sysdeps/../elf/ld.so: In function `close': sysdeps/../elf/ld.so(.text+0xfad0): multiple definition of `__libc_close' sysdeps/../libc_pic.os(.text+0xa9730): first defined here sysdeps/../elf/ld.so: In function `___xstat64': ../sysdeps/unix/sysv/linux/xstat64.c:55: multiple definition of `__xstat64@@GLIBC_2.2' sysdeps/../libc_pic.os:../sysdeps/unix/sysv/linux/xstat64.c:55: first defined here sysdeps/../elf/ld.so: In function `open': sysdeps/../elf/ld.so(.text+0xfac0): multiple definition of `__libc_open' sysdeps/../libc_pic.os(.text+0xa96f0): first defined here sysdeps/../elf/ld.so: In function `o_directory_works': sysdeps/../elf/ld.so(.bss+0x600): multiple definition of `__have_no_stat64' sysdeps/../libc_pic.os:/mnt/redhat/libc/glibc-2.2.4/iconv/gconv_simple.c:78: first defined here sysdeps/../elf/ld.so: In function `memset': sysdeps/../elf/ld.so(.text+0xefa0): multiple definition of `memset' sysdeps/../libc_pic.os(.text+0x5fc30): first defined here sysdeps/../elf/ld.so: In function `strcmp': ../sysdeps/generic/strcmp.c:32: multiple definition of `strcmp' sysdeps/../libc_pic.os:../sysdeps/generic/strcmp.c:32: first defined here sysdeps/../elf/ld.so: In function `__default_sa_restorer': sysdeps/../elf/ld.so(.text+0x10e90): multiple definition of `__default_sa_restorer' sysdeps/../libc_pic.os(.text+0x149c0): first defined here sysdeps/../elf/ld.so: In function `__memchr': ../sysdeps/generic/memchr.c:84: multiple definition of `__memchr' sysdeps/../libc_pic.os:../sysdeps/generic/memchr.c:84: first defined here sysdeps/../elf/ld.so: In function `__mempcpy': ../sysdeps/generic/mempcpy.c:35: multiple definition of `__mempcpy' sysdeps/../libc_pic.os:../sysdeps/generic/mempcpy.c:35: first defined here sysdeps/../elf/ld.so: In function `__default_rt_sa_restorer': sysdeps/../elf/ld.so(.text+0x10ea0): multiple definition of `__default_rt_sa_restorer' sysdeps/../libc_pic.os(.text+0x149d0): first defined here sysdeps/../elf/ld.so: In function `strcspn': ../sysdeps/generic/strcspn.c:40: multiple definition of `strcspn' sysdeps/../libc_pic.os:../sysdeps/generic/strcspn.c:40: first defined here sysdeps/../elf/ld.so: In function `_wordcopy_fwd_dest_aligned': ../sysdeps/generic/wordcopy.c:150: multiple definition of `_wordcopy_fwd_dest_aligned' sysdeps/../libc_pic.os:../sysdeps/generic/wordcopy.c:150: first defined here sysdeps/../elf/ld.so: In function `__libc_lseek': sysdeps/../elf/ld.so(.text+0xfb00): multiple definition of `__libc_lseek' sysdeps/../libc_pic.os(.text+0xa9760): first defined here sysdeps/../elf/ld.so: In function `o_directory_works': sysdeps/../elf/ld.so(.bss+0x6a0): multiple definition of `__libc_missing_rt_sigs' sysdeps/../libc_pic.os:/mnt/redhat/libc/glibc-2.2.4/iconv/gconv_conf.c:133: first defined here sysdeps/../elf/ld.so(.got+0x0): multiple definition of `_GLOBAL_OFFSET_TABLE_' sysdeps/../elf/soinit.os:/mnt/redhat/libc/glibc-2.2.4/elf/soinit.c:64: first defined here sysdeps/../elf/ld.so(.data+0xa0): multiple definition of `__curbrk' sysdeps/../libc_pic.os:/mnt/redhat/libc/glibc-2.2.4/iconv/gconv_db.c:711: first defined here sysdeps/../elf/ld.so: In function `__closedir': ../sysdeps/unix/closedir.c:30: multiple definition of `__closedir' sysdeps/../libc_pic.os:../sysdeps/unix/closedir.c:30: first defined here sysdeps/../elf/ld.so: In function `__munmap': sysdeps/../elf/ld.so(.text+0x107d0): multiple definition of `__munmap' sysdeps/../libc_pic.os(.text+0xb3490): first defined here sysdeps/../elf/ld.so: In function `__writev': ../sysdeps/unix/sysv/linux/writev.c:47: multiple definition of `__writev' sysdeps/../libc_pic.os:../sysdeps/unix/sysv/linux/writev.c:47: first defined here sysdeps/../elf/ld.so: In function `_setjmp': sysdeps/../elf/ld.so(.text+0xe2f0): multiple definition of `_setjmp' sysdeps/../libc_pic.os(.text+0x13160): first defined here sysdeps/../elf/ld.so: In function `_exit': sysdeps/../libc_pic.os(.text+0x86bc0): first defined here sysdeps/../elf/ld.so: In function `strspn': ../sysdeps/generic/strspn.c:29: multiple definition of `strspn' sysdeps/../libc_pic.os:../sysdeps/generic/strspn.c:29: first defined here sysdeps/../elf/ld.so: In function `strlen': sysdeps/../elf/ld.so(.text+0xe490): multiple definition of `strlen' sysdeps/../libc_pic.os(.text+0x5e0b0): first defined here sysdeps/../elf/ld.so: In function `__libc_write': sysdeps/../elf/ld.so(.text+0xfaf0): multiple definition of `__libc_write' sysdeps/../libc_pic.os(.text+0xa9750): first defined here sysdeps/../elf/ld.so: In function `strchr': ../sysdeps/generic/strchr.c:46: multiple definition of `strchr' sysdeps/../libc_pic.os:../sysdeps/generic/strchr.c:46: first defined here sysdeps/../elf/ld.so: In function `__sbrk': ../sysdeps/generic/sbrk.c:33: multiple definition of `__sbrk' sysdeps/../libc_pic.os:../sysdeps/generic/sbrk.c:33: first defined here sysdeps/../elf/ld.so: In function `__access': sysdeps/../elf/ld.so(.text+0xfb10): multiple definition of `__access' sysdeps/../libc_pic.os(.text+0xa9770): first defined here sysdeps/../elf/ld.so: In function `___fxstat64': ../sysdeps/unix/sysv/linux/fxstat64.c:50: multiple definition of `__fxstat64@@GLIBC_2.2' sysdeps/../libc_pic.os:../sysdeps/unix/sysv/linux/fxstat64.c:50: first defined here sysdeps/../elf/ld.so: In function `_wordcopy_bwd_aligned': ../sysdeps/generic/wordcopy.c:233: multiple definition of `_wordcopy_bwd_aligned' sysdeps/../libc_pic.os:../sysdeps/generic/wordcopy.c:233: first defined here sysdeps/../elf/ld.so: In function `strpbrk': ../sysdeps/generic/strpbrk.c:35: multiple definition of `strpbrk' sysdeps/../libc_pic.os:../sysdeps/generic/strpbrk.c:35: first defined here collect2: ld returned 1 exit status gcc: file path prefix `sysdeps/../csu/' never used make: *** [sysdeps/../libc.so] Error 1 And I see the static library already build, it has multiple definition error by linking share library. Anybody can tell me how to build the share library? Thanks. -- Best regard, Tao Zhang ------------------------------ <www.davworld.net> <tzhang@xxxxxxxxxxxx> Tel: (+8610)68717158-2603 ------------------------------ _______________________________________________ http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm http://www.arm.linux.org.uk/armlinux/mailinglists.php Please visit the above addresses for information on this list. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: C-Macro + ARM Assembly: 00105, Russell King - ARM Linux |
|---|---|
| Next by Date: | Re: glibc2.2.4 link error: 00105, mpsuzuki |
| Previous by Thread: | C-Macro + ARM Assemblyi: 00105, Wayne Yen |
| Next by Thread: | Re: glibc2.2.4 link error: 00105, mpsuzuki |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |