I'm running OpenSolaris 2009.06 (snv_111b) and trying to build coolkey. I built pcsc-lite-1.5.3 using the Sun Studio tools (Sun Ceres Studio IDE 9.0 SunOS_i386 2009/03/06)) and the following commands: ./configure CCC=/opt/SunStudioExpress/bin/CC CC=/opt/SunStudioExpress/bin/cc make pfexec make install I then built ccid-1.3.10 (again, using the Sun Studio tools) using the following commands: env PCSC_CFLAGS=-I/usr/local/include/PCSC PCSC_LIBS="-L/usr/local/lib -lpcsclite" LIBUSB_CFLAGS=-I/usr/sfw/include LIBUSB_LIBS="-L/usr/sfw/lib -lusb" ./configure CCC=/opt/SunStudioExpress/bin/CC CC=/opt/SunStudioExpress/bin/cc --enable-usbdropdir=/usr/sfw/lib/libusb_plugins/ make pfexec make install When I try building coolkey-1.1.0, the configure script is successful but make fails at the following stage: make[3]: Entering directory `/export/home/reinholz/Download/coolkey-1.1.0/src/coolkey' source='coolkey.cpp' object='libcoolkeypk11_la-coolkey.lo' libtool=yes \ DEPDIR=.deps depmode=none /bin/sh ../../depcomp \ /bin/sh ../../libtool --tag=CXX --mode=compile /opt/SunStudioExpress/bin/CC -DHAVE_CONFIG_H -I. -I. -I../.. -DNSS_HIDE_NONSTANDARD_OBJECTS=1 -I../../src/libckyapplet -I/usr/local/include/PCSC -g -c -o libcoolkeypk11_la-coolkey.lo `test -f 'coolkey.cpp' || echo './'`coolkey.cpp mkdir .libs /opt/SunStudioExpress/bin/CC -DHAVE_CONFIG_H -I. -I. -I../.. -DNSS_HIDE_NONSTANDARD_OBJECTS=1 -I../../src/libckyapplet -I/usr/local/include/PCSC -g -c coolkey.cpp -KPIC -DPIC -o .libs/libcoolkeypk11_la-coolkey.o "../../src/libckyapplet/cky_base.h", line 96: Warning: Identifier expected instead of "}". "slot.h", line 229: Warning: keyNum hides CryptOpState::keyNum. "coolkey.cpp", line 41: Error: Multiple declaration for log. "coolkey.cpp", line 89: Error: Pointer type needed instead of extern "C" double(*)(double). "coolkey.cpp", line 93: Error: Pointer type needed instead of extern "C" double(*)(double). "coolkey.cpp", line 128: Error: Pointer type needed instead of extern "C" double(*)(double). "coolkey.cpp", line 129: Error: Pointer type needed instead of extern "C" double(*)(double). "coolkey.cpp", line 130: Error: Pointer type needed instead of extern "C" double(*)(double). "coolkey.cpp", line 131: Error: Pointer type needed instead of extern "C" double(*)(double). "coolkey.cpp", line 132: Error: Pointer type needed instead of extern "C" double(*)(double). "coolkey.cpp", line 133: Error: Pointer type needed instead of extern "C" double(*)(double). "coolkey.cpp", line 134: Error: Pointer type needed instead of extern "C" double(*)(double). "coolkey.cpp", line 135: Error: Pointer type needed instead of extern "C" double(*)(double). "coolkey.cpp", line 136: Error: Pointer type needed instead of extern "C" double(*)(double). "coolkey.cpp", line 137: Error: Pointer type needed instead of extern "C" double(*)(double). "coolkey.cpp", line 138: Error: Pointer type needed instead of extern "C" double(*)(double). "coolkey.cpp", line 139: Error: Pointer type needed instead of extern "C" double(*)(double). "coolkey.cpp", line 140: Error: Pointer type needed instead of extern "C" double(*)(double). "coolkey.cpp", line 141: Error: Pointer type needed instead of extern "C" double(*)(double). "coolkey.cpp", line 142: Error: Pointer type needed instead of extern "C" double(*)(double). "coolkey.cpp", line 143: Error: Pointer type needed instead of extern "C" double(*)(double). "coolkey.cpp", line 144: Error: Pointer type needed instead of extern "C" double(*)(double). "coolkey.cpp", line 145: Error: Pointer type needed instead of extern "C" double(*)(double). "coolkey.cpp", line 146: Error: Pointer type needed instead of extern "C" double(*)(double). "coolkey.cpp", line 147: Error: Pointer type needed instead of extern "C" double(*)(double). "coolkey.cpp", line 148: Error: Pointer type needed instead of extern "C" double(*)(double). "coolkey.cpp", line 149: Error: Pointer type needed instead of extern "C" double(*)(double). Compilation aborted, too many Error messages. make[3]: *** [libcoolkeypk11_la-coolkey.lo] Error 1 make[3]: Leaving directory `/export/home/reinholz/Download/coolkey-1.1.0/src/coolkey' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/export/home/reinholz/Download/coolkey-1.1.0/src/coolkey' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/export/home/reinholz/Download/coolkey-1.1.0' make: *** [all] Error 2 reinholz@etrenank:~/Download/coolkey-1.1.0$ I used the following configure options: env PCSC_CFLAGS=-I/usr/local/include/PCSC PCSC_LIBS="-L/usr/local/lib -lpcsclite" ./configure CCC=/opt/SunStudioExpress/bin/CC CC=/opt/SunStudioExpress/bin/cc Before anyone asks, yes I tried using gcc to compile pcsc-lite, ccid, and then coolkey. I couldn't get pcsc-lite to build with shared libs enabled or ccid to build at all using gcc and gmake. With the Sun Studio tools, I was able to build both without a problem. Any Sun gurus hanging out on this list who can help me get past all the errors make and Sun CC are choking on in coolkey.cpp? I already tried the following based on a post at http://www.spinics.net/linux/fedora/coolkey/msg00174.html giving coolkey compiling tips for Solaris 10 users: vi src/coolkey/machdep.cpp And add the following lines between #endif and #ifdef_WIN32: #ifndef MAP_FILE #define MAP_FILE 0 #endif Then vi src/coolkey/coolkeypk11.def And delete line 19, which is empty. Even with these Solaris 10-oriented changes, I still received the above make error. Then again, OpenSolaris/Nevada is quite different from Solaris 10... Thanks in advance for your help! Kevin |
_______________________________________________ Coolkey-devel mailing list Coolkey-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/coolkey-devel