hi all,
i've tried to build glibc version 2.3.4. Compiling the elf/ subdir, gcc
(version 3.4.3) throws a couple of error messages:
In file included from dynamic-link.h:59,
from rtld.c:36:
.../sysdeps/i386/dl-machine.h: In function `dl_platform_init':
.../sysdeps/i386/dl-machine.h:359: error: assignment of read-only variable `rtld_global_ro'
In file included from ../sysdeps/unix/sysv/linux/i386/dl-librecon.h:23,
from rtld.c:37:
.../sysdeps/unix/sysv/linux/dl-librecon.h: In function `_dl_osversion_init':
.../sysdeps/unix/sysv/linux/dl-librecon.h:43: error: assignment
of read-only variable `_rtld_global_ro'
rtld.c: At top level:
rtld.c:114: error: conflicting types for '_rtld_global_ro'
.../sysdeps/generic/ldsodefs.h:539: error: previous declaration of '_rtld_global_ro' was here
rtld.c:114: error: conflicting types for '_rtld_global_ro'
.../sysdeps/generic/ldsodefs.h:539: error: previous declaration of '_rtld_global_ro' was here
rtld.c: In function `dl_main':
rtld.c:1135: error: `__libc_enable_secure_internal' undeclared (first use in this function)
rtld.c:1135: error: (Each undeclared identifier is reported only once
rtld.c:1135: error: for each function it appears in.)
rtld.c: In function `process_envvars':
rtld.c:2098: error: `__libc_enable_secure_internal' undeclared (first use in this function)
The compiler was called with:
gcc rtld.c -c -std=gnu99 -O2 -Wall \
-Winline -Wstrict-prototypes -Wwrite-strings -g
-mpreferred-stack-boundary=2 \
-fPIC -Wno-uninitialized -Wno-unused \
-I../include -I . \
-I/public/chroot/usr/src/glibc/glibc-2.3.4/build/elf -I.. -I../libio \
-I/public/chroot/usr/src/glibc/glibc-2.3.4/build -I../sysdeps/i386/elf \
-I../linuxthreads/sysdeps/unix/sysv/linux/i386 \
-I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread \
-I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv \
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686 \
-I../linuxthreads/sysdeps/i386 -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/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 \
-I../sysdeps/i386/fpu \
-I../sysdeps/i386 -I../sysdeps/wordsize-32 \
-I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 \
-I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 \
-I../sysdeps/generic/elf -I../sysdeps/generic \
-I /lib/modules/2.4.7-10/build/include -D_LIBC_REENTRANT \
-include ../include/libc-symbols.h \
-DPIC -DSHARED \
-o /public/chroot/usr/src/glibc/glibc-2.3.4/build/elf/rtld.os \
-MD -MP -MF /public/chroot/usr/src/glibc/glibc-2.3.4/build/elf/rtld.os.dt \
-MT /public/chroot/usr/src/glibc/glibc-2.3.4/build/elf/rtld.os
Any idea whats going wrong here?
Thanx for your help..
--
--
Carsten Nitsch
University of Leipzig
Dep of Computer Engineering
Public Key:
http://pgp.mit.edu:11371/pks/lookup?...rch=0xC89F8671