Summary: | ASTERISK-29693: Using --with-crypto and --with-ssl fails on a recompile | ||
Reporter: | George Joseph (gjoseph) | Labels: | |
Date Opened: | 2021-10-18 08:09:40 | Date Closed: | 2021-10-21 07:11:38 |
Priority: | Major | Regression? | |
Status: | Closed/Complete | Components: | Core/BuildSystem |
Versions: | 16.21.1 18.7.1 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | CentOS 7.4 GCC 4.8.4 | Attachments: | |
Description: | With a pristine work tree...
Configure command line: {noformat} $ ./configure --with-spandsp --libdir=/usr/lib64 --with-jansson-bundled --with-pjproject-bundled --with-ssl=/usr/lib64/openssl11 --with-crypto=/usr/lib64/openssl11 CFLAGS=-I/usr/include/openssl11 $ make main {noformat} results in a clean build of main/asterisk. {noformat} $ make clean $ make main {noformat} results in: {noformat} p.o enum.o features.o http.o indications.o logger.o manager.o named_acl.o plc.o sounds.o udptl.o -> asterisk ./libasteriskpj.so: undefined reference to `SSL_state' ./libasteriskpj.so: undefined reference to `sk_value' ./libasteriskpj.so: undefined reference to `SSL_library_init' ./libasteriskpj.so: undefined reference to `RAND_egd' ./libasteriskpj.so: undefined reference to `sk_pop_free' ./libasteriskpj.so: undefined reference to `SSLv23_method' ./libasteriskpj.so: undefined reference to `SSLv23_server_method' ./libasteriskpj.so: undefined reference to `SSL_get_ex_new_index' ./libasteriskpj.so: undefined reference to `sk_num' ./libasteriskpj.so: undefined reference to `SSL_load_error_strings' collect2: error: ld returned 1 exit status make[1]: *** [asterisk] Error 1 make: *** [main] Error 2 {noformat} You have to do a make distclean and re-run ./configure to get the compile to succeed again. | ||
Comments: | By: Friendly Automation (friendly-automation) 2021-10-21 07:11:40.611-0500 Change 16624 merged by Friendly Automation: BuildSystem: Check for alternate openssl packages [https://gerrit.asterisk.org/c/asterisk/+/16624|https://gerrit.asterisk.org/c/asterisk/+/16624] By: Friendly Automation (friendly-automation) 2021-10-21 07:18:10.195-0500 Change 16625 merged by Friendly Automation: BuildSystem: Check for alternate openssl packages [https://gerrit.asterisk.org/c/asterisk/+/16625|https://gerrit.asterisk.org/c/asterisk/+/16625] By: Friendly Automation (friendly-automation) 2021-10-21 07:20:42.127-0500 Change 16618 merged by Friendly Automation: BuildSystem: Check for alternate openssl packages [https://gerrit.asterisk.org/c/asterisk/+/16618|https://gerrit.asterisk.org/c/asterisk/+/16618] By: Friendly Automation (friendly-automation) 2021-10-21 07:26:16.710-0500 Change 16622 merged by Joshua Colp: BuildSystem: Check for alternate openssl packages [https://gerrit.asterisk.org/c/asterisk/+/16622|https://gerrit.asterisk.org/c/asterisk/+/16622] By: Friendly Automation (friendly-automation) 2021-10-21 07:26:32.842-0500 Change 16619 merged by Joshua Colp: BuildSystem: Check for alternate openssl packages [https://gerrit.asterisk.org/c/asterisk/+/16619|https://gerrit.asterisk.org/c/asterisk/+/16619] |