Hi, I'm trying to compile libssh2 on my machine, but I'm getting an error I'm not able to track down, I was hoping someone here could give me some pointers.
Below is a sample session and what I'm getting: [mossda:~/libssh-0.2]$ uname -a SunOS machine.local 5.10 Generic_118833-18 sun4u sparc SUNW,Sun-Fire-V240 [mossda:~/libssh-0.2]$ls /sbcimp/run/pd/openssl/0.9.8d/ #UBS_README LICENSE certs lib misc private CHANGES bin include man openssl.cnf static [mossda:~/libssh-0.2]$ ./configure CPPFLAGS=-I/sbcimp/run/pd/openssl/0.9.8d/include LDFLAGS=-L/sbcimp/run/pd/openssl/0.9.8d/lib checking build system type... sparc-sun-solaris2.10 checking host system type... sparc-sun-solaris2.10 checking version script options... checking for SSH1 support... no checking for gcc... gcc 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... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for a BSD-compatible install... ./install-sh -c checking whether ln -s works... yes checking whether make sets $(MAKE)... yes checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/xpg4/bin/grep checking for egrep... /usr/xpg4/bin/grep -E checking for ld used by gcc... /sbcimp/run/pd/binutils/2.16.1-32bit/bin/ld checking if the linker (/sbcimp/run/pd/binutils/2.16.1-32bit/bin/ld) is GNU ld... yes checking for /sbcimp/run/pd/binutils/2.16.1-32bit/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/ccs/bin/nm -p checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... gcc -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 dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for g77... no checking for f77... no checking for xlf... no checking for frt... no checking for pgf77... no checking for cf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for f90... no checking for xlf90... no checking for pgf90... No checking for pghpf... no checking for epcf90... no checking for gfortran... no checking for g95... no checking for f95... no checking for fort... no checking for xlf95... no checking for ifort... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for ftn... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 262144 checking command to parse /usr/ccs/bin/nm -p output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/sbcimp/run/pd/binutils/2.16.1-32bit/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... 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... yes checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /sbcimp/run/pd/binutils/2.16.1-32bit/bin/ld checking if the linker (/sbcimp/run/pd/binutils/2.16.1-32bit/bin/ld) is GNU ld... yes checking whether the g++ linker (/sbcimp/run/pd/binutils/2.16.1-32bit/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC checking if g++ PIC flag -fPIC works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/sbcimp/run/pd/binutils/2.16.1-32bit/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... solaris2.10 ld.so checking how to hardcode library paths into programs... immediate appending configuration tag "F77" to libtool checking whether byte ordering is bigendian... yes checking for BN_init in -lcrypto... yes checking for deflateInit_ in -lz... yes checking for library containing hstrerror... -lresolv checking for library containing getaddrinfo... none required checking for library containing gethostbyname... none required checking for ANSI C header files... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking for unistd.h... (cached) yes checking openssl/aes.h usability... Yes checking openssl/aes.h presence... yes checking for openssl/aes.h... yes checking openssl/blowfish.h usability... yes checking openssl/blowfish.h presence... yes checking for openssl/blowfish.h... yes checking openssl/des.h usability... yes checking openssl/des.h presence... yes checking for openssl/des.h... yes checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking sys/poll.h usability... yes checking sys/poll.h presence... yes checking for sys/poll.h... yes checking for stdint.h... (cached) yes checking pty.h usability... no checking pty.h presence... no checking for pty.h... no checking gcrypt.h usability... no checking gcrypt.h presence... no checking for gcrypt.h... no checking for an ANSI C-conforming const... yes checking whether time.h and sys/time.h may both be included... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... no checking for working memcmp... no checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... no checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking for sys/socket.h... (cached) yes checking types of arguments for select... int,fd_set *,struct timeval * checking return type of signal handlers... void checking for vprintf... yes checking for _doprnt... yes checking for endpwent... yes checking for getaddrinfo... yes checking for gethostbyname... yes checking for getpass... yes checking for memmove... yes checking for memset... yes checking for cfmakeraw... no checking for select... yes checking for socket... yes checking for strchr... yes checking for strdup... yes checking for strerror... yes checking for strstr... yes checking for poll... yes configure: creating ./config.status config.status: creating Makefile config.status: creating libssh/Makefile config.status: creating config.h config.status: config.h is unchanged [mossda:~/libssh-0.2]$ make ln -s -f ../../config.h include/libssh/config.h /bin/sh ../libtool --mode=compile gcc -g -O2 -Wall -g -I../include/ -c client.c mkdir .libs gcc -g -O2 -Wall -g -I../include/ -c client.c -fPIC -DPIC -o .libs/client.o In file included from client.c:26: ../include/libssh/priv.h:133: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'md5_init' ../include/libssh/priv.h:134: error: expected ')' before 'c' ../include/libssh/priv.h:135: error: expected declaration specifiers or '...' before 'MD5CTX' ../include/libssh/priv.h:136: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sha1_init' ../include/libssh/priv.h:137: error: expected ')' before 'c' ../include/libssh/priv.h:138: error: expected declaration specifiers or '...' before 'SHACTX' ../include/libssh/priv.h:142: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'hmac_init' ../include/libssh/priv.h:143: error: expected ')' before 'c' ../include/libssh/priv.h:144: error: expected ')' before 'ctx' ../include/libssh/priv.h:235: error: expected specifier-qualifier-list before 'bignum' ../include/libssh/priv.h:383: error: expected declaration specifiers or '...' before 'bignum' ../include/libssh/priv.h:401: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'make_string_bn' ../include/libssh/priv.h:402: error: expected ')' before 'num' *** Error code 1 make: Fatal error: Command failed for target `client.o' Current working directory /home/mossda/libssh-0.2/libssh *** Error code 1 The following command caused the error: for dir in libssh; do \ (cd $dir && make all) \ || case "" in *k*) fail=yes;; *) exit 1;; esac; \ done && test -z "$fail" make: Fatal error: Command failed for target `SUBDIRS' [mossda:~/libssh-0.2]$ gcc -v Using built-in specs. Target: sparc-sun-solaris2.10 Configured with: /sbclocal/build/pd/gcc/gcc-4.1.1/configure --prefix=/sbcimp/run/pd/gcc/4.1.1-32bit --with-gnu-as --with-as=/sbcimp/run/pd/binutils/2.16.1-32bit/bin/as --with-gnu-ld --with-ld=/sbcimp/run/pd/binutils/2.16.1-32bit/bin/ld --enable-shared --enable-threads=posix --with-cpu=ultrasparc --with-tune=ultrasparc --enable-languages=c,c++ --disable-checking --enable-version-specific-runtime-libs --with-dwarf2 --with-system-zlib Thread model: posix gcc version 4.1.1 [mossda:~/libssh-0.2]$ Hope you can help, Kind Regards, David. Based on the present E-Mail exchange, and/or on the agreement reached with you, respectively, UBS is entitled to contact you via insecure E-Mail: (a) E-Mails contain substantial risks such as lack of confidentiality, manipulation of content and sender, misdirection, viruses etc. UBS does not accept any liability for damages arising from use of E-mail. Accordingly, UBS recommends to abstain from sending any sensitive information via E-Mail, from forwarding the text received when submitting reply E-Mails and recommends to manually capture the E-Mail address in every instance. If you should wish to verify the content of this message, please request a hard-copy version. (b) In principle, UBS does not accept any (purchase) orders, cancellation of orders or authorizations etc. via E-mail. If UBS receives such E-Mails, UBS is not obliged to expressly decline them. If you have received this E-Mail by mistake or do not wish to be contacted by E-Mail in the future, you are kindly asked to inform UBS accordingly. Any E-Mail received by mistake (including all its annexes) needs to be destroyed and the content may not be forwarded nor disclosed to any further persons. c) This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. ------------------------------------------------------------------------- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel