L1L1 / cardpeek

Automatically exported from code.google.com/p/cardpeek
Other
454 stars 117 forks source link

Error while compiling from source #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Compiling cardpeek 0.82 from source

Hello everyone,

I'm trying to compile cardpeek 0.82 on Kali Linux 1.0.7 (64-Bit) and am getting
the folowing error:

myname@Kali:~/Desktop/install/cardpeek-0.8.2$ make
make  all-am
make[1]: Entering directory `/home/myname/Desktop/install/cardpeek-0.8.2'
  CCLD   cardpeek
http_download.o: In function `http_download':
/home/myname/Desktop/install/cardpeek-0.8.2/http_download.c:32: undefined 
reference to `curl_easy_init'
/home/myname/Desktop/install/cardpeek-0.8.2/http_download.c:50: undefined 
reference to `curl_easy_setopt'
/home/myname/Desktop/install/cardpeek-0.8.2/http_download.c:51: undefined 
reference to `curl_easy_setopt'
/home/myname/Desktop/install/cardpeek-0.8.2/http_download.c:52: undefined 
reference to `curl_easy_setopt'
/home/myname/Desktop/install/cardpeek-0.8.2/http_download.c:53: undefined 
reference to `curl_easy_setopt'
/home/myname/Desktop/install/cardpeek-0.8.2/http_download.c:54: undefined 
reference to `curl_easy_setopt'
http_download.o:/home/myname/Desktop/install/cardpeek-0.8.2/http_download.c:55: 
more undefined references to `curl_easy_setopt' follow
http_download.o: In function `http_download':
/home/myname/Desktop/install/cardpeek-0.8.2/http_download.c:58: undefined 
reference to `curl_easy_perform'
/home/myname/Desktop/install/cardpeek-0.8.2/http_download.c:64: undefined 
reference to `curl_easy_strerror'
/home/myname/Desktop/install/cardpeek-0.8.2/http_download.c:85: undefined 
reference to `curl_easy_cleanup'
collect2: error: ld returned 1 exit status
make[1]: *** [cardpeek] Error 1
make[1]: Leaving directory `/home/myname/Desktop/install/cardpeek-0.8.2'
make: *** [all] Error 2

I don't know if it matters but I'm using libcurl4-openssl-dev-7.26.0-1+wheezy9 
as dependency.

Any ideas? Thanks in advance.

Original issue reported on code.google.com by lati...@yahoo.de on 17 Jul 2014 at 5:43

GoogleCodeExporter commented 9 years ago
Hello,

Yes you need libcurl4-openssl-dev

There is a small bug in the configure script of version 0.8.2 of card peek: if 
it can't find libcurl4-openssl-dev dependency, it will not raise an error. 
However in your case, it seems that you have installed libcurl4-openssl-dev 
which is fine. So I'm not sure what the problem is.

I will check it out further in the next few days. In the meantime you can try 
to manually set the curl library linking options as you run configure, for 
example by typing:

CURL_LIBS=-lcurl ./configure

If pkg-config is correctly configured on your system, you could even try:

CURL_LIBS=`pkg-config --libs libcurl` ./configure

Original comment by L...@gmx.com on 17 Jul 2014 at 2:16

GoogleCodeExporter commented 9 years ago
Hey,

thanks for your quick reply.I tried your suggestion and it worked perfectly.

Then I tried Cardpeek to see if it works as expected and all went well.But 
there was some strange output in the log of cardpeek when I hit the disconnect 
button.There were some errors.
After I looked at the logfile closely I realized that the card was just 
disconnected after the ATR.
Maybe this was the reason of the disconnect error.If you would like to see the 
output of the log, I will try it later and post it (because yesterday I forgot 
to save the errorlog).

Original comment by lati...@yahoo.de on 18 Jul 2014 at 9:57

GoogleCodeExporter commented 9 years ago
I will close this issue for now.

Original comment by L...@gmx.com on 16 Nov 2014 at 9:32