Please try "make LDFLAGS=-pthread" and let me know if that works.
I'm forwarding this to the Crypto++ mailing list for other people who might run into the same problem. ----- Original Message ----- From: "Marlon" <[EMAIL PROTECTED]> To: "Wei Dai" <[EMAIL PROTECTED]> Cc: "Marlon" <[EMAIL PROTECTED]> Sent: Saturday, December 09, 2006 11:45 AM Subject: cryptopp compiling problem > hi, Wei Dai: > I need your help to have a look at this problem. You assistance is > highly appreciated. I am trying to compile Cryptopp 5.2.3 on gcc version > 4.1.1 20061011 (fedora) and I have applied patches for gcc 4.1.1 to > Crytopp. > It almost compiles fine, but there is a linking problem: > g++ -c -g -O2 -I../../include -I../../include > -I/home/min/work/cryptopp/include > -fPIC -o ../../obj/Linux-i686/bin/validat1.o validat1.cpp > g++ -O2 -I../../include -I../../include -I/home/min/work/cryptopp/include > -fPIC -o ../../bin/Linux-i686/cryptopptest > ../../obj/Linux-i686/bin/adhoc.o ../../obj/Linux-i686/bin/bench2.o > ../../obj/Linux-i686/bin/bench.o ../../obj/Linux-i686/bin/datatest.o > ../../obj/Linux-i686/bin/dlltest.o ../../obj/Linux-i686/bin/fipsalgt.o > ../../obj/Linux-i686/bin/regtest.o ../../obj/Linux-i686/bin/test.o > ../../obj/Linux-i686/bin/validat1.o \ > -L/home/min/work/cryptopp/lib/Linux-i686 > -Wl,-rpath,/home/min/work/cryptopp/lib/Linux-i686 > \ > -lcryptopp > /home/min/work/cryptopp/lib/Linux-i686/libcryptopp.so: undefined reference > to `pthread_key_create' > /home/min/work/cryptopp/lib/Linux-i686/libcryptopp.so: undefined reference > to `pthread_getspecific' > /home/min/work/cryptopp/lib/Linux-i686/libcryptopp.so: undefined reference > to `pthread_key_delete' > /home/min/work/cryptopp/lib/Linux-i686/libcryptopp.so: undefined reference > to `pthread_setspecific' > collect2: ld returned 1 exit status > make[2]: *** [../../bin/Linux-i686/cryptopptest] Error 1 > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To post to this group, send email to [EMAIL PROTECTED] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cryptopp-users?hl=en -~----------~----~----~----~------~----~------~--~---
