elinks icon indicating copy to clipboard operation
elinks copied to clipboard

undefined reference to `ASN1_STRING_get0_data'

Open ZaxonXP opened this issue 5 years ago • 2 comments

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

ZaxonXP avatar Dec 05 '19 11:12 ZaxonXP

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.

rkd77 avatar Dec 05 '19 18:12 rkd77

@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.

rkd77 avatar Dec 14 '19 10:12 rkd77