This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


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

libc5 to glibc2 upgrade problem


Hello,

I looked over the archives for this list but didn't see anything
concerning this question in particular.  Pardon me if I've overlooked an
answer in some obvious source.   I'd be grateful if someone could tell me
how to fix the problems indicated by the error messages below or whether
they're the reason why my header files seem not to be where they should.

To upgrade from libc5 to glibc-2.1.2, I followed the instructions given in
the Glibc2-HOWTO that describe how to install glibc2 as the primary
library. But in doing so I got a couple of error messages, and my *.h
files apparently weren't copied to /usr/include.  So when I try to compile
the test file glib.c, the compiler gives me the following:  

	glib.c:1: stdio.h: No such file or directory


The first error mssg. I got was when I executed 'make check' after
compiling:

make[2]: *** No rule to make target `/glibc-2.1.2/compile/elf/soinit.os', needed by `/glibc-2.1.2/compile/libc.so'.  Stop.
make[2]: Leaving directory `/glibc-2.1.2/assert'
make[1]: *** [assert/tests] Error 2
make[1]: Leaving directory `/glibc-2.1.2'
make: *** [check] Error 2
[root@drew /glibc-2.1.2/compile]# mkdir -p /usr/i486-linuxlib5/lib
[root@drew /glibc-2.1.2/compile]# 

The second appeared when I ran 'make install': 

/glibc-2.1.2/compile/libc.so.6: undefined reference to `__NR_rt_sigreturn'
collect2: ld returned 1 exit status
make[2]: *** [/glibc-2.1.2/compile/db2/makedb] Error 1
make[2]: Leaving directory `/glibc-2.1.2/db2'
make[1]: *** [db2/subdir_install] Error 2
make[1]: Leaving directory `/glibc-2.1.2'
make: *** [install] Error 2


My usr/local/include directory, which I think should now hold my *.h
files, looks like this:

-rw-r--r--   1 root     root         2533 May 22  1997 VF.h
-rw-r--r--   1 root     root        90501 Jan  4 03:38 glib.h
-rw-r--r--   1 root     root         3431 Jan  4 03:38 gmodule.h
-rw-r--r--   1 root     root            0 Feb 10 15:14 incllist
drwxr-xr-x   2 root     root         1024 Sep 25 04:32 kpathsea
-rw-r--r--   1 root     root         3715 Jan  4 02:55 libintl.h
-rw-r--r--   1 root     root         3336 Jan  4 03:18 ltdl.h

All my old *.h files are in /usr/i486-linuxlibc5/include, in accordance
with the HOWTO instructions.

I'm using Slackware 3.5, and when I type gcc -v, I get:

Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)

Thanks very much for any clues.


Drew Poulin
Edmonds, Washington
USA




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