Hi,

I tried with the latest version libssh2 1.4.1,but still getting the same error.

Please find the attached docs.

Thanks & Regards,
V. Anil Kumar.


-----Original Message-----
From: libssh2-devel-boun...@cool.haxx.se 
[mailto:libssh2-devel-boun...@cool.haxx.se] On Behalf Of Peter Stuge
Sent: Saturday, April 14, 2012 8:32 PM
To: libssh2-devel@cool.haxx.se
Subject: Re: Reg: Getting error while configuring libssh2 package.

V, AnilKumar wrote:
> ./configure CC=cc CFLAGS=-xarch=v9 \
>             --prefix=/ctxtools/cortex/local/64bit \
>               --disable-shared --enable-static \
>             --with-openssl --without-libgcrypt \
>             --with-libssl-prefix=/ctxtools/cortex/local/64bit/  \
>             --with-libz-prefix=/ctxtools/cortex/local/64bit
> 
> I am sure openssl was present in this path "/ctxtools/cortex/local/64bit/ ".
..

> configure:2946: checking libssh2 version
> configure:2948: result: 1.2.4

Why are you using code which is more than two years old? You will not really 
get help unless you use the latest code.


> configure:12952: checking for libssl
> configure:12971: cc -o conftest -xarch=v9   conftest.c -lnsl -lsocket  -lssl 
> -lcrypto >&5
> "conftest.c", line 29: cannot find include file: <openssl/ssl.h>
> cc: acomp failed for conftest.c
> configure:12971: $? = 2

The error message is quite obvious.

You should look into why your prefix isn't in that command line. If you don't 
know where to start then try again with the latest code and send your configure 
command together with full output from running configure, as well as config.log.


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

_____________
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.

Attachment: config.log
Description: config.log

$ cd libssh2-1.4.1
$ ./configure CC=cc CFLAGS=-xarch=v9 \
>             --prefix=/ctxtools/cortex/local/64bit \
>               --disable-shared --enable-static \
>             --with-openssl --without-libgcrypt \
>             --with-libssl-prefix=/ctxtools/cortex/local/64bit/  \
>             --with-libz-prefix=/ctxtools/cortex/local/64bit
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
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking libssh2 version... 1.4.1
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
configure: autobuild project... libssh2
configure: autobuild revision... 1.4.1
configure: autobuild hostname... chnsun01
configure: autobuild timestamp... 20120416-132538
checking for style of include used by make... GNU
checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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... none needed
checking dependency style of cc... none
checking how to run the C preprocessor... cc -E
checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
checking for egrep... /usr/xpg4/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... yes
checking if _REENTRANT is onwards defined... yes
checking for library containing socket... -lsocket
checking for library containing inet_addr... -lnsl
checking for gcc... (cached) cc
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) none needed
checking dependency style of cc... (cached) none
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for sshd... no
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/xpg4/bin/grep -F
checking for non-GNU ld... /usr/ccs/bin//ld
checking if the linker (/usr/ccs/bin//ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/ccs/bin//nm -p
checking the name lister (/usr/ccs/bin//nm -p) interface... BSD nm
checking the maximum length of command line arguments... 786240
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking for /usr/ccs/bin//ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/ccs/bin//nm -p output from cc object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking for cc option to produce PIC... -KPIC -DPIC
checking if cc PIC flag -KPIC -DPIC works... yes
checking if cc static flag -Bstatic works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/ccs/bin//ld -64) supports shared 
libraries... yes
checking dynamic linker characteristics... solaris2.10 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... no
checking whether to build static libraries... yes
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/ccs/bin//ld -64
checking if the linker (/usr/ccs/bin//ld -64) is GNU ld... no
checking for shared library run path origin... done
checking for libssl... no
configure: error: cannot find OpenSSL or Libgcrypt,
try --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH
$
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to