This is the mail archive of the glibc-bugs@sources.redhat.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]
Other format: [Raw text]

[Bug libc/406] New: dl-load.c:1047: error: variable `ldt_entry' has initializer but incomplete type


Glibc CVS checked out about 23 Sept 2004

** Configure command:
/home/ftp/compile/libc/configure --prefix=/usr --sysconfdir=/etc --
localstatedir=/var --mandir=/usr/share/man --enable-add-ons=linuxthreads --with-
tls --without-__thread --enable-kernel=2.4.0 --with-
headers=/usr/src/linux/include

** gcc -v
Reading specs from /usr/lib/gcc/i586-pc-linux-gnu/3.4.2/specs
Configured with: ./configure --prefix=/usr --sysconfdir=/etc --
localstatedir=/var --mandir=/usr/share/man --enable-threads=posix --with-gnu-
ld --enable-shared --enable-languages=c,c++
Thread model: posix
gcc version 3.4.2

** ld -v
GNU ld version 2.15

** as -v
GNU assembler version 2.15 (i586-pc-linux-gnu) using BFD version 2.15

** uname -a
Linux atlas 2.4.27 #1 Thu Aug 12 18:45:51 CEST 2004 i586 AMD-K6(tm) 3D 
processor AuthenticAMD GNU/Linux

** Description
When building, the next error happens.
It _only_ happens when building with option --enable-kernel. I have tried so 
far --enable-kernel=2.4.0, --enable-kernel=2.4.20, --enable-kernel=2.4.26. 
Error in all of them. Linux sources are 2.4.27. Unmodified.

gcc dl-load.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-
strings -g -mpreferred-stack-boundary=2  -fPIC -Wno-unused   -I../include -I. -
I/usr/lib/glibc/elf -I.. -I../libio  -I/usr/lib/glibc -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/i586 -
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/i586 -I../sysdeps/unix/i386 -
I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i586 -
I../sysdeps/i386/i486 -I../linuxthreads/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 -nostdinc -isystem /usr/lib/gcc/i586-pc-linux-
gnu/3.4.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  -I/usr/lib/glibc/elf/. -I/usr/lib/glibc/csu/.   -
o /usr/lib/glibc/elf/dl-load.os -MD -MP -MF /usr/lib/glibc/elf/dl-load.os.dt -
MT /usr/lib/glibc/elf/dl-load.os
dl-load.c: In function `_dl_map_object_from_fd':
dl-load.c:1047: error: variable `ldt_entry' has initializer but incomplete type
dl-load.c:1047: warning: excess elements in struct initializer
dl-load.c:1047: warning: (near initialization for `ldt_entry')
dl-load.c:1047: warning: excess elements in struct initializer
dl-load.c:1047: warning: (near initialization for `ldt_entry')
dl-load.c:1047: warning: excess elements in struct initializer
dl-load.c:1047: warning: (near initialization for `ldt_entry')
dl-load.c:1047: warning: excess elements in struct initializer
dl-load.c:1047: warning: (near initialization for `ldt_entry')
dl-load.c:1047: warning: excess elements in struct initializer
dl-load.c:1047: warning: (near initialization for `ldt_entry')
dl-load.c:1047: warning: excess elements in struct initializer
dl-load.c:1047: warning: (near initialization for `ldt_entry')
dl-load.c:1047: warning: excess elements in struct initializer
dl-load.c:1047: warning: (near initialization for `ldt_entry')
dl-load.c:1047: warning: excess elements in struct initializer
dl-load.c:1047: warning: (near initialization for `ldt_entry')
dl-load.c:1047: warning: excess elements in struct initializer
dl-load.c:1047: warning: (near initialization for `ldt_entry')
dl-load.c:1047: warning: excess elements in struct initializer
dl-load.c:1047: warning: (near initialization for `ldt_entry')
dl-load.c:1047: error: storage size of 'ldt_entry' isn't known
dl-load.c:1047: error: variable `ldt_entry' has initializer but incomplete type
dl-load.c:1047: warning: excess elements in struct initializer
dl-load.c:1047: warning: (near initialization for `ldt_entry')
dl-load.c:1047: warning: excess elements in struct initializer
dl-load.c:1047: warning: (near initialization for `ldt_entry')
dl-load.c:1047: warning: excess elements in struct initializer
dl-load.c:1047: warning: (near initialization for `ldt_entry')
dl-load.c:1047: warning: excess elements in struct initializer
dl-load.c:1047: warning: (near initialization for `ldt_entry')
dl-load.c:1047: warning: excess elements in struct initializer
dl-load.c:1047: warning: (near initialization for `ldt_entry')
dl-load.c:1047: warning: excess elements in struct initializer
dl-load.c:1047: warning: (near initialization for `ldt_entry')
dl-load.c:1047: warning: excess elements in struct initializer
dl-load.c:1047: warning: (near initialization for `ldt_entry')
dl-load.c:1047: warning: excess elements in struct initializer
dl-load.c:1047: warning: (near initialization for `ldt_entry')
dl-load.c:1047: warning: excess elements in struct initializer
dl-load.c:1047: warning: (near initialization for `ldt_entry')
dl-load.c:1047: warning: excess elements in struct initializer
dl-load.c:1047: warning: (near initialization for `ldt_entry')
dl-load.c:1047: error: storage size of 'ldt_entry' isn't known
make[2]: *** [/usr/lib/glibc/elf/dl-load.os] Error 1
make[2]: Leaving directory `/home/ftp/compile/libc/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/home/ftp/compile/libc'
make: *** [all] Error 2

-- 
           Summary: dl-load.c:1047: error: variable `ldt_entry' has
                    initializer but incomplete type
           Product: glibc
           Version: 2.3.3
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: carlos dot velasco at newipnet dot com
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: i586-pc-linux-gnu
  GCC host triplet: i586-pc-linux-gnu
GCC target triplet: i586-pc-linux-gnu


http://sources.redhat.com/bugzilla/show_bug.cgi?id=406

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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