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

glibc-2.3.5 doesn't compile with gcc-3.3 and 3.4


While compiling glibc-2.3.5 with gcc-3.2 works without problems, I
cannot compile it using gcc-3.3.x or 3.4.x.  The compilation breaks
with the following error:

gcc   -shared -static-libgcc -Wl,-O1  -Wl,-z,defs -Wl,-dynamic-linker=/lib/ld-linux.so.2 -B/usr/src/glibc-2.3.5-build/linuxthreads/ -B/usr/src/glibc-2.3.5-build/csu/ -B/usr/src/glibc-2.3.5-build/linuxthreads/ -Wl,--version-script=/usr/src/glibc-2.3.5-build/libpthread.map -Wl,-soname=libpthread.so.0 -Wl,-z,combreloc -Wl,--enable-new-dtags,-z,nodelete -Wl,--enable-new-dtags,-z,initfirst -L/usr/src/glibc-2.3.5-build -L/usr/src/glibc-2.3.5-build/math -L/usr/src/glibc-2.3.5-build/elf -L/usr/src/glibc-2.3.5-build/dlfcn -L/usr/src/glibc-2.3.5-build/nss -L/usr/src/glibc-2.3.5-build/nis -L/usr/src/glibc-2.3.5-build/rt -L/usr/src/glibc-2.3.5-build/resolv -L/usr/src/glibc-2.3.5-build/crypt -L/usr/src/glibc-2.3.5-build/linuxthreads -Wl,-rpath-link=/usr/src/glibc-2.3.5-build:/usr/src/glibc-2.3.5-build/math:/usr/src/glibc-2.3.5-build/elf:/usr/src/glibc-2.3.5-build/dlfcn:/usr/src/glibc-2.3.5-build/nss:/usr/src/glibc-2.3.5-build/nis:/usr/src/glibc-2.3.5-build/rt:/usr/src/glibc-2.3.5-build/r!
 esolv:/usr/src/glibc-2.3.5-build/crypt:/usr/src/glibc-2.3.5-build/linuxthreads -o /usr/src/glibc-2.3.5-build/linuxthreads/libpthread.so -T /usr/src/glibc-2.3.5-build/shlib.lds /usr/src/glibc-2.3.5-build/csu/abi-note.o -Wl,--whole-archive /usr/src/glibc-2.3.5-build/linuxthreads/libpthread_pic.a -Wl,--no-whole-archive /usr/src/glibc-2.3.5-build/elf/interp.os /usr/src/glibc-2.3.5-build/libc.so /usr/src/glibc-2.3.5-build/libc_nonshared.a /usr/src/glibc-2.3.5-build/elf/ld.so 
/usr/src/glibc-2.3.5-build/linuxthreads/libpthread_pic.a(pthread.os)(.text+0x228): In function `pthread_initialize':
: undefined reference to `_res'
/usr/src/glibc-2.3.5-build/linuxthreads/libpthread_pic.a(pthread.os)(.text+0xc11): In function `__pthread_reset_main_thread':
: undefined reference to `_errno'
/usr/src/glibc-2.3.5-build/linuxthreads/libpthread_pic.a(pthread.os)(.text+0xc23): In function `__pthread_reset_main_thread':
: undefined reference to `_h_errno'
/usr/src/glibc-2.3.5-build/linuxthreads/libpthread_pic.a(pthread.os)(.text+0xc2f): In function `__pthread_reset_main_thread':
: undefined reference to `_res'
/usr/src/glibc-2.3.5-build/linuxthreads/libpthread_pic.a(pthread.os)(.data.rel+0x6b8): undefined reference to `_errno'
/usr/src/glibc-2.3.5-build/linuxthreads/libpthread_pic.a(pthread.os)(.data.rel+0x6c0): undefined reference to `_h_errno'
/usr/src/glibc-2.3.5-build/linuxthreads/libpthread_pic.a(pthread.os)(.data.rel+0x6c8): undefined reference to `_res'
collect2: ld returned 1 exit status
make[2]: *** [/usr/src/glibc-2.3.5-build/linuxthreads/libpthread.so] Error 1
make[2]: Leaving directory `/usr/src/glibc-2.3.5/linuxthreads'
make[1]: *** [linuxthreads/others] Error 2
make[1]: Leaving directory `/usr/src/glibc-2.3.5'
make: *** [all] Error 2

This is on a dual Pentium 3 and Linux-2.4.30 kernel headers.  I configured
and built with

    cd /usr/src/glibc-2.3.5-build
    CFLAGS=-O2 /usr/src/glibc-2.3.5/configure --prefix=/usr \
            --enable-add-ons=linuxthreads \
            --with-headers=/usr/src/linux/include
    make

Is this a known bug?

urs


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