[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Is this related to nptl?



Hello again,

I am not sure where this problem starts from, but im asking here because it 
relates to threads.

My setup is
gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ../gcc-3.3/configure --prefix=/usr --infodir=/usr/share/info 
--mandir=/usr/share/man --enable-threads --with-system-zlib 
--enable-languages=c++ --disable-nls
Thread model: posix
gcc version 3.3 20030210 (prerelease)

ld -v
GNU ld version 030210 20030210

glibc from cvs 
Host type: i686-pc-linux-gnu
System: Linux X1 2.5.60 #1 SMP Mon Feb 10 15:34:03 CST 2003 i686 unknown
Architecture: i686

Addons: nptl
Build CFLAGS: -Os -mcpu=pentium3 -march=pentium3
Build CC: gcc
Compiler version: 3.3 20030208 (prerelease)
Kernel headers: 2.5.59
Symbol versioning: yes
Build static: yes
Build shared: yes
Build pic-default: no
Build profile: no
Build omitfp: yes
Build bounded: no
Build static-nss: no

nptl 0.20 was the version used.

When building perl 5.8.0 I get the following: 
I used the command:

        cc -o try -O3 -fno-strict-aliasing -L/usr/local/lib try.c -lnsl -ldb 
-ldl -lm -lc -lcrypt -lutil
         ./try

and I got the following output:

/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/../../../libdb.so: undefined reference 
to `pthread_condattr_setpshared'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/../../../libdb.so: undefined reference 
to `pthread_mutexattr_destroy'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/../../../libdb.so: undefined reference 
to `pthread_mutexattr_setpshared'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/../../../libdb.so: undefined reference 
to `pthread_mutexattr_init'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/../../../libdb.so: undefined reference 
to `pthread_mutex_trylock'
collect2: ld returned 1 exit status
I can't compile the test program.
(The supplied flags or libraries might be incorrect.)


I will be trying again today with linux 2.5.60, todays gcc and glibc cvs as 
well as nptl 0.21.  Any ideas, suggestions, comments?


-- 
01001010 01100001 01110011 01101111 01101110 00100000 01001010 01101111 
01101000 01101110 01110011 01110100 01101111 01101110 





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]