Hi, Walter. Thanks for pointing this out. In the past several people reported a similar problem, but I never knew that it was because of a missing "-lcrypto" linkage. This "shouldn't" be necessary, because libptal already has this linkage, but perhaps the order is wrong for certain situations between "-lcrypto" and "-lsnmp'.
In any case, try upgrading to the recently released hpoj-0.90 (see http://hpoj.sourceforge.net), which now has its own SANE backend that is better suited to HP multi-function peripherals. (If you have any further questions about the hpoj software, post/reply to the hpoj-devel mailing list. You don't have to be subscribed to that list.) David Walter Hofmann wrote: > 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. ... > 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.=