Subject: [libssh2] [ libssh2-Bugs-1821872 ] Cannot compile on libssh2 on Solaris 10 Sparc

[libssh2] [ libssh2-Bugs-1821872 ] Cannot compile on libssh2 on Solaris 10 Sparc

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 06 Nov 2007 08:23:54 -0800

Bugs item #1821872, was opened at 2007-10-28 17:29
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=1821872&group_id=125852

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Cannot compile on libssh2 on Solaris 10 Sparc

Initial Comment:
I have tried downloading and making versions 0.16-0.18. I receiving the following error trying to compile.

gcc -g -O2 -I/usr/sfw/include -I/usr/local/include -o .libs/ssh2 ssh2.o -L/usr/sfw/lib -L/usr/local/lib ../../src/.libs/libssh2.so -lssl -lcrypto -ldl -lz -lnsl -lsocket -R/usr/local/lib -R/usr/sfw/lib
Undefined first referenced
 symbol in file
EVP_aes_192_cbc ../../src/.libs/libssh2.so
EVP_aes_256_cbc ../../src/.libs/libssh2.so
ld: fatal: Symbol referencing errors. No output written to .libs/ssh2
collect2: ld returned 1 exit status
make[3]: *** [ssh2] Error 1
make[3]: Leaving directory `/scratch/source/libssh2-0.18.0-CVS/example/simple'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/scratch/source/libssh2-0.18.0-CVS/example/simple'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/scratch/source/libssh2-0.18.0-CVS/example'
make: *** [all-recursive] Error 1
hal-/scratch/source/libssh2-0.18.0-CVS> env
MANPATH=/opt/SUNWexplo/man:/opt/SUNWvts/man::/usr/man:/usr/share/man:/usr/local/man
LC_MONETARY=en_US.ISO8859-15
TERM=xterm
SHELL=/usr/bin/bash
LC_NUMERIC=en_US.ISO8859-15
OLDPWD=/scratch/source
SSH_TTY=/dev/pts/19
USER=ctouchton
SSH_AUTH_SOCK=/tmp/ssh-POhl9132/agent.9132
PATH=/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/ccs/bin:/usr/platform/bin:/usr/platform/sbin:/usr/sfw/bin:/usr/sfw/sbin:/opt/SUNWspro/bin:/usr/openwin/bin
LC_MESSAGES=C
LC_COLLATE=en_US.ISO8859-15
PWD=/scratch/source/libssh2-0.18.0-CVS
EDITOR=vi
TZ=US/Eastern
SHLVL=1
LC_CTYPE=en_US.ISO8859-15
DISPLAY=localhost:11.0
_=/usr/bin/env
hal-/scratch/source/libssh2-0.18.0-CVS> crle

Configuration file [version 4]: /var/ld/ld.config
  Default Library Path (ELF): /lib:/lib/secure:/usr/lib/secure:/usr/local/lib:/usr/lib:/usr/sfw/lib:/usr/local/ssl/lib/
  Trusted Directories (ELF): /lib/secure:/usr/lib/secure (system default)

Command line:
  crle -c /var/ld/ld.config -l /lib:/lib/secure:/usr/lib/secure:/usr/local/lib:/usr/lib:/usr/sfw/lib:/usr/local/ssl/lib/

hal-/scratch/source/libssh2-0.18.0-CVS>

Thanks.

solarisadmin_at_mac.com

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2007-11-06 08:23

Message:
Logged In: NO

Hi

I am facing the same problem

libssh2-0.16/example/simple>make
make all-am
/bin/bash ../../libtool --tag=CC --mode=link gcc -g -O2
-I/tmp/pm/openssl-0.9.8f/include -I/usr/include
-L/tmp/pm/openssl-0.9.8f/lib -lcrypto -L/usr/lib -lz -o ssh2 ssh2.o
../../src/libssh2.la -lnsl -lsocket
gcc -g -O2 -I/tmp/pm/openssl-0.9.8f/include -I/usr/include -o .libs/ssh2
ssh2.o -L/tmp/pm/openssl-0.9.8f/lib -L/usr/lib
../../src/.libs/libssh2.so -lcrypto -lz -lnsl -lsocket
-R/tmp/pm/libssh2-0.16/lib
Undefined first referenced
 symbol in file
EVP_aes_192_cbc ../../src/.libs/libssh2.so
EVP_Cipher ../../src/.libs/libssh2.so
EVP_aes_256_cbc ../../src/.libs/libssh2.so
ld: fatal: Symbol referencing errors. No output written to .libs/ssh2
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `ssh2'
Current working directory /tmp/pm/libssh2-0.16/example/simple
*** Error code 1
make: Fatal error: Command failed for target `all'

Please do let me know how to resolve this..

----------------------------------------------------------------------

Comment By: Dan Fandrich (dfandrich)
Date: 2007-10-30 11:54

Message:
Logged In: YES
user_id=236775
Originator: NO

Your guess is probably a good one. This shouldn't be failing in the link
stage otherwise.

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2007-10-30 08:18

Message:
Logged In: NO

Here's my /usr/local/ssl version of openssl. Is it possible it is looking
at other ssl libraries in /usr/sfw, or somewhere else?

hal-/usr/local/ssl/bin> ./openssl version
OpenSSL 0.9.8f 11 Oct 2007
hal-/usr/local/ssl/bin>

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2007-10-30 08:17

Message:
Logged In: NO

Here's my /usr/local/ssl version of openssl. Is it possible it is looking
at other ssl libraries in /usr/sfw, or somewhere else?

hal-/usr/local/ssl/bin> ./openssl version
OpenSSL 0.9.8f 11 Oct 2007
hal-/usr/local/ssl/bin>

----------------------------------------------------------------------

Comment By: Dan Fandrich (dfandrich)
Date: 2007-10-28 17:49

Message:
Logged In: YES
user_id=236775
Originator: NO

This sounds like an old version of OpenSSL. What version are you using?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=1821872&group_id=125852

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2007-11-06