[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem compiling (gcc? glibc?)



On Thu, 06 Jan 2005 9:18 pm, Rem wrote:
> Hi;
>
> Is your computer overclocked ?
No. It is running at 350MHz as it is designed to. Also, gcc works fine on my 
Fedora Core 1 installation on the same computer so I very much doubt that 
this is a hardware problem.

>
> On Thu, 6 Jan 2005 18:20:35 +1300, Andrew Walbran <qwandor@gmail.com> wrote:
> > Hi
> > I have recently started using Debian GNU / Linux, and have found that I
> > am unable to compile anything with GCC. Compiling even a trivial program
> > gives a number of 'undefined reference' errors:
> >
> > $ cat test.c
> > int main() {
> >  return 0;
> > }
> > $ gcc test.c
> > /lib/libc.so.6: undefined reference to
> > `_dl_lookup_versioned_symbol_skip@GLIBC_PRIVATE'
> > /lib/libc.so.6: undefined reference to `_rtld_global@GLIBC_PRIVATE'
> > /lib/libc.so.6: undefined reference to
> > `_dl_lookup_versioned_symbol@GLIBC_PRIVATE'
> > /lib/libc.so.6: undefined reference to `_dl_start_profile@GLIBC_PRIVATE'
> > /lib/libc.so.6: undefined reference to
> > `_dl_check_map_versions@GLIBC_PRIVATE' /lib/libc.so.6: undefined
> > reference to `__libc_enable_secure@GLIBC_PRIVATE' /lib/libc.so.6:
> > undefined reference to `_dl_get_origin@GLIBC_PRIVATE' /lib/libc.so.6:
> > undefined reference to `_dl_dst_substitute@GLIBC_PRIVATE' /lib/libc.so.6:
> > undefined reference to `_dl_debug_state@GLIBC_PRIVATE' /lib/libc.so.6:
> > undefined reference to `_dl_init@GLIBC_PRIVATE'
> > /lib/libc.so.6: undefined reference to `_dl_dst_count@GLIBC_PRIVATE'
> > /lib/libc.so.6: undefined reference to `_dl_out_of_memory@GLIBC_PRIVATE'
> > /lib/libc.so.6: undefined reference to `_dl_signal_error@GLIBC_PRIVATE'
> > /lib/libc.so.6: undefined reference to `_dl_debug_printf@GLIBC_PRIVATE'
> > /lib/libc.so.6: undefined reference to
> > `_dl_map_object_deps@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference
> > to `_dl_unload_cache@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference
> > to `_dl_relocate_object@GLIBC_PRIVATE' /lib/libc.so.6: undefined
> > reference to `_dl_tls_symaddr@GLIBC_PRIVATE' /lib/libc.so.6: undefined
> > reference to `__libc_stack_end@GLIBC_PRIVATE' /lib/libc.so.6: undefined
> > reference to `_dl_argv@GLIBC_PRIVATE'
> > /lib/libc.so.6: undefined reference to `_dl_catch_error@GLIBC_PRIVATE'
> > /lib/libc.so.6: undefined reference to
> > `_dl_lookup_symbol_skip@GLIBC_PRIVATE' /lib/libc.so.6: undefined
> > reference to `_dl_lookup_symbol@GLIBC_PRIVATE' /lib/libc.so.6: undefined
> > reference to `_dl_map_object@GLIBC_PRIVATE' collect2: ld returned 1 exit
> > status
> >
> > Compiling with the -static flag succeeds without errors, but this is not
> > really a solution.
> >
> > I am using the latest packages from the 'testing' section, including gcc
> > 3.3.5-5 and glibc 2.3.2.ds1-20, on a Pentium II.
> >
> > I found some similar reports in the mailing list archives and debian bug
> > databases, but they were either specific to other architectures or marked
> > as fixed by newer versions.
> >
> > I noticed that these errors refer to /lib/libc.so.6, whereas
> > 'ldd /bin/echo' (for example) reports linking against /lib/tls/libc.so.6.
> > I am not sure if this is relevant; what is the difference between the two
> > libraries?
> >
> > What could be going wrong here, and what can I do to fix it?
> >
> > Andrew Walbran
> >
> > --
> > To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> > with a subject of "unsubscribe". Trouble? Contact
> > listmaster@lists.debian.org



Reply to: