OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
[Muscle] compiling libmusclecard and friends on OS X

From: Johan Henselmans (johannetsense.nl)
Date: Thu Mar 30 2006 - 09:03:30 CST


I am trying to compile libmusclecard and muscletool on Mac OS X as I
would like to use CyberFlex 32 cards with OpenSC. However, when I
just run
./configure,
as per INSTALL instructions, I get nowhere.

So I changed the ./configure line to:

PCSCLITE_CFLAGS="-I /System/Library/Frameworks/PCSC.framework/
Headers" PCSCLITE_LIBS="-framework PCSC" ./configure

  and removed the "-lpscslite" and added "-framework PCSC" in
configure:

21172,21173c21172
< #LIBS="-lpcsclite $LIBS"
< LIBS="-framework PCSC $LIBS"
---
> LIBS="-lpcsclite $LIBS"

But now I still get an error on posix threads:

checking for pkg-config... no
checking for PCSCLITE... configure: WARNING: install pcsc-lite 1.2.9-
beta7 or later
checking winscard.h usability... yes
checking winscard.h presence... no
configure: WARNING: winscard.h: accepted by the compiler, rejected by
the preprocessor!
configure: WARNING: winscard.h: proceeding with the compiler's result
checking for winscard.h... yes
checking for SCardEstablishContext in -lpcsclite... yes
checking for -fvisibility=hidden... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... no
checking whether pthreads work with -mthreads... no
checking for the pthreads library -lpthread... no
checking whether pthreads work with --thread-safe... no
checking whether pthreads work with -mt... no
checking for pthread-config... no
configure: error: POSIX thread support required

I tried to add a -pthread, but that did not help.
PCSCLITE_CFLAGS="-I /System/Library/Frameworks/PCSC.framework/
Headers" PCSCLITE_LIBS="-framework PCSC" PTHREAD_CFLAGS="-pthread"
PTHREAD_LIBS="-pthread" ./configure

The funny thing is that in OS X phtread is part of the standard
System library, so configure should not complain about it.

Does anybody have a solution?

Best Regards,

Johan Henselmans
http://www.netsense.nl
Tel: +31-20-6267538
Fax: +31-20-6273852

_______________________________________________
Muscle mailing list
Musclelists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle


  • application/pkcs7-signature attachment: smime.p7s