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

Re: Problem compiling (gcc? glibc?)



On Thu, 06 Jan 2005 10:19 pm, Andrea Vettorello wrote:
> 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
>
> [...]
>
> > 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?
>
> Do you have the "libc6-dev " library installed?
Yes. libc6-dev 2.3.2.ds1-20 is installed.


Andrew Walbran



Reply to: