cURL / Mailing Lists / curl-users / Single Mail

curl-users

error: compiling curl with openssl and libssh2 ...........

From: martin wang <martin.4096_at_gmail.com>
Date: Mon, 23 Apr 2007 02:58:35 -0700

  curl path command ./configure output is :

  curl version: 7.16.2
  Host setup: i686-pc-linux-gnu
  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)
  c-ares support: no (--enable-ares)
  ipv6 support: no (--enable-ipv6)
  IDN support: enabled
  Build libcurl: Shared=yes, Static=yes
  Built-in manual: enabled
  Verbose errors: enabled (--disable-verbose)
  SSPI support: no (--enable-sspi)
  ca cert path: /usr/local/share/curl/curl-ca-bundle.crt

then 'make'

creating libcurl.la
(cd .libs && rm -f libcurl.la && ln -s ../libcurl.la libcurl.la)
make[2]: Leaving directory `/usr/local/curl-7.16.2/lib'
make[1]: Leaving directory `/usr/local/curl-7.16.2/lib'
Making all in src
make[1]: Entering directory `/usr/local/curl-7.16.2/src'
make all-am
make[2]: Entering directory `/usr/local/curl-7.16.2/src'
gcc -DHAVE_CONFIG_H -I../include -I../lib -I../src -I../lib -I../src
-I/usr/kerberos/include -g -O2 -MT main.o -MD -MP -MF
.deps/main.Tpo -c -o main.o main.c
mv -f .deps/main.Tpo .deps/main.Po
gcc -DHAVE_CONFIG_H -I../include -I../lib -I../src -I../lib -I../src
-I/usr/kerberos/include -g -O2 -MT hugehelp.o -MD -MP -MF
.deps/hugehelp.Tpo -c -o hugehelp.o hugehelp.c
mv -f .deps/hugehelp.Tpo .deps/hugehelp.Po
gcc -DHAVE_CONFIG_H -I../include -I../lib -I../src -I../lib -I../src
-I/usr/kerberos/include -g -O2 -MT urlglob.o -MD -MP -MF
.deps/urlglob.Tpo -c -o urlglob.o urlglob.c
mv -f .deps/urlglob.Tpo .deps/urlglob.Po
gcc -DHAVE_CONFIG_H -I../include -I../lib -I../src -I../lib -I../src
-I/usr/kerberos/include -g -O2 -MT writeout.o -MD -MP -MF
.deps/writeout.Tpo -c -o writeout.o writeout.c
mv -f .deps/writeout.Tpo .deps/writeout.Po
gcc -DHAVE_CONFIG_H -I../include -I../lib -I../src -I../lib -I../src
-I/usr/kerberos/include -g -O2 -MT writeenv.o -MD -MP -MF
.deps/writeenv.Tpo -c -o writeenv.o writeenv.c
mv -f .deps/writeenv.Tpo .deps/writeenv.Po
gcc -DHAVE_CONFIG_H -I../include -I../lib -I../src -I../lib -I../src
-I/usr/kerberos/include -g -O2 -MT getpass.o -MD -MP -MF
.deps/getpass.Tpo -c -o getpass.o getpass.c
mv -f .deps/getpass.Tpo .deps/getpass.Po
gcc -DHAVE_CONFIG_H -I../include -I../lib -I../src -I../lib -I../src
-I/usr/kerberos/include -g -O2 -MT homedir.o -MD -MP -MF
.deps/homedir.Tpo -c -o homedir.o homedir.c
mv -f .deps/homedir.Tpo .deps/homedir.Po
gcc -DHAVE_CONFIG_H -I../include -I../lib -I../src -I../lib -I../src
-I/usr/kerberos/include -g -O2 -MT curlutil.o -MD -MP -MF
.deps/curlutil.Tpo -c -o curlutil.o curlutil.c
mv -f .deps/curlutil.Tpo .deps/curlutil.Po
gcc -DHAVE_CONFIG_H -I../include -I../lib -I../src -I../lib -I../src
-I/usr/kerberos/include -g -O2 -MT strtoofft.o -MD -MP -MF
.deps/strtoofft.Tpo -c -o strtoofft.o `test -f '../lib/strtoofft.c' ||
echo './'`../lib/strtoofft.c
mv -f .deps/strtoofft.Tpo .deps/strtoofft.Po
gcc -DHAVE_CONFIG_H -I../include -I../lib -I../src -I../lib -I../src
-I/usr/kerberos/include -g -O2 -MT strdup.o -MD -MP -MF
.deps/strdup.Tpo -c -o strdup.o `test -f '../lib/strdup.c' || echo
'./'`../lib/strdup.c
mv -f .deps/strdup.Tpo .deps/strdup.Po
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2
-L/usr/kerberos/lib -o curl main.o hugehelp.o urlglob.o writeout.o
writeenv.o getpass.o homedir.o curlutil.o strtoofft.o strdup.o
../lib/libcurl.la -lz
mkdir .libs
gcc -g -O2 -o .libs/curl main.o hugehelp.o urlglob.o writeout.o
writeenv.o getpass.o homedir.o curlutil.o strtoofft.o strdup.o
-L/usr/kerberos/lib ../lib/.libs/libcurl.so -lz -Wl,--rpath
-Wl,/usr/local/lib
../lib/.libs/libcurl.so: undefined reference to `libssh2_userauth_list'
../lib/.libs/libcurl.so: undefined reference to `libssh2_sftp_stat_ex'
../lib/.libs/libcurl.so: undefined reference to `libssh2_sftp_mkdir_ex'
../lib/.libs/libcurl.so: undefined reference to `libssh2_sftp_write'
../lib/.libs/libcurl.so: undefined reference to `libssh2_hostkey_hash'
../lib/.libs/libcurl.so: undefined reference to `libssh2_session_init_ex'
../lib/.libs/libcurl.so: undefined reference to `libssh2_sftp_unlink_ex'
../lib/.libs/libcurl.so: undefined reference to `libssh2_channel_write_ex'
../lib/.libs/libcurl.so: undefined reference to `libssh2_sftp_read'
../lib/.libs/libcurl.so: undefined reference to `libssh2_session_disconnect_ex'
../lib/.libs/libcurl.so: undefined reference to `libssh2_sftp_shutdown'
../lib/.libs/libcurl.so: undefined reference to `libssh2_session_last_error'
../lib/.libs/libcurl.so: undefined reference to `libssh2_userauth_password_ex'
../lib/.libs/libcurl.so: undefined reference to `libssh2_channel_send_eof'
../lib/.libs/libcurl.so: undefined reference to `libssh2_channel_close'
../lib/.libs/libcurl.so: undefined reference to `libssh2_scp_send_ex'
../lib/.libs/libcurl.so: undefined reference to `libssh2_session_free'
../lib/.libs/libcurl.so: undefined reference to `libssh2_sftp_rename_ex'
../lib/.libs/libcurl.so: undefined reference to `libssh2_sftp_symlink_ex'
../lib/.libs/libcurl.so: undefined reference to `libssh2_sftp_last_error'
../lib/.libs/libcurl.so: undefined reference to `libssh2_sftp_readdir'
../lib/.libs/libcurl.so: undefined reference to `libssh2_sftp_close_handle'
../lib/.libs/libcurl.so: undefined reference to `libssh2_sftp_rmdir_ex'
../lib/.libs/libcurl.so: undefined reference to `libssh2_sftp_init'
../lib/.libs/libcurl.so: undefined reference to
`libssh2_userauth_keyboard_interactive_ex'
../lib/.libs/libcurl.so: undefined reference to `libssh2_scp_recv'
../lib/.libs/libcurl.so: undefined reference to `libssh2_session_startup'
../lib/.libs/libcurl.so: undefined reference to `libssh2_channel_read_ex'
../lib/.libs/libcurl.so: undefined reference to
`libssh2_userauth_publickey_fromfile_ex'
../lib/.libs/libcurl.so: undefined reference to `libssh2_sftp_open_ex'
collect2: ld returned 1 exit status
make[2]: *** [curl] Error 1
make[2]: Leaving directory `/usr/local/curl-7.16.2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/curl-7.16.2/src'
make: *** [all-recursive] Error 1

libssh2 version :libssh2-0.14
openssl version:openssl-0.9.8e

Can anybody guide me as to what I need to do.
thanks a lot!
Received on 2007-04-23