frankmorgner/vsmartcard

Make error

Closed this issue · 4 comments

Installing CCID

Hello, I am trying to install CCID, but I have faced some problem.

Results

When I am using "make", there is a error, and I don't know what to do with it.

Logs

make[2]: Entering directory '/home/virtuser3/CardReader/vsmartcard/ccid/src'
make all-am
make[3]: Entering directory '/home/virtuser3/CardReader/vsmartcard/ccid/src'
CC ccid_emulator-ccid.o
ccid.c: In function ‘get_datasize_for_pin’:
ccid.c:788:27: error: ‘const struct sc_pin_cmd_pin’ has no member named ‘length_offset’
788 | bytes_for_length = pin->length_offset + (length_size+7)/8;
| ^~
ccid.c: In function ‘write_pin_length’:
ccid.c:806:61: error: ‘const struct sc_pin_cmd_pin’ has no member named ‘length_offset’
806 | if (!apdu || !apdu->data || !pin || apdu->datalen <= pin->length_offset ||
| ^~
ccid.c:822:14: error: ‘const struct sc_pin_cmd_pin’ has no member named ‘length_offset’
822 | p[pin->length_offset] = pin->len;
| ^~
ccid.c: In function ‘perform_PC_to_RDR_Secure’:
ccid.c:1446:30: error: ‘struct sc_pin_cmd_pin’ has no member named ‘length_offset’
1446 | &curr_pin.length_offset, &sc_result)
| ^
make[3]: *** [Makefile:519: ccid_emulator-ccid.o] Error 1

Another Error

Also, when I am trying to ./configure other versions, that can be downloaded, I have another error:

Logs

checking for EVP_read_pw_string_min... configure: error: OpenSSL >= 1.0.0 not found, use ./configure OPENSSL_LIBS=...

But I haven't this problem in github version

where and how did you get the sources, how are you building them?

I used this instruction:
https://frankmorgner.github.io/vsmartcard/ccid/README.html
So I cloned repository, then I went to "ccid" folder, and run:

autoreconf --verbose --install
./configure
make

After git clone you also need to check out the submodule (in case of ccid emulator this is opensc):

cd vsmartcard
git submodule update --init --recursive

Do you have OpenSSL 1.0.0+ (headers) installed? This requirement is not (yet) listed.

git submodule update --init --recursive
Yes, it really helped me, thank you!