This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problems with glibc-2.1


On Wed, 10 Feb 1999, Adam Moyes wrote:
>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?

Move  /usr/i586-pc-linux-gnulibc1/_G_config.h temporary out of the view
(for example rename). I'm also trying to upgrade libc5 based system 
(Slackware-3.6) to gnulibc2 and met the same problem.  

Andris


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]