________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Saqib Ali Sent: 2011年2月16日 14:04 To: [email protected] Subject: Make of Curl failing on Solaris...
I'm trying to build my curl 7.21.3 from source code on a Solaris Sparc system. I want to build it without the IDNA libraries. I do the following: ./configure --without-libidn It does its thing fine, and ends by displaying the table below. configure: Configured to build curl/libcurl: curl version: 7.21.3 Host setup: sparc-sun-solaris2.10 Install prefix: /usr/local Compiler: gcc SSL support: enabled (OpenSSL) SSH support: enabled (libSSH2) zlib support: enabled krb4 support: no (--with-krb4*) GSSAPI support: no (--with-gssapi) SPNEGO support: no (--with-spnego) resolver: default (--enable-ares / --enable-threaded-resolver) ipv6 support: enabled IDN support: no (--with-libidn) Build libcurl: Shared=yes, Static=yes Built-in manual: enabled Verbose errors: enabled (--disable-verbose) SSPI support: no (--enable-sspi) ca cert bundle: no ca cert path: no LDAP support: enabled (OpenLDAP) LDAPS support: enabled RTSP support: enabled RTMP support: no (--with-librtmp) Protocols: DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS LDAP LDAPS POP3 POP3S RTSP SCP SFTP SMTP SMTPS TELNET TFTP Then I do: make After several minutes of compiling it fails while linking into libcurl.a: /bin/bash ../libtool --tag=CC --mode=link gcc -g0 -O2 -Wno-system-headers -L/usr/sfw/lib -o curl main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o curlutil.o os-specific.o xattr.o strtoofft.o strdup.o rawstr.o nonblock.o ../lib/libcurl.la -lrt -lz libtool: link: gcc -g0 -O2 -Wno-system-headers -o .libs/curl main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o curlutil.o os-specific.o xattr.o strtoofft.o strdup.o rawstr.o nonblock.o -L/usr/sfw/lib ../lib/.libs/libcurl.so -lldap -lssl -lcrypto -lsocket -lnsl -ldl -lrt -lz -R/usr/local/lib Undefined first referenced symbol in file libssh2_sftp_seek64 ../lib/.libs/libcurl.so libssh2_sftp_symlink_ex ../lib/.libs/libcurl.so libssh2_scp_recv ../lib/.libs/libcurl.so libssh2_sftp_mkdir_ex ../lib/.libs/libcurl.so libssh2_channel_free ../lib/.libs/libcurl.so libssh2_channel_write_ex ../lib/.libs/libcurl.so libssh2_sftp_read ../lib/.libs/libcurl.so libssh2_sftp_init ../lib/.libs/libcurl.so libssh2_userauth_password_ex ../lib/.libs/libcurl.so libssh2_sftp_rename_ex ../lib/.libs/libcurl.so libssh2_channel_send_eof ../lib/.libs/libcurl.so libssh2_sftp_stat_ex ../lib/.libs/libcurl.so libssh2_sftp_rmdir_ex ../lib/.libs/libcurl.so libssh2_session_set_blocking ../lib/.libs/libcurl.so libssh2_session_last_errno ../lib/.libs/libcurl.so libssh2_session_last_error ../lib/.libs/libcurl.so libssh2_knownhost_init ../lib/.libs/libcurl.so libssh2_knownhost_free ../lib/.libs/libcurl.so libssh2_sftp_unlink_ex ../lib/.libs/libcurl.so libssh2_userauth_keyboard_interactive_ex ../lib/.libs/libcurl.so libssh2_hostkey_hash ../lib/.libs/libcurl.so libssh2_sftp_close_handle ../lib/.libs/libcurl.so libssh2_channel_read_ex ../lib/.libs/libcurl.so libssh2_knownhost_check ../lib/.libs/libcurl.so libssh2_channel_wait_closed ../lib/.libs/libcurl.so libssh2_sftp_readdir_ex ../lib/.libs/libcurl.so libssh2_session_startup ../lib/.libs/libcurl.so libssh2_sftp_write ../lib/.libs/libcurl.so libssh2_scp_send64 ../lib/.libs/libcurl.so libssh2_sftp_last_error ../lib/.libs/libcurl.so libssh2_session_init_ex ../lib/.libs/libcurl.so libssh2_session_free ../lib/.libs/libcurl.so libssh2_knownhost_readfile ../lib/.libs/libcurl.so libssh2_userauth_publickey_fromfile_ex ../lib/.libs/libcurl.so libssh2_session_hostkey ../lib/.libs/libcurl.so libssh2_session_disconnect_ex ../lib/.libs/libcurl.so libssh2_session_block_directions ../lib/.libs/libcurl.so libssh2_channel_wait_eof ../lib/.libs/libcurl.so libssh2_knownhost_add ../lib/.libs/libcurl.so libssh2_sftp_open_ex ../lib/.libs/libcurl.so libssh2_sftp_shutdown ../lib/.libs/libcurl.so libssh2_userauth_list ../lib/.libs/libcurl.so libssh2_knownhost_writefile ../lib/.libs/libcurl.so ld: fatal: Symbol referencing errors. No output written to .libs/curl collect2: ld returned 1 exit status Apparently libssh2.so is missing to link with. I have this file in a directory pointed to by LD_LIBRARY_PATH. But it doesn't work. How can I make build these libcurl libraries with the SSH2 stuff linked in? - Saqib =================================== Hi Saqib, I think that LD_LIBRARY_PATH is used for runtime lib searching, rather than compilation. You can cd curl directory, and run ./configure --help to get all options. If want to build curl with SFTP , then you should specify libssh2 path and openssl path, such as: ./configure --with-libssh2=YOUR_LIBSSH2_PATH --with-ssl=YOUR_OPENSSL_PATH Good luck. Regards, Atlantis
------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
