Topics:
libc/2505: "undefined referenced" errors in libc.so.6
Re: libc/2505: "undefined referenced" errors in libc.so.6
- To: libc-gnats at gnu dot org, gnats-admin at gnu dot org
- Subject: libc/2505: "undefined referenced" errors in libc.so.6
- From: jrh29 at po dot cwru dot edu
- Date: Wed, 29 Aug 2001 23:36:48 -0400
>Number: 2505
>Category: libc
>Synopsis: "undefined referenced" errors in libc.so.6
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: libc-gnats
>State: open
>Quarter:
>Keywords:
>Class: sw-bug
>Submitter-Id: gnatsweb
>Arrival-Date: Wed Aug 29 23:36:48 -0400 2001
>Cases:
>Originator: Justin Hibbits
>Release:
>Organization:
>Environment:
linux, P3 1GHz, linux-from-scratch, libc.so.6
>Description:
This error occurs on any binary I compile
A copy of the error messages follows:
/lib/libc.so.6: undefined reference to `_dl_debug_mask@GLIBC_2.2.3'
/lib/libc.so.6: undefined reference to `_dl_debug_printf@GLIBC_2.2.3'
collect2: ld returned 1 exit status
>How-To-Repeat:
I don't know how it could be reproduced....The exact specs are:
./configure --prefix=/usr --with-headers=/usr/src/linux/include --enable-add-ons --with-elf --enable-kernel=2.4.7
>Fix:
Unknown
>Unformatted:
- To: Andreas Jaeger <aj at suse dot de>
- Subject: Re: libc/2505: "undefined referenced" errors in libc.so.6
- From: Justin Hibbits <jrh29 at po dot cwru dot edu>
- Date: Thu, 30 Aug 2001 13:45:46 -0400
- References: <E15cIdM-0000sU-00@fencepost.gnu.org><hoheuqaqx4.fsf@gee.suse.de> <3B8E4E11.8080808@po.cwru.edu><hosne94n5e.fsf@gee.suse.de> <3B8E56A8.2080004@po.cwru.edu><hobskx4m2d.fsf@gee.suse.de> <3B8E5AC6.3000108@po.cwru.edu><ho7kvl4lbc.fsf@gee.suse.de> <3B8E5F29.3020803@po.cwru.edu><u8n14hts2m.fsf@gromit.moeb>
Andreas Jaeger wrote:
>Justin Hibbits <jrh29@po.cwru.edu> writes:
>
>>Andreas Jaeger wrote:
>>
>>>Justin Hibbits <jrh29@po.cwru.edu> writes:
>>>
>>>>Andreas Jaeger wrote:
>>>>
>>>>>Justin Hibbits <jrh29@po.cwru.edu> writes:
>>>>>
>>>>>>the "make install" for glibc put libc-2.2.4.so.6 and ld-linux.so.2 in
>>>>>>/lib...I don't know what's going on, but there has to be something
>>>>>>wrong....why the hell would it be placed in /usr/lib? It's required
>>>>>>for all system ops, and /usr isn't
>>>>>>
>>>>>You don't seem to understand me.
>>>>>
>>>>>What's the content of /usr/lib/libc.so?
>>>>>
>>>>>ld-linux and libc.so.6 go into /lib - but libc.so not!
>>>>>
>>>>>Andreas
>>>>>
>>>>An exact outut of cat:/* GNU ld script
>>>> Use the shared library, but some functions are only in
>>>> the static library, so try that secondarily. */
>>>>GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a )
>>>>
>>>That's fine.
>>>
>>>Ok, next step, please send the output of:
>>>
>>>$ readelf -a /lib/ld-linux.so.2 |grep dl_debug_mask
>>>$ /lib/libc.so.6
>>>$ ls -la /lib
>>>
>>>Andreas
>>>
>>gandalf:~$ readelf -a /lib/ld-linux.so.2 |grep dl_debug_mask
>> 00014784 02d06 R_386_GLOB_DAT 00014c14 _dl_debug_mask
>> 45: 00014c14 4 OBJECT GLOBAL DEFAULT 16
>> _dl_debug_mask@@GLIBC_2.2.3
>> 376: 00014c14 4 OBJECT GLOBAL DEFAULT 16 _dl_debug_mask
>>gandalf:~$
>>gandalf:~$ /lib/libc.so.6
>>GNU C Library stable release version 2.2.4, by Roland McGrath et al.
>>
>
>Ok, that's still fine - so why do you get those errors?
>
>Please compile a simple "hello world" program and sent me the output
>of "gcc -v hello.c",
>
>Andreas
>
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/specs
gcc version 2.95.3 20010315 (release)
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/cpp0 -lang-c -v -D__GNUC__=2
-D__GNUC_MINOR__=95 -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__
-D__unix__ -D__i386__ -D__
x -D__linux -Asystem(posix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386
-D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro
-D__pentiumpro__ hello.c /
GNU CPP version 2.95.3 20010315 (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/include
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/../../../../i686-pc-linux-gnu/include
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/../../../../include/g++-3
End of omitted list.
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/cc1 /tmp/ccKOwWI8.i -quiet
-dumpbase hello.c -version -o /tmp/cc2Xrkn8.s
GNU C version 2.95.3 20010315 (release) (i686-pc-linux-gnu) compiled by
GNU C version 2.95.3 20010315 (release).
as -V -Qy -o /tmp/cc5Py0UJ.o /tmp/cc2Xrkn8.s
GNU assembler version 2.11.2 (i686-pc-linux-gnu) using BFD version 2.11.2
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/collect2 -m elf_i386
-dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o
/usr/lib/gcc-lib/i686-pc-linux-gn
in.o -L/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3 /tmp/cc5Py0UJ.o -lgcc
-lc -lgcc /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/crtend.o /usr/lib/crtn.o
/lib/libc.so.6: undefined reference to `_dl_debug_mask@GLIBC_2.2.3'
/lib/libc.so.6: undefined reference to `_dl_debug_printf@GLIBC_2.2.3'
collect2: ld returned 1 exit status
Justin