Subject: Re: LIBSSH2 & AIX

Re: LIBSSH2 & AIX

From: Henrik NordstrŲm <henrik_at_henriknordstrom.net>
Date: Wed, 17 Aug 2011 21:34:24 +0200

That's odd indeed. libssh2_channel_get_exit_signal is a public API function defined in channel.c and part of the libssh2 library (-lssh2).

Do you get the same error if you

  cd example
  make ssh_echo

Regards
Henrik

----- Ursprungsmeddelande -----
> I know this is a long shot given the OS in question; but I was hoping
> someone might be able to help me with LIBSSH2 and AIX.  I can configure
> and make 1.2.7 on AIX 6.1 with no issues.  Attached is the output of my
> configure and a make results in successful completion:
>
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating src/Makefile
> config.status: creating tests/Makefile
> config.status: creating example/Makefile
> config.status: creating docs/Makefile
> config.status: creating libssh2.pc
> config.status: creating src/libssh2_config.h
> config.status: creating example/libssh2_config.h
> config.status: executing depfiles commands
> config.status: executing libtool commands
> configure: summary of build options:
>
>    version:                  1.2.7
>    Host type:              powerpc-ibm-aix6.1.0.0
>    Install prefix:    /opt/pware
>    Compiler:                gcc -O2
> -Wl,-blibpath:/opt/pware/lib:/usr/lib:/lib,-brtl  Compiler flags:    -g
> -O2  Library types:      Shared=yes, Static=no
>    Crypto library:    openssl: yes (AES-CTR: no) libgcrypt: no
>    Debug build:          no
>    Path to sshd:          (only for self-tests)
>    libz compression: yes
>
> <snip>
> make[2]: Leaving directory
> `/usr/sys/inst.images/LIBSSH2/libssh2-1.2.7/example' make[1]: Leaving
> directory `/usr/sys/inst.images/LIBSSH2/libssh2-1.2.7/example' Making
> all in tests make[1]: Entering directory
> `/usr/sys/inst.images/LIBSSH2/libssh2-1.2.7/tests' make[1]: Nothing to
> be done for `all'. make[1]: Leaving directory
> `/usr/sys/inst.images/LIBSSH2/libssh2-1.2.7/tests' Making all in docs
> make[1]: Entering directory
> `/usr/sys/inst.images/LIBSSH2/libssh2-1.2.7/docs' make[1]: Nothing to be
> done for `all'. make[1]: Leaving directory
> `/usr/sys/inst.images/LIBSSH2/libssh2-1.2.7/docs' make[1]: Entering
> directory `/usr/sys/inst.images/LIBSSH2/libssh2-1.2.7' make[1]: Nothing
> to be done for `all-am'. make[1]: Leaving directory
> `/usr/sys/inst.images/LIBSSH2/libssh2-1.2.7'
> root_at_aoctoolbox:/usr/sys/inst.images/LIBSSH2/libssh2-1.2.7:>
>
> Same config on 1.2.8 fails and I don't have any ideas on what might be
> the problem.
>
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating src/Makefile
> config.status: creating tests/Makefile
> config.status: creating example/Makefile
> config.status: creating docs/Makefile
> config.status: creating libssh2.pc
> config.status: creating src/libssh2_config.h
> config.status: creating example/libssh2_config.h
> config.status: executing depfiles commands
> config.status: executing libtool commands
> configure: summary of build options:
>
>    version:                  -
>    Host type:              powerpc-ibm-aix6.1.0.0
>    Install prefix:    /opt/pware
>    Compiler:                gcc -O2
> -Wl,-blibpath:/opt/pware/lib:/usr/lib:/lib,-brtl  Compiler flags:    -g
> -O2  Library types:      Shared=yes, Static=no
>    Crypto library:    openssl: yes (AES-CTR: no) libgcrypt: no
>    Debug build:          no
>    Path to sshd:          (only for self-tests)
>    libz compression: yes
>
> <snip>
>
> /bin/sh ../libtool --tag=CC --mode=link gcc -O2
> -Wl,-blibpath:/opt/pware/lib:/usr/lib:/lib,-brtl  -g -O2
> -L/opt/pware/lib -o sftpdir  sftpdir.o ../src/libssh2.la libtool: link:
> gcc -O2 -Wl,-blibpath:/opt/pware/lib:/usr/lib:/lib -Wl,-brtl -g -O2 -o
> .libs/sftpdir sftpdir.o  -L/opt/pware/lib -L../src/.libs -lssh2
> -Wl,-blibpath:/opt/pware/lib:/opt/pware/lib:/usr/lib:/lib if gcc -O2
> -Wl,-blibpath:/opt/pware/lib:/usr/lib:/lib,-brtl -DHAVE_CONFIG_H 
> -I../include -I../example -I/opt/pware/include  -g -O2 -MT
> sftpdir_nonblock.o -MD -MP -MF ".deps/sftpdir_nonblock.Tpo" -c -o
> sftpdir_nonblock.o sftpdir_nonblock.c; \ then mv -f
> ".deps/sftpdir_nonblock.Tpo" ".deps/sftpdir_nonblock.Po"; else rm -f
> ".deps/sftpdir_nonblock.Tpo"; exit 1; fi gcc:
> -blibpath:/opt/pware/lib:/usr/lib:/lib: linker input file unused because
> linking not done gcc: -brtl: linker input file unused because linking
> not done /bin/sh ../libtool --tag=CC --mode=link gcc -O2
> -Wl,-blibpath:/opt/pware/lib:/usr/lib:/lib,-brtl  -g -O2
> -L/opt/pware/lib -o sftpdir_nonblock  sftpdir_nonblock.o
> ../src/libssh2.la libtool: link: gcc -O2
> -Wl,-blibpath:/opt/pware/lib:/usr/lib:/lib -Wl,-brtl -g -O2 -o
> .libs/sftpdir_nonblock sftpdir_nonblock.o  -L/opt/pware/lib
> -L../src/.libs -lssh2
> -Wl,-blibpath:/opt/pware/lib:/opt/pware/lib:/usr/lib:/lib if gcc -O2
> -Wl,-blibpath:/opt/pware/lib:/usr/lib:/lib,-brtl -DHAVE_CONFIG_H 
> -I../include -I../example -I/opt/pware/include  -g -O2 -MT ssh2_exec.o
> -MD -MP -MF ".deps/ssh2_exec.Tpo" -c -o ssh2_exec.o ssh2_exec.c; \ then
> mv -f ".deps/ssh2_exec.Tpo" ".deps/ssh2_exec.Po"; else rm -f
> ".deps/ssh2_exec.Tpo"; exit 1; fi gcc:
> -blibpath:/opt/pware/lib:/usr/lib:/lib: linker input file unused because
> linking not done gcc: -brtl: linker input file unused because linking
> not done /bin/sh ../libtool --tag=CC --mode=link gcc -O2
> -Wl,-blibpath:/opt/pware/lib:/usr/lib:/lib,-brtl  -g -O2
> -L/opt/pware/lib -o ssh2_exec  ssh2_exec.o ../src/libssh2.la libtool:
> link: gcc -O2 -Wl,-blibpath:/opt/pware/lib:/usr/lib:/lib -Wl,-brtl -g
> -O2 -o .libs/ssh2_exec ssh2_exec.o  -L/opt/pware/lib -L../src/.libs
> -lssh2 -Wl,-blibpath:/opt/pware/lib:/opt/pware/lib:/usr/lib:/lib ld:
> 0711-317 ERROR: Undefined symbol: .libssh2_channel_get_exit_signal ld:
> 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> information. collect2: ld returned 8 exit status make[2]: ***
> [ssh2_exec] Error 1 make[2]: Leaving directory
> `/usr/sys/inst.images/LIBSSH2/libssh2-1.2.8/example' make[1]: *** [all]
> Error 2 make[1]: Leaving directory
> `/usr/sys/inst.images/LIBSSH2/libssh2-1.2.8/example' make: ***
> [all-recursive] Error 1
>
> Anybody have any suggestions or possible solutions ?  It would be
> greatly appreciated !
>
> Lamar
>
> Privileged and Confidential.  This e-mail, and any attachments there to,
> is intended only for use by the addressee(s) named herein and may
> contain privileged or confidential information.  If you have received
> this e-mail in error, please notify me immediately by a return e-mail
> and delete this e-mail.  You are hereby notified that any dissemination,
> distribution or copying of this e-mail and/or any attachments thereto,
> is strictly prohibited.
>
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-08-17