patchGNU Autoconf Archive - Patches: patch #8498, AX_CHECK_OPENSSL should try -ldl...

 
 

patch #8498: AX_CHECK_OPENSSL should try -ldl before giving up

Submitter:  None
Submitted:  Mon 21 Jul 2014 10:36:38 PM UTC
 
Priority:  5 - Normal Status:  Need Info
Assigned to:  simons Originator Email:  -email is unavailable-
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       No canned response available

 

Mon 21 Aug 2017 07:43:51 PM UTC, comment #2: 

Old but gold. Patch work great for me. Thanks!

~ @vk496

Valentin <vk496>
Wed 15 Oct 2014 08:36:01 AM UTC, comment #1: 

I cannot apply this patch:

  error: patch failed: m4/ax_check_openssl.m4:106
  error: m4/ax_check_openssl.m4: patch does not apply

Are you sure that it was created relative to the most current version of the macro, serial #8, from http://www.gnu.org/software/autoconf-archive/ax_check_openssl.html?

Peter Simons <simons>
Project Administrator
Mon 21 Jul 2014 10:36:38 PM UTC, original submission:  

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.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #31752:  AX_CHECK_OPENSSL-with-ldl.patch added by None (1KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vk496 (Posted a comment)
  • -email is unavailable- added by simons (Posted a comment)
  • -email is unavailable- added by simons
  • -email is unavailable- added by None (Submitted the item)
  •  

     

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-12-03 simons Open/ClosedOpen Closed
    2014-10-15 simons StatusNone Need Info
        Assigned toNone simons
        Carbon-Copy- Added dustin j. mitchell
    2014-07-21 None Attached File- Added AX_CHECK_OPENSSL-with-ldl.patch, #31752

    Back to the top


    Powered by Savane 3.9