Hi, all,

Please allow this newbie question, but I really need
help to figure it out. Now I am developing smartcard
applications under linux using Reflex 72 Reader and 
Cyberflex Access Developer 32k card. What I need is
have the reader driver and card driver, be able to
communicate between pc/sc, and load java program.

Everything is alright before I try to install 
musclecard plugin. I installed pclite-1.1.1,
testpcsc and pcsc_scan all return success. (see
returnings below) but error occurs when I try to
install musclecard-plugin-1.0.3. (see error msg below)

Any suggestions to either solve or bypass this 
problem is highly appreciated, thanks!

My os is Redhat 7.3, kernel 2.4.18-3, using 
gcc version 2.96


Pei Wang
University of Texas


error messages are as following:

[root@localhost musclecard-plugin-1.0.3]# make
Making all in src
make[1]: Entering directory
`/home/wpy/sc/download/card/musclecard-plugin-1.0.3/
src'
/bin/sh ../libtool --mode=compile gcc
-DPACKAGE=\"MCardPlugin\" -DVERSION=\"1.0.
0\" -DMSC_TARGET_LINUX=1 -DSTDC_HEADERS=1
-DHAVE_STRDUP=1  -I. -I.      -g -O2 -
fno-common  -I/usr/local/include -c musclecardApplet.c
rm -f .libs/musclecardApplet.lo
gcc -DPACKAGE=\"MCardPlugin\" -DVERSION=\"1.0.0\"
-DMSC_TARGET_LINUX=1 -DSTDC_HE
ADERS=1 -DHAVE_STRDUP=1 -I. -I. -g -O2 -fno-common
-I/usr/local/include -Wp,-MD,
.deps/musclecardApplet.pp -c  -fPIC -DPIC
musclecardApplet.c -o .libs/musclecard
Applet.lo
musclecardApplet.c: In function `MSCGetCapabilities':
musclecardApplet.c:144: `MSC_SUPPORT_ISOVERIFY'
undeclared (first use in this fu
nction)
musclecardApplet.c:144: (Each undeclared identifier is
reported only once
musclecardApplet.c:144: for each function it appears
in.)
musclecardApplet.c:145: `MSC_SUPPORT_ISOGETRESPONSE'
undeclared (first use in th
is function)
musclecardApplet.c: In function `MSCImportKey':
musclecardApplet.c:406: too few arguments to function
`MSCWriteObject'
musclecardApplet.c:414: too few arguments to function
`MSCWriteObject'
musclecardApplet.c: In function `MSCExportKey':
musclecardApplet.c:541: too few arguments to function
`MSCReadObject'
musclecardApplet.c:549: too few arguments to function
`MSCReadObject'
musclecardApplet.c: In function `MSCComputeCrypt':
musclecardApplet.c:738: too few arguments to function
`MSCReadAllocateObject'
musclecardApplet.c: At top level:
musclecardApplet.c:1244: conflicting types for
`MSCWriteObject'
/usr/local/include/musclecard.h:916: previous
declaration of `MSCWriteObject'
musclecardApplet.c:1300: conflicting types for
`MSCReadObject'
/usr/local/include/musclecard.h:924: previous
declaration of `MSCReadObject'
musclecardApplet.c:1607: conflicting types for
`MSCReadAllocateObject'
/usr/local/include/musclecard.h:932: previous
declaration of `MSCReadAllocateObj                    
                                      ect'
musclecardApplet.c:1638: warning: type mismatch with
previous implicit declarati                           
                               on
musclecardApplet.c:1631: warning: previous implicit
declaration of `MSCReadLarge                          
                                Object'
musclecardApplet.c:1638: warning: `MSCReadLargeObject'
was previously implicitly                             
                              declared to return `int'
musclecardApplet.c:1669: warning: type mismatch with
previous implicit declarati                           
                               on
musclecardApplet.c:691: warning: previous implicit
declaration of `MSCWriteLarge                         
                                 Object'
musclecardApplet.c:1669: warning:
`MSCWriteLargeObject' was previously implicitl        
                                                  y
declared to return `int'
make[1]: *** [musclecardApplet.lo] Error 1
make[1]: Leaving directory
`/home/wpy/sc/download/card/musclecard-plugin-1.0.3/s 
                                                      
  rc'
make: *** [all-recursive] Error 1
[root@localhost musclecard-plugin-1.0.3]#


====================================================

[wpy@localhost src]$ ./testpcsc

MUSCLE PC/SC Lite Test Program

Testing SCardEstablishContext    : Command successful.
Testing SCardGetStatusChange
Please insert a working reader   : Command successful.
Testing SCardListReaders         : Command successful.
Reader 01: Schlumberger Reflex 72 0 0
Enter the reader number          : 01

Waiting for card insertion
                                 : Command successful.
Testing SCardConnect             : Command successful
Testing SCardStatus              : Command successful.
Current Reader Name              : Schlumberger Reflex
72 0 0
Current Reader State             : 34
Current Reader Protocol          : 0
Current Reader ATR Size          : a
Current Reader ATR Value         : 3b 17 13 9c 12 2 1
1 7 40
Testing SCardDisconnect          : Command successful.
Testing SCardReleaseContext      : Command successful.

PC/SC Test Completed Successfully !


[wpy@localhost pcsc-tools-1.2.1]$ ./pcsc_scan
PC/SC device scanner
V 1.2.1 (c) 2001-2002, Ludovic Rousseau
<[EMAIL PROTECTED]>
PC/SC lite version: 1.1.1
0: Schlumberger Reflex 72 0 0

Thu Sep 19 02:31:01 2002
 Reader 0 (Schlumberger Reflex 72 0 0)
        Card state: Card inserted,
        ATR: 3B 17 13 9C 12 02 01 01 07 40

ATR: 3B 17 13 9C 12 02 01 01 07 40
+ TS = 3B --> Direct Convention
+ T0 = 17, Y(1): 0001, K: 7 (historical bytes)
  TA(1) = 13 --> Fi=372, Di=4, 93.000 cycles/ETU
+ Historical bytes: 9C 12 02 01 01 07 40

Possibly identified card:
3B 17 13 9C 12 02 01 01 07 40
        Schlumberger Cyberflex Access Developer 32k




__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.musclecard.com/mailman/listinfo/muscle

Reply via email to