elinks
elinks copied to clipboard
undefined reference to `ASN1_STRING_get0_data'
Tried to compile latest git snapshot on Debian 8.11 jessie with the following options:
./configure --enable-256-colors --with-terminfo --with-perl
Then I got following error on make
:
lib.o: In function `get_temp_name':
/home/user/zzz/felinks/felinks/src/session/download.c:1008: warning: the use of `tempnam' is dangerous, better use `mkstemp'
lib.o: In function `match_uri_host_ip':
/home/user/zzz/felinks/felinks/src/network/ssl/socket.c:250: undefined reference to `ASN1_STRING_get0_data'
collect2: error: ld returned 1 exit status
Makefile:41: recipe for target 'elinks' failed
make[1]: *** [elinks] Error 1
make[1]: Leaving directory '/home/user/zzz/felinks/felinks/src'
Makefile.lib:268: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
What could be the problem?
Regards, Piotr
These 3 commits marked [ssl] from 15th November 2019 likely caused error. I did not realize that anybody compiles on so ancient operating systems. You can revert these commits, on weekend I'm going to resolve it.
@ZaxonXP, I was trying to get rid of warnings, I replaced deprecated functions calls in ssl code. Unfortunately it was caued compilation failure on older versions of openssl. So I added checks, and now both new and old functions are "supported". Could you verify and close this issue? There is rule, that reporter closes issues here.