Bug#214198: libc6: cant build rtld.c with min_kernel = 2.6.0
Package: libc6
Version: 2.3.2-8
Severity: normal
Tags: sid
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux foobox 2.6.0-test6-mm2 #2 Sat Oct 4 22:27:17 BST 2003 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages libc6 depends on:
ii libdb1-compat 2.1.3-7 The Berkeley database routines [gl
-- no debconf information
the version info above is wrong this is trying to build 2.3.2-ds1.
trying to build rtld.c with min_kernel_version 2.6.0 results in the
following error..
make[3]: Entering directory
`/tmp/build/glibc-2.3.2.ds1/build-tree/glibc-2.3.2/elf'
gcc-3.3 rtld.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes
-Wwrite-strings -fstrict-aliasing -g -pipe -mpreferred-stack-boundary=2
-fPIC -Wno-uninitialized -Wno-unused -I../include -I.
-I/tmp/build/glibc-2.3.2.ds1/build-tree/i386-libc/elf -I.. -I../libio
-I/tmp/build/glibc-2.3.2.ds1/build-tree/i386-libc -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 -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/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 -nostdinc -isystem
/usr/lib/gcc-lib/i686-linux/3.3.2/include -isystem
/usr/src/linux/include -D_LIBC_REENTRANT -include
../include/libc-symbols.h -DPIC -DSHARED -DNOT_IN_libc=1 -DIS_IN_rtld=1
-o /tmp/build/glibc-2.3.2.ds1/build-tree/i386-libc/elf/rtld.os -MD -MP
-MF /tmp/build/glibc-2.3.2.ds1/build-tree/i386-libc/elf/rtld.os.dt
rtld.c: In function `dl_main':
rtld.c:1670: error: variable `ldt_entry' has initializer but incomplete
type
rtld.c:1670: warning: excess elements in struct initializer
rtld.c:1670: warning: (near initialization for `ldt_entry')
rtld.c:1670: warning: excess elements in struct initializer
rtld.c:1670: warning: (near initialization for `ldt_entry')
rtld.c:1670: warning: excess elements in struct initializer
rtld.c:1670: warning: (near initialization for `ldt_entry')
rtld.c:1670: warning: excess elements in struct initializer
rtld.c:1670: warning: (near initialization for `ldt_entry')
rtld.c:1670: warning: excess elements in struct initializer
rtld.c:1670: warning: (near initialization for `ldt_entry')
rtld.c:1670: warning: excess elements in struct initializer
rtld.c:1670: warning: (near initialization for `ldt_entry')
rtld.c:1670: warning: excess elements in struct initializer
rtld.c:1670: warning: (near initialization for `ldt_entry')
rtld.c:1670: warning: excess elements in struct initializer
rtld.c:1670: warning: (near initialization for `ldt_entry')
rtld.c:1670: warning: excess elements in struct initializer
rtld.c:1670: warning: (near initialization for `ldt_entry')
rtld.c:1670: warning: excess elements in struct initializer
rtld.c:1670: warning: (near initialization for `ldt_entry')
rtld.c:1670: error: storage size of `ldt_entry' isn't known
make[3]: ***
[/tmp/build/glibc-2.3.2.ds1/build-tree/i386-libc/elf/rtld.os] Error 1
make[3]: Leaving directory
`/tmp/build/glibc-2.3.2.ds1/build-tree/glibc-2.3.2/elf'
make[2]: *** [elf/subdir_lib] Error 2
having not fooled around with TLS stuff before im at a bit of a loss
to track this down... (and don't have a heap of time either..)
p.s. i was trying to do this to get nptl working (i know it isnt in
a good state at the moment..)
Reply to: