cURL / Mailing Lists / curl-library / Single Mail

curl-library

Compiling with SSL on OS X?

From: ML <mailinglists_at_mailnewsrss.com>
Date: Tue, 11 May 2010 19:39:07 -0700 (PDT)

Hi All,

I am trying to compile Curl-7.2.1 with SSL support on OS X from terminal.

I downloaded openSSL 1.0 and compiled it set --prefix=/opt

I then try to compile curl with:

./configure --host=arm-apple-darwin --prefix=/opt --program-prefix=/usr/local/iphone --disable-shared --disable-crypto-auth --without-gnutls --with-ssl=/Volumes/JTSM/opt --without-zlib --without-libssh2 --disable-ipv6 --disable-manual --disable-http --enable-ftp --disable-file --disable-ldap --disable-ldaps --disable-rtsp --enable-proxy --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smtp --disable-manual --disable-ipv6 --disable-sspi --disable-cookies CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1 CFLAGS="-arch armv6 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=3.2 -gdwarf-2 -mthumb -I/Library/iPhone/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk" CPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp AR=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar AS=/
Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/as LIBTOOL=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool STRIP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/strip RANLIB=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib

and I notice that it says:

 curl version: 7.20.1
  Host setup: arm-apple-darwin
  Install prefix: /opt
  Compiler: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1
  SSL support: no (--with-ssl / --with-gnutls / --with-nss)
  SSH support: no (--with-libssh2)
  zlib support: no (--with-zlib)
  krb4 support: no (--with-krb4*)
  GSSAPI support: no (--with-gssapi)
  SPNEGO support: no (--with-spnego)
  c-ares support: no (--enable-ares)
  ipv6 support: no (--enable-ipv6)
  IDN support: no (--with-libidn)
  Build libcurl: Shared=no, Static=yes
  Built-in manual: no (--enable-manual)
  Verbose errors: enabled (--disable-verbose)
  SSPI support: no (--enable-sspi)
  ca cert bundle: no
  ca cert path: no
  LDAP support: no (--enable-ldap / --with-ldap-lib / --with-lber-lib)
  LDAPS support: no (--enable-ldaps)
  RTSP support: no (--enable-rtsp)
  Protocols: FTP

and if I look further I see an item or two like:

configure: PKG_CONFIG_LIBDIR will be set to "/Volumes/JTSM/opt/lib/pkgconfig"
configure: WARNING: Use --with-ssl, --with-gnutls or --with-nss to address this.

I verified that indeed libssl.a and libcrypto.a is in /opt/lib/ and I do indeed have a /opt/lib/pkgconfig that contains libssl.pc, libcrypto.pc and openssl.pc

I dont quite understand what I am doing wrong.

Can anyone explain?

Best,
-Jason
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-05-12