Hi,
I am unable to build libssh2 on an AIX 5.3 host. OpenSSH is not installed
on this machine but was built successfully in a separate directory so I
used configure's --with-libssl-prefix.
I have experimented with the stable libssh2-1.4.3 and with the latest
snapshot (libssh2-1.4.4-20140106) with the same results.
This is what happens:
faxplus_at_ichh2s89 /home/faxplus/libssh2/libssh2-1.4.4-20140106-AIXP64
>./configure --with-openssl
--with-libssl-prefix=~/OpenSSL/openssl-1.0.1e-AIXP64 --with-libz
--with-libz-prefix=~/local/build-mposerv/buildenv/aixp64/toolkits/ZLIB
CFLAGS=-q64 LFLAGS=-q64
errors out with the following:
checking whether to enable maintainer-specific portions of Makefiles... no
checking for sed... /usr/bin/sed
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
/home/faxplus/libssh2/libssh2-1.4.4-20140106-AIXP64/missing: Unknown
`--is-lightweight' option
Try `/home/faxplus/libssh2/libssh2-1.4.4-20140106-AIXP64/missing --help'
for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking libssh2 version... 1.4.4-20140106
checking build system type... powerpc-ibm-aix5.3.0.0
checking host system type... powerpc-ibm-aix5.3.0.0
configure: autobuild project... libssh2
configure: autobuild revision... 1.4.4-20140106
configure: autobuild hostname... ichh2s89
configure: autobuild timestamp... 20140106-100634
checking for style of include used by make... GNU
checking for gcc... no
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... -qlanglvl=extc89
checking whether cc -qlanglvl=extc89 understands -c and -o together... yes
checking dependency style of cc -qlanglvl=extc89... aix
checking how to run the C preprocessor... cc -qlanglvl=extc89 -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for long long... yes
checking if _REENTRANT is already defined... no
checking if _REENTRANT is actually needed... no
checking if _REENTRANT is onwards defined... no
checking for library containing socket... none required
checking for library containing inet_addr... none required
checking whether we are using the GNU C compiler... (cached) no
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ISO C89... (cached) -qlanglvl=extc89
checking whether cc -qlanglvl=extc89 understands -c and -o together...
(cached) yes
checking dependency style of cc -qlanglvl=extc89... (cached) aix
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for sshd... no
checking how to print strings... print -r
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for non-GNU ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 18432
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking how to convert powerpc-ibm-aix5.3.0.0 file names to
powerpc-ibm-aix5.3.0.0 format... func_convert_file_noop
checking how to convert powerpc-ibm-aix5.3.0.0 file names to toolchain
format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... print -r --
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc -qlanglvl=extc89
object... failed
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking for cc -qlanglvl=extc89 option to produce PIC... -DPIC
checking if cc -qlanglvl=extc89 PIC flag -DPIC works... yes
checking if cc -qlanglvl=extc89 static flag -bnso -bI:/lib/syscalls.exp
works... no
checking if cc -qlanglvl=extc89 supports -c -o file.o... yes
checking if cc -qlanglvl=extc89 supports -c -o file.o... (cached) yes
checking whether the cc -qlanglvl=extc89 linker (/usr/bin/ld) supports
shared libraries... yes
checking dynamic linker characteristics... aix5.3.0.0 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether byte ordering is bigendian... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for non-GNU ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for shared library run path origin... done
checking for libssl... no
checking for libgcrypt... no
configure: error: No crypto library found!
Try --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH
The OpenSSL files are all there (I have set a symlink named 'lib' to point
to OpenSSL's base directory where the shared libs are):
faxplus_at_ichh2s89 /home/faxplus/libssh2/libssh2-1.4.3-AIXP64 >ls
~/OpenSSL/openssl-1.0.1e-AIXP64
ACKNOWLEDGMENTS INSTALL.OS2 Makefile.org apps/
engines/ libssl.pc perl/
CHANGES INSTALL.VMS Makefile.shared bugs/
include/ libssl.so@ rehash.time
CHANGES.SSLeay INSTALL.W32 NEWS certs/
install.com libssl.so.1.0.0* see
Configure* INSTALL.W64 Netware/ config*
lib@ makevms.com* shlib/
FAQ INSTALL.WCE PROBLEMS crypto/
libcrypto.a ms/ ssl/
INSTALL LICENSE README demos/
libcrypto.pc openssl.doxy test/
INSTALL.DJGPP MacOS/ README.ASN1 doc/
libcrypto.so@ openssl.pc times/
INSTALL.MacOS Makefile README.ENGINE e_os.h
libcrypto.so.1.0.0* openssl.spec tools/
INSTALL.NW Makefile.bak VMS/ e_os2.h
libssl.a os2/ util/
faxplus_at_ichh2s89 /home/faxplus/libssh2/libssh2-1.4.3-AIXP64 >ls
~/OpenSSL/openssl-1.0.1e-AIXP64/include
openssl/
faxplus_at_ichh2s89 /home/faxplus/libssh2/libssh2-1.4.3-AIXP64 >ls
~/OpenSSL/openssl-1.0.1e-AIXP64/include/openssl
aes.h@ cast.h@ dh.h@ engine.h@ md5.h@
pem.h@ rsa.h@ ssl3.h@ x509.h@
asn1.h@ cmac.h@ dsa.h@ err.h@ mdc2.h@
pem2.h@ safestack.h@ stack.h@ x509_vfy.h@
asn1_mac.h@ cms.h@ dso.h@ evp.h@ modes.h@
pkcs12.h@ seed.h@ symhacks.h@ x509v3.h@
asn1t.h@ comp.h@ dtls1.h@ hmac.h@ obj_mac.h@
pkcs7.h@ sha.h@ tls1.h@
bio.h@ conf.h@ e_os2.h@ idea.h@ objects.h@
pqueue.h@ srp.h@ ts.h@
blowfish.h@ conf_api.h@ ebcdic.h@ krb5_asn.h@ ocsp.h@
rand.h@ srtp.h@ txt_db.h@
bn.h@ crypto.h@ ec.h@ kssl.h@ opensslconf.h@
rc2.h@ ssl.h@ ui.h@
buffer.h@ des.h@ ecdh.h@ lhash.h@ opensslv.h@
rc4.h@ ssl2.h@ ui_compat.h@
camellia.h@ des_old.h@ ecdsa.h@ md4.h@ ossl_typ.h@
ripemd.h@ ssl23.h@ whrlpool.h@
faxplus_at_ichh2s89 /home/faxplus/libssh2/libssh2-1.4.3-AIXP64 >ls
~/OpenSSL/openssl-1.0.1e-AIXP64/lib/*.so*
/home/faxplus/OpenSSL/openssl-1.0.1e-AIXP64/lib/libcrypto.so@
/home/faxplus/OpenSSL/openssl-1.0.1e-AIXP64/lib/libssl.so@
/home/faxplus/OpenSSL/openssl-1.0.1e-AIXP64/lib/libcrypto.so.1.0.0*
/home/faxplus/OpenSSL/openssl-1.0.1e-AIXP64/lib/libssl.so.1.0.0*
Please note that I have the impression that the same problem exists with
the --with-libz-prefix so I suspect all --with-libXXX-prefix options are
broken.
I have tried to build libssh2 on a Linux/x64 machine with an installed
libssl but regardless of the --with-libssl-prefix settings configure
always picks up libssl from /usr/lib. The same applies to the
--with-libz-prefix as well. I have verified this with ldd on the libss2.so
shlib.
I have tried hard to dig into the configure logic but was unable to find
out how it works. Maybe some configure expert can have a look into this?
I'm happy to try any fix.
Thanks and best regards,
- Michael
Mit freundlichen Gruessen / best regards
Michael Kwasigroch
Development
_______________________________________________________________
Office number: +49 40 514 52-175
Office fax: +49 40 514 52-100
Email: mkwasigr_at_intercope.com
www.intercope.com
________________________________________________________________
INTERCOPE International Communication Products Engineering GmbH
Himmelstrasse 12-16, 22299 Hamburg, Germany
Managing Directors: Reinhart Laumer, Frank Kollender
Commercial Registry: Amtsgericht Hamburg, HRB 31 638
________________________________________________________________
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
________________________________________________________________
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel