OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: [Muscle] libpkcs11.so missing symbols?

From: Geoffrey Elgey (gelgeyvintela.com)
Date: Wed Apr 27 2005 - 08:08:01 CDT


G'day,

Ludovic Rousseau wrote:
> The recommended way is to do:
> PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure

I tried this first, and still got compilation errors:

$ pkg-config --cflags libmusclecard
-pthread -I/usr/local/include/PCSC

$ ls /usr/local/lib/pkgconfig
libmusclecard.pc libopensc.pc libpcsclite.pc

$ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure
$ make
...
  gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"libmusclepkcs11\" -DVERSION=\"0.0.11\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBPCSCLITE=1 -DHAVE_LIBMUSCLECARD=1
-DHAVE_LIBPTHREAD=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1
-DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_VPRINTF=1 -I. -I.
-I./../include -g -O2 -Wall -fno-strict-aliasing -MT p11_crypt.lo -MD
-MP -MF .deps/p11_crypt.Tpo -c p11_crypt.c -fPIC -DPIC -o .libs/p11_crypt.o
In file included from p11_crypt.c:13:
../include/cryptoki.h:39:24: musclecard.h: No such file or directory

Note: "-I/usr/local/include/PCSC" is not present.

But if I specify the PCSC include path in CPPFLAGS:

$ CPPFLAGS="-I/usr/local/include/PCSC" ./configure
$ make
...
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"libmusclepkcs11\" -DVERSION=\"0.0.11\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBPCSCLITE=1 -DHAVE_LIBMUSCLECARD=1
-DHAVE_LIBPTHREAD=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1
-DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_VPRINTF=1 -I. -I.
-I./../include -I/usr/local/include/PCSC -g -O2 -Wall
-fno-strict-aliasing -MT p11_crypt.lo -MD -MP -MF .deps/p11_crypt.Tpo -c
p11_crypt.c -fPIC -DPIC -o .libs/p11_crypt.o

Note: "-I/usr/local/include/PCSC" is present.

Am I doing something wrong here, as using pkgconfig does not work.

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