RE: Compiling error: ssh.c:(.text+0x2121): undefined reference to `libssh2_sftp_seek64'
Status: Alpha
Brought to you by:
coroberti
|
From: Todd C. <tc...@in...> - 2009-05-05 18:34:58
|
Your suggestion works.
Thanks,
Todd
________________________________
From: Robert Iakobashvili [mailto:cor...@gm...]
Sent: Sunday, May 03, 2009 6:53 AM
To: curl-loader-devel
Subject: Re: Compiling error: ssh.c:(.text+0x2121): undefined reference
to `libssh2_sftp_seek64'
Hi Todd,
On Thu, Apr 30, 2009 at 5:32 PM, Todd Chu <tc...@in...> wrote:
After untar the curl-loader-0.48, I just did "make". Then, I got the
following error:
make[3]: Entering directory
`/home/tchu/Download/curl-loader-0.48/build/curl/src'
/bin/sh ../libtool --tag=CC --mode=link gcc -DCURL_MAX_WRITE_SIZE=4096
-g0 -O2 -Wno-system-headers -o curl main.o hugehelp.o urlglob.o
writeout.o writeenv.o getpass.o homedir.o curlutil.o strtoofft.o
strdup.o rawstr.o ../lib/libcurl.la -lz
libtool: link: gcc -DCURL_MAX_WRITE_SIZE=4096 -g0 -O2
-Wno-system-headers -o curl main.o hugehelp.o urlglob.o writeout.o
writeenv.o getpass.o homedir.o curlutil.o strtoofft.o strdup.o rawstr.o
/home/tchu/Download/curl-loader-0.48/build/curl/lib/libcurl.a -lssh2
-lssl -lcrypto -lrt -lz
/home/tchu/Download/curl-loader-0.48/build/curl/lib/libcurl.a(ssh.o): In
function `ssh_block2waitfor':
ssh.c:(.text+0x23a): undefined reference to
`libssh2_session_block_directions'
/home/tchu/Download/curl-loader-0.48/build/curl/lib/libcurl.a(ssh.o): In
function `ssh_statemach_act':
ssh.c:(.text+0x1de1): undefined reference to `libssh2_sftp_seek64'
ssh.c:(.text+0x2121): undefined reference to `libssh2_sftp_seek64'
ssh.c:(.text+0x2715): undefined reference to `libssh2_sftp_seek64'
/home/tchu/Download/curl-loader-0.48/build/curl/lib/libcurl.a(ssh.o): In
function `ssh_easy_statemach':
ssh.c:(.text+0x422b): undefined reference to
`libssh2_session_block_directions'
I am running Fedora 10 and I have the libssh2-1.1 installed. I
appreciate if someone could help me.
Regards,
Todd
Normally, Problem-Reporting-Form is expected.
Something mismatched in Fedora-10 libssh2 and libcurl, that we are
building.
Therefore, please, try to modify the Makefile, target LIBCURL
and instead :
--without-libidn \
--disable-ldap \
to place:
--without-libidn \
--without-libssh2 \
--disable-ldap \
Note, that since this is a target of a Makefile every line is preceded
by a
tabulation.
Further run:
$make cleanall
$make
--
Truly,
Robert Iakobashvili
|