Hello,

I think I've found a small bug in the build script for curl, 7.28.1. I'm also 
fairly sure I know what's wrong, but I'm not sure where to fix it.

I'm trying to build libcurl with just http/https support to make statically 
linking it in a program Im working on less painless. I believe the problem is 
at a certain point the build script doesn't link -lssl and -lcrypto (I've gone 
into the src directory and issued a fixed command and it worked), but I'm not 
really familiar with build processes outside of very vanilla make files, so 
fixing is proving difficult.

Thanks for your time,
Joe


joe@joe-dell:~/curl-7.28.1$ ./configure --prefix=/home/joe --without-librtmp 
--disable-ftp --disable-file --disable-ldap --disable-ldaps --disable-rtsp  
--disable-proxy  --disable-dict  --disable-telnet  --disable-tftp  
--disable-pop3  --disable-imap --disable-smtp --disable-gopher 
--disable-ntlm-wb  --disable-sspi 

<snip>

  curl version:     7.28.1
  Host setup:       i686-pc-linux-gnu
  Install prefix:   /home/joe
  Compiler:         gcc
  SSL support:      enabled (OpenSSL)
  SSH support:      no      (--with-libssh2)
  zlib support:     enabled
  krb4 support:     no      (--with-krb4*)
  GSSAPI support:   no      (--with-gssapi)
  SPNEGO support:   no      (--with-spnego)
  TLS-SRP support:  enabled
  resolver:         default (--enable-ares / --enable-threaded-resolver)
  ipv6 support:     enabled
  IDN support:      enabled
  Build libcurl:    Shared=yes, Static=yes
  Built-in manual:  enabled
  --libcurl option: enabled (--disable-libcurl-option)
  Verbose errors:   enabled (--disable-verbose)
  SSPI support:     no      (--enable-sspi)
  ca cert bundle:   /etc/ssl/certs/ca-certificates.crt
  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)
  RTMP support:     no      (--with-librtmp)
  metalink support: no      (--with-libmetalink)
  Protocols:        HTTP HTTPS

joe@joe-dell:~/curl-7.28.1$ make 

<snip>

if gcc -DHAVE_CONFIG_H   -I../include/curl -I../include -I../include -I../lib 
-I../src -I../lib -I../src  -I/usr/local/include  -O2 -Wno-system-headers   -MT 
nonblock.o -MD -MP -MF ".deps/nonblock.Tpo" -c -o nonblock.o `test -f 
'../lib/nonblock.c' || echo './'`../lib/nonblock.c; \
        then mv -f ".deps/nonblock.Tpo" ".deps/nonblock.Po"; else rm -f 
".deps/nonblock.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -O2 -Wno-system-headers    
-L/usr/local/lib -o curl  hugehelp.o tool_binmode.o tool_bname.o tool_cb_dbg.o 
tool_cb_hdr.o tool_cb_prg.o tool_cb_rea.o tool_cb_see.o tool_cb_wrt.o 
tool_cfgable.o tool_convert.o tool_dirhie.o tool_doswin.o tool_easysrc.o 
tool_formparse.o tool_getparam.o tool_getpass.o tool_help.o tool_helpers.o 
tool_homedir.o tool_libinfo.o tool_main.o tool_metalink.o tool_mfiles.o 
tool_msgs.o tool_operate.o tool_operhlp.o tool_panykey.o tool_paramhlp.o 
tool_parsecfg.o tool_setopt.o tool_sleep.o tool_urlglob.o tool_util.o 
tool_vms.o tool_writeenv.o tool_writeout.o tool_xattr.o strtoofft.o strdup.o 
rawstr.o nonblock.o  ../lib/libcurl.la -lrt -lz  
libtool: link: gcc -O2 -Wno-system-headers -o .libs/curl hugehelp.o 
tool_binmode.o tool_bname.o tool_cb_dbg.o tool_cb_hdr.o tool_cb_prg.o 
tool_cb_rea.o tool_cb_see.o tool_cb_wrt.o tool_cfgable.o tool_convert.o 
tool_dirhie.o tool_doswin.o tool_easysrc.o tool_formparse.o tool_getparam.o 
tool_getpass.o tool_help.o tool_helpers.o tool_homedir.o tool_libinfo.o 
tool_main.o tool_metalink.o tool_mfiles.o tool_msgs.o tool_operate.o 
tool_operhlp.o tool_panykey.o tool_paramhlp.o tool_parsecfg.o tool_setopt.o 
tool_sleep.o tool_urlglob.o tool_util.o tool_vms.o tool_writeenv.o 
tool_writeout.o tool_xattr.o strtoofft.o strdup.o rawstr.o nonblock.o  
-L/usr/local/lib ../lib/.libs/libcurl.so -lrt -lz -Wl,-rpath -Wl,/home/joe/lib
../lib/.libs/libcurl.so: undefined reference to `SSLv2_client_method'
collect2: ld returned 1 exit status
make[2]: *** [curl] Error 1
make[2]: Leaving directory `/home/joe/curl-7.28.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/joe/curl-7.28.1/src'
make: *** [all-recursive] Error 1

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to