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 linuxthreads/674] New: Error compiling linuxthreads in glibc 2.3.4


I'm trying to compile glibc 2.3.4, which I retrieved from cvs with the tag
glibc-2_3-branch on and for an amd athlon XP 2000+.
I used the following options:

../configure --prefix=/usr --enable-add-ons=linuxthreads --disable-static
compiler: gcc 3.3.5
binutils: 2.15.94.0.2
kernel: 2.4.29rc2


I'm getting the following error in linuxthreads:

make[2]: Entering directory `/opt/cd/libc/linuxthreads'
gcc   -shared -static-libgcc -Wl,-O1  -Wl,-z,defs
-Wl,-dynamic-linker=/lib/ld-linux.so.2 -B/opt/cd/libc/compile/linuxthreads/
-B/opt/cd/libc/compile/csu/ -B/opt/cd/libc/compile/linuxthreads/
-Wl,--version-script=/opt/cd/libc/compile/libpthread.map
-Wl,-soname=libpthread.so.0 -Wl,-z,combreloc -Wl,-z,relro
-Wl,--enable-new-dtags,-z,nodelete -Wl,--enable-new-dtags,-z,initfirst
-L/opt/cd/libc/compile -L/opt/cd/libc/compile/math-L/opt/cd/libc/compile/elf
-L/opt/cd/libc/compile/dlfcn -L/opt/cd/libc/compile/nss
-L/opt/cd/libc/compile/nis -L/opt/cd/libc/compile/rt
-L/opt/cd/libc/compile/resolv -L/opt/cd/libc/compile/crypt
-L/opt/cd/libc/compile/linuxthreads
-Wl,-rpath-link=/opt/cd/libc/compile:/opt/cd/libc/compile/math:/opt/cd/libc/compile/elf:/opt/cd/libc/compile/dlfcn:/opt/cd/libc/compile/nss:/opt/cd/libc/compile/nis:/opt/cd/libc/compile/rt:/opt/cd/libc/compile/resolv:/opt/cd/libc/compile/crypt:/opt/cd/libc/compile/linuxthreads
-o /opt/cd/libc/compile/linuxthreads/libpthread.so -T
/opt/cd/libc/compile/shlib.lds /opt/cd/libc/compile/csu/abi-note.o
-Wl,--whole-archive /opt/cd/libc/compile/linuxthreads/libpthread_pic.a
-Wl,--no-whole-archive /opt/cd/libc/compile/elf/interp.os
/opt/cd/libc/compile/libc.so /opt/cd/libc/compile/libc_nonshared.a
/opt/cd/libc/compile/elf/ld.so
/opt/cd/libc/compile/linuxthreads/libpthread_pic.a(pthread.os)(.text+0x1f6): In
function `pthread_initialize':
pthread.c: undefined reference to `_res'
/opt/cd/libc/compile/linuxthreads/libpthread_pic.a(pthread.os)(.text+0xe72): In
function `__pthread_reset_main_thread':
pthread.c: undefined reference to `_errno'
/opt/cd/libc/compile/linuxthreads/libpthread_pic.a(pthread.os)(.text+0xe84):pthread.c:
undefined referenceto `_h_errno'
/opt/cd/libc/compile/linuxthreads/libpthread_pic.a(pthread.os)(.text+0xe90):pthread.c:
undefined referenceto `_res'
/opt/cd/libc/compile/linuxthreads/libpthread_pic.a(pthread.os)(.data.rel+0x1b8):
undefined reference to `_errno'
/opt/cd/libc/compile/linuxthreads/libpthread_pic.a(pthread.os)(.data.rel+0x1c0):
undefined reference to `_h_errno'
/opt/cd/libc/compile/linuxthreads/libpthread_pic.a(pthread.os)(.data.rel+0x1c8):
undefined reference to `_res'
collect2: ld returned 1 exit status
make[2]: *** [/opt/cd/libc/compile/linuxthreads/libpthread.so] Error 1
make[2]: Leaving directory `/opt/cd/libc/linuxthreads'


There are no compile errors, if I'm using the additional configure option
--enable-kernel=2.4.1.

-- 
           Summary: Error compiling linuxthreads in glibc 2.3.4
           Product: glibc
           Version: 2.3.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: linuxthreads
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: andihartmann at freenet dot de
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: i686 unknown unknown GNU/Linux
  GCC host triplet: i686 unknown unknown GNU/Linux
GCC target triplet: i686 unknown unknown GNU/Linux


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

------- 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]