[patch #8498] AX_CHECK_OPENSSL should try -ldl before giving up
anonymous <[email protected]>
| Newsgroups | gmane.comp.sysutils.autoconf.archive-maintainers |
|---|---|
| Message-ID | <[email protected]> |
URL:
<http://savannah.gnu.org/patch/?8498>
Summary: AX_CHECK_OPENSSL should try -ldl before giving up
Project: GNU Autoconf Archive
Submitted by: None
Submitted on: Mon 21 Jul 2014 10:36:38 PM UTC
Priority: 5 - Normal
Status: None
Assigned to: None
Originator Email: [email protected]
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Trying to use AX_CHECK_OPENSSL with a custom directory (--with-openssl=) in
Centos 5.6 fails with the following error:
configure:23399: checking for openssl/ssl.h in /home/miguel/openssl
configure:23406: result: yes
configure:23422: checking whether compiling and linking against OpenSSL works
Trying link with OPENSSL_LDFLAGS=-L/home/miguel/openssl/lib;
OPENSSL_LIBS=-lssl -lcrypto; OPENSSL_INCLUDES=-I/home/miguel/openssl/include
configure:23454: g++ -o conftest -g -O2 -fvisibility-inlines-hidden
-I/home/miguel/openssl/include -L/home/miguel/openssl/lib conftest.cpp
-lssl -lcrypto -lrt -lpthread >&5
/home/miguel/openssl/lib/libcrypto.a(dso_dlfcn.o): In function
`dlfcn_globallookup':
dso_dlfcn.c:(.text+0x2d): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0x43): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x4d): undefined reference to `dlclose'
/home/miguel/openssl/lib/libcrypto.a(dso_dlfcn.o): In function
`dlfcn_pathbyaddr':
dso_dlfcn.c:(.text+0x8f): undefined reference to `dladdr'
dso_dlfcn.c:(.text+0xe8): undefined reference to `dlerror'
(...)
I'm able to fix this issue by adding a failback mechanism to also try
explicitly adding "-ldl" to libs. patch attached.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 21 Jul 2014 10:36:38 PM UTC Name: AX_CHECK_OPENSSL-with-ldl.patch
Size: 1kB By: None
<http://savannah.gnu.org/patch/download.php?file_id=31752>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?8498>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/