Sorry if this is a stupid question...

I just succeeded to compile pscs-lite-0.3.0 and to run its test with a
Towitoko card driver (on Pentium PC with Suse 6.2).

Test resulted in "Power Up Failed". Can someone tell me what it means
and what I can do about it? I hope it hasn't been a mistake to use a
Towitoko PIN Security Card.

During "make" there was a warning about an incompatible pointer type.

Thanks for every useful hint!

Hatto

Here the output of ./test:

>-------------------------------

Winscard PC/SC Lite Test Program

Testing SCardEstablishContext
Testing SCardListReaders
Allocated 20 space for readers
Reader 01: Towitoko Chipdrive
Enter the desired reader number : 1

Status before 4
winscard.c  80: SCardConnect: Attempting Connect to Towitoko Chipdrive
winscard.c 143: SCardConnect: hCard Identity: e2980000
winscard.c 249: SCardConnect: Active Protocol: 0
winscard.c 525: SCardGetStatusChange: Event Loop Start
winscard.c 610: SCardGetStatusChange: Event Loop End
winscard.c 305: SCardDisconnect: Active Contexts: 1
Status after 584
Testing SCardConnect
winscard.c  80: SCardConnect: Attempting Connect to Towitoko Chipdrive
winscard.c 143: SCardConnect: hCard Identity: e2980000
TST 0
TST -10
winscard.c 214: SCardConnect: Power Up Failed
SCardConnect Returns 260
Testing SCardTransmit
SCardTransmit Returns 17
Bytes Received 0

Testing SCardDisconnect
Testing SCardReleaseContext 
>-------------------------------

And now the output of make:

>-------------------------------
bash-2.03# make
flex configfile.ll
gcc -g  -c atrhandler.c -I./include -DPCSCLITE_LOCAL_LINK=1
gcc -g  -c debuglog.c -I./include -DPCSCLITE_LOCAL_LINK=1
gcc -g  -c dyn_linux.c -I./include -DPCSCLITE_LOCAL_LINK=1
gcc -g  -c ifdwrapper.c -I./include -DPCSCLITE_LOCAL_LINK=1
gcc -g  -c lex.yy.c -I./include -DPCSCLITE_LOCAL_LINK=1
gcc -g  -c prothandler.c -I./include -DPCSCLITE_LOCAL_LINK=1
gcc -g  -c readerfactory.c -I./include -DPCSCLITE_LOCAL_LINK=1
gcc -g  -c sys_linux.c -I./include -DPCSCLITE_LOCAL_LINK=1
gcc -g  -c winscard.c -I./include -DPCSCLITE_LOCAL_LINK=1
winscard.c: In function `SCardConnect':
winscard.c:236: warning: passing arg 2 of `SCardStatus' from incompatible pointer type
winscard.c: In function `SCardStatus':
winscard.c:447: warning: assignment makes integer from pointer without a cast
ld -shared atrhandler.o debuglog.o dyn_linux.o ifdwrapper.o lex.yy.o prothandler.o 
readerfactory.o sys_linux.o winscard.o      -o libpcsclite-core.so
cd rpc; make
make[1]: Entering directory `/usr/local/pcsc-lite-0.3.0/rpc'
gcc -g -w -c winscard_rpc_svc.c -I../include
gcc -g -w -c winscard_rpc_server.c -I../include
gcc -g -w -c winscard_rpc_xdr.c -I../include
gcc -g -w -o pcscserver winscard_rpc_svc.o winscard_rpc_server.o winscard_rpc_xdr.o 
-L../ -lpcsclite-core -lfl -ldl -I../include
gcc -g -w -c winscard.c -I../include
gcc -g -w -c winscard_rpc_clnt.c -I../include
ld -shared      winscard.o winscard_rpc_clnt.o winscard_rpc_xdr.o -o libpcsclite.so
make[1]: Leaving directory `/usr/local/pcsc-lite-0.3.0/rpc'
gcc -g -o test test.c -DPCSCLITE_LOCAL_LINK=1 -L./ -lpcsclite-core -ldl -lfl 
-I./include
gcc -g -o testrpc test.c -L./rpc -lpcsclite -ldl -lfl -I./include
gcc -g -o event event.c -L./rpc -lpcsclite -ldl -lfl -I./include   
>-------------------------------

***************************************************************
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***************************************************************

Reply via email to