[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch #8498] AX_CHECK_OPENSSL should try -ldl before giving up

From: anonymous
Subject: [patch #8498] AX_CHECK_OPENSSL should try -ldl before giving up
Date: Mon, 21 Jul 2014 22:36:39 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36


                 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: address@hidden
             Open/Closed: Open
         Discussion Lock: Any



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



Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]