Summary: | ASTERISK-29684: configure.ac doesn't handle the check for OPENSSL_BIO_METHOD correctly | ||
Reporter: | George Joseph (gjoseph) | Labels: | |
Date Opened: | 2021-10-11 11:49:30 | Date Closed: | 2021-10-12 09:33:25 |
Priority: | Minor | Regression? | |
Status: | Closed/Complete | Components: | Core/BuildSystem |
Versions: | 16.21.0 18.7.0 19.0.0 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | CentOS 7 with openssl11 from EPEL | Attachments: | |
Description: | If you use the {{\--with-ssl}} option to point ./configure to an alternate openssl implementation, the check for OPENSSL_BIO_METHOD uses the system openssl shared libraries instead of the ones from the path supplied to {{\--with-ssl}}. If the system version is older than the alternate version, HAVE_OPENSSL_BIO_METHOD can get set to 0 instead of 1 which will actually cause compile issues in res_rtp_asterisk.
Oddly enough, the check for OPENSSL itself _does_ use the alternate library. {code} configure:31038: gcc -o conftest -I/usr/include/openssl11 conftest.c -lssl -L/usr/lib64/openssl11 -lcrypto -lm >&5 configure:31038: $? = 0 configure:31047: result: yes configure:31109: checking for BIO_meth_new in -lssl configure:31134: gcc -o conftest -I/usr/include/openssl11 conftest.c -lssl -lcrypto -lm >&5 /tmp/ccBgModS.o: In function `main': conftest.c:(.text+0xa): undefined reference to `BIO_meth_new' collect2: error: ld returned 1 exit status {code} | ||
Comments: | By: Sean Bright (seanbright) 2021-10-11 13:55:00.185-0500 What about using {{--with-crypto=/whatever}}? By: George Joseph (gjoseph) 2021-10-11 15:09:51.883-0500 Needs the following on CentOS: {noformat} --with-ssl=/usr/lib64/openssl11 --with-crypto=/usr/lib64/openssl11 CFLAGS=-I/usr/include/openssl11 {noformat} By: George Joseph (gjoseph) 2021-10-12 09:33:25.802-0500 Just needed the extra --with-crypto |