[sane-devel] bug report: ptal configure check

Walter Hofmann sane-devel-020801192045-4b8e@secretlab.mine.nu
Thu, 1 Aug 2002 19:54:19 +0200


Hi, 

I noticed that the configure check for ptal in sane-backends-1.0.7 fails
with the following error:

wh@aragorn:~/tmp/libsane$ gcc -o conftest -g -O2 -W -Wall 
-D_GNU_SOURCE -I/usr/local/include  -L/usr/local/lib conftest.c -lptal
/usr/lib/libsnmp-0.4.2.so: undefined reference to `EVP_DigestInit'
/usr/lib/libsnmp-0.4.2.so: undefined reference to `EVP_DigestFinal'
/usr/lib/libsnmp-0.4.2.so: undefined reference to `EVP_md5'
/usr/lib/libsnmp-0.4.2.so: undefined reference to `HMAC'
/usr/lib/libsnmp-0.4.2.so: undefined reference to `EVP_sha1'
/usr/lib/libsnmp-0.4.2.so: undefined reference to `des_cbc_encrypt'
/usr/lib/libsnmp-0.4.2.so: undefined reference to `des_key_sched'
/usr/lib/libsnmp-0.4.2.so: undefined reference to `EVP_DigestUpdate'
/usr/lib/libsnmp-0.4.2.so: undefined reference to `RAND_bytes'
/usr/lib/libsnmp-0.4.2.so: undefined reference to `des_ncbc_encrypt'
collect2: ld returned 1 exit status

wh@aragorn:~/tmp/libsane$ gcc -o conftest -g -O2 -W -Wall  -D_GNU_SOURCE
-I/usr/local/include  -L/usr/local/lib conftest.c -lptal -lcrypto


libptal is /usr/lib/libptal.so.0.1 from the Debian hpoj 0.8-11 package.

As you can see, adding -lcrypto solves the problem.


Walter


NB. I only subscribed to post this bug report and I will unsubscribe in
a second. Please mail me privately if you need anything else.