Opened 14 years ago

Closed 14 years ago

Last modified 10 years ago

#26052 closed defect (duplicate)

curl-7.21.1_0 +universal configure failure on Leopard, can't find openssl

Reported by: jamie.kimberley@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), mww@…
Port: curl openssl

Description

OS 10.5.8 intel, macports Version: 1.9.1, Xcode 3.1.3

When attempting to install curl with the +universal variant I get a configure error that seems to be related to failure to locate the openssl libs/headers. I have installed all of curl's dependencies with the +universal variant (including openssl).

here are what I think are the relevant lines of the error log:

checking for openssl options with pkg-config... found
configure: pkg-config: SSL_LIBS: "-lssl -lcrypto -lz  "
configure: pkg-config: SSL_LDFLAGS: "-L/opt/local/lib  "
configure: pkg-config: SSL_CPPFLAGS: "-I/opt/local/include  "
checking for CRYPTO_lock in -lcrypto... yes
checking for SSL_connect in -lssl... yes
checking openssl/x509.h usability... no
checking openssl/x509.h presence... no
checking for openssl/x509.h... no
checking openssl/rsa.h usability... no
checking openssl/rsa.h presence... no
checking for openssl/rsa.h... no
checking openssl/crypto.h usability... no
checking openssl/crypto.h presence... no
checking for openssl/crypto.h... no
checking openssl/pem.h usability... no
checking openssl/pem.h presence... no
checking for openssl/pem.h... no
checking openssl/ssl.h usability... no
checking openssl/ssl.h presence... no
checking for openssl/ssl.h... no
checking openssl/err.h usability... no
checking openssl/err.h presence... no
checking for openssl/err.h... no
checking x509.h usability... no
checking x509.h presence... no
checking for x509.h... no
checking rsa.h usability... no
checking rsa.h presence... no
checking for rsa.h... no
checking crypto.h usability... no
checking crypto.h presence... no
checking for crypto.h... no
checking pem.h usability... no
checking pem.h presence... no
checking for pem.h... no
checking ssl.h usability... no
checking ssl.h presence... no
checking for ssl.h... no
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
configure: error: OpenSSL libs and/or directories were not found where specified!
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/work/curl-7.21.0-i386" && ./configure --prefix=/opt/local --disable-dependency-tracking --enable-ipv6 --without-gnutls --without-gssapi --without-libssh2 --without-spnego --with-ssl=/opt/local/ --disable-ares --disable-ldap --disable-ldaps --with-libidn --with-zlib=/opt/local --disable-dependency-tracking --with-ca-bundle=/opt/local/share/curl/curl-ca-bundle.crt  " returned error 1
Error: Target org.macports.configure returned: configure failure: shell command failed
DEBUG: Backtrace: configure failure: shell command failed
    while executing
"$procedure $targetname"
Warning: the following items did not execute (for curl): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Log for curl is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

The openssl libs/headers appear to be located where pkg_config expects them. Curiously it does seem to find the last dependency err.h

I'm not sure if this is an issue with curl or openssl. I did find this ticket #25991 in which a user reports a similar problem.

Curl builds fine if i don't specify the +universal variant and activate the standard openssl variant (i.e. the non-universal version). however building the default curl fails if i try to use openssl +universal as a dependency.

Please let me know if I can provide any more information to help diagnose the issue.

Change History (3)

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: curl-7.21.1_0 +universal configure failure, can't find opensslcurl-7.21.1_0 +universal configure failure on Leopard, can't find openssl

I agree it does sound a lot like #25991. I need to get an Intel Leopard system set up to test this.

comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed

Fixing in #25991.

comment:3 Changed 10 years ago by jmroot (Joshua Root)

Cc: ryandesign@… mww@… added; ryandesign@… mww@… removed
Note: See TracTickets for help on using tickets.