This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.


[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Problems with glibc-2.1



I hope this is directed at the right mail group, but no doubt
someone here has come accross the same problem.

I am using a i586-pc-Linux machine and previously had gcc 2.8.1
installed. I successfully upgraded to egcs-1.1.1 and wrote a
little hello world C program to settle my nerves.

I then decided to go the whole hog and upgrade to glibc-2.1.
I had to move the /usr/include directory, create a new one
and put the ``linux'' and ``asm'' links in to satisfy config
when looking for info on my kernel.

The build went fine, but when it came to doing the install, it
died while trying to run perl (my libdb had been upgraded
and I only had a static version available, perl needed a shared
one)

At this point I discovered my libraries were broken. When I
try to compile my hello.c program ...

doobrey[/tmp] cat /tmp/hello.c 
#include <stdio.h>

main()
{
  printf("hello.\n");
}
doobrey[/tmp] gcc --version
egcs-2.91.60
doobrey[/tmp] gcc hello.c
In file included from /usr/include/stdio.h:57,
                 from hello.c:1:
/usr/include/libio.h:335: parse error before `_IO_seekoff'
/usr/include/libio.h:335: parse error before `_G_off64_t'
/usr/include/libio.h:335: warning: data definition has no type or storage class
/usr/include/libio.h:336: parse error before `_IO_seekpos'
/usr/include/libio.h:336: parse error before `_G_fpos64_t'
/usr/include/libio.h:336: warning: data definition has no type or storage class

The only files that exist in /usr/include are the ones put there by
the glibc-2.1 install. Unfortunately ``config.guess'' now fails
while trying to compile it's test program. Things have become dire.

Any pointers?

Regards,
Adam.
-- 
Signs of crime: screaming or cries for help.
                -- from the Brown Security Crime Prevention Pamphlet