This is the mail archive of the libc-alpha@cygnus.com 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]

glibc-2.0.92 re-build problem


Hi,
I'm having a problem rebuilding glibc-2.0.92 once I have
it already compiled and installed.  I built it once, and
having noticed that zdump and zic are incorrectly linked,
I went back and am trying to rebuild glibc2 to get a working
zdump and zic (and whatever other programs get built along
with glibc2).  However, there's a slight problem:

Script started on Mon Apr 20 08:55:17 1998
[root@avalon /root]# cd /usr/src/glibc-2.0.92
[root@avalon glibc-2.0.92]# make
make  -C csu subdir_lib
make[1]: Entering directory `/usr/src/glibc-2.0.92/csu'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/usr/src/glibc-2.0.92/csu'
make  -C assert subdir_lib
make[1]: Entering directory `/usr/src/glibc-2.0.92/assert'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/usr/src/glibc-2.0.92/assert'
make  -C ctype subdir_lib
make[1]: Entering directory `/usr/src/glibc-2.0.92/ctype'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/usr/src/glibc-2.0.92/ctype'
make  -C db2 subdir_lib
make[1]: Entering directory `/usr/src/glibc-2.0.92/db2'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/usr/src/glibc-2.0.92/db2'
make  -C locale subdir_lib
make[1]: Entering directory `/usr/src/glibc-2.0.92/locale'
gcc setlocale.c -c -O2 -Wall -Winline -Wno-parentheses
-Wstrict-prototypes -Wwrite-strings -g
-DLOCALE_PATH='"/usr/local/share/locale:/usr/local/share/i18n"'
-DLOCALEDIR='"/usr/local/share/locale"'
-DLOCALE_ALIAS_PATH='"/usr/local/share/locale:/usr/local/share/i18n"'
-DCHARMAP_PATH='"/usr/local/share/i18n/charmaps"'
-DLOCSRCDIR='"/usr/local/share/i18n/locales"' -DHAVE_CONFIG_H -Iprograms
-I.  -I.. -I../include -I../libio  -I../sysdeps/i386/elf
-I../crypt/sysdeps/unix -I../linuxthreads/sysdeps/unix/sysv/linux
-I../linuxthreads/sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i586
-I../linuxthreads/sysdeps/i386
-I../linuxthreads/sysdeps/pthread/no-cmpxchg
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/i386/i586 -I../sysdeps/i386/i486
-I../sysdeps/i386/fpu -I../sysdeps/libm-i387 -I../sysdeps/i386
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754 -I../sysdeps/libm-ieee754
-I../sysdeps/generic  -D_LIBC_REENTRANT -include
../include/libc-symbols.h     -o setlocale.o
setlocale.c: In function `setlocale':
setlocale.c:315: `UINT_MAX' undeclared (first use this function)
setlocale.c:315: (Each undeclared identifier is reported only once
setlocale.c:315: for each function it appears in.)
make[1]: *** [setlocale.o] Error 1
make[1]: Leaving directory `/usr/src/glibc-2.0.92/locale'
make: *** [locale/subdir_lib] Error 2
[root@avalon glibc-2.0.92]#
Script done on Mon Apr 20 08:55:39 1998

So, here's what I have:
    A RH 5.0 system with binutils-2.8.1.0.23 and egcs-1.0.2.
    I compiled and installed glibc-2.0.92 once (but zdump/zic
    are broken (linked incorrectly I believe)).  I went and
    did:
        # cd /usr/src
        # mv glibc-2.0.92 glibc-2.0.92-reference
        # tar zxf glibc-2.0.92.tar.gz
    and re-configured and started rebuilding glibc-2.0.92 again.
However, I'm getting the failure as shown above.
Diving into this, I find that the problem appears to be near the
line '#  include_next <limits.h>' within glibc-2.0.92/include/limits.h.
This line is NOT getting the GCC limits.h, but is hauling in the
limits.h that is in /usr/local/include from the previous glibc-2.0.92
installation.  Of course, /usr/local/include/limits.h is identical
to /usr/src/glibc-2.0.92/include/limits.h.  Hmm...I don't know
quite what else to add at this point.

Any ideas on how to proceed with the build?  What's wrong, anyways?
(Other than the fact that it's not including the correct limits.h)
    -Dan

----
Dan A. Dickey
ddickey@wamnet.com





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