On 10/28/2010 2:33 AM, Sisyphus wrote:
Yes, msys is *my* preferred option. (I use cygwin pretty much only for
its 'git' and 'svn' clients :-)
Cheers,
Rob
Here are some notes so far (and failures). On Solaris I had to build
shared libs to avoid this issue, but shared seems to be more problematic
though. Are you using gcc 4.5 and source versions of these packages
comparable to what I'm attempting to compile?
NOTES (thus far)
msys here http://www.cccp-project.net/nichorai/msys.premade.2010.09.07.7z
zlib here
http://sourceforge.net/projects/mingw/files/MinGW/zlib/zlib-1.2.3-1-mingw32/zlib-1.2.3-1-mingw32-src.tar.gz/download
./configure && make && make install
openssl here http://www.openssl.org/source/openssl-0.9.8o.tar.gz [had to hack
e_os2.h remove the static modifier]
./config && make && make install
libssh2 here http://www.libssh2.org/download/libssh2-1.2.7.tar.gz
xpmu...@virtualxp-23999 /c/work/libssh2-1.2.7
$ ./configure --disable-shared --enable-static CPPFLAGS="-I/usr/local/include
-I/usr/local/ssl/include" LDFLAGS="-L/usr/local/lib -L/usr/local/ssl/lib" &&
make
checking whether to enable maintainer-specific portions of Makefiles... no
checking for sed... /bin/sed
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking libssh2 version... 1.2.7
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
configure: autobuild project... libssh2
configure: autobuild revision... 1.2.7
configure: autobuild hostname... VirtualXP-23999
configure: autobuild timestamp... 20101028-113322
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
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 dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /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... no
checking for library containing inet_addr... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether ln -s works... no, using cp -p
checking whether make sets $(MAKE)... (cached) yes
checking for sshd... no
checking for as... as
checking for dlltool... dlltool
checking for objdump... objdump
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... c:/msys/1.0/mingw/mingw32/bin/ld.exe
checking if the linker (c:/msys/1.0/mingw/mingw32/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /mingw/bin/nm
checking the name lister (/mingw/bin/nm) interface... BSD nm
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for c:/msys/1.0/mingw/mingw32/bin/ld.exe option to reload object
files... -r
checking for objdump... (cached) objdump
checking how to recognize dependent libraries... file_magic ^x86 archive
import|^x86 DLL
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /mingw/bin/nm output from gcc object... ok
checking for dlfcn.h... no
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (c:/msys/1.0/mingw/mingw32/bin/ld.exe) supports
shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
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... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for ld used by GCC... c:/msys/1.0/mingw/mingw32/bin/ld.exe
checking if the linker (c:/msys/1.0/mingw/mingw32/bin/ld.exe) is GNU ld... yes
checking for shared library run path origin... done
checking for libssl... yes
checking how to link with libssl... /usr/local/ssl/lib/libssl.a
/usr/local/ssl/lib/libcrypto.a
checking for EVP_aes_128_ctr... no
checking for libz... yes
checking how to link with libz... /usr/local/lib/libz.a
checking whether to enable pedantic and debug compiler options... no
checking whether to enable hidden symbols in the library... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/uio.h usability... no
checking sys/uio.h presence... no
checking for sys/uio.h... no
checking sys/select.h usability... no
checking sys/select.h presence... no
checking for sys/select.h... no
checking sys/socket.h usability... no
checking sys/socket.h presence... no
checking for sys/socket.h... no
checking sys/ioctl.h usability... no
checking sys/ioctl.h presence... no
checking for sys/ioctl.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking arpa/inet.h usability... no
checking arpa/inet.h presence... no
checking for arpa/inet.h... no
checking netinet/in.h usability... no
checking netinet/in.h presence... no
checking for netinet/in.h... no
checking sys/un.h usability... no
checking sys/un.h presence... no
checking for sys/un.h... no
checking windows.h usability... yes
checking windows.h presence... yes
checking for windows.h... yes
checking winsock2.h usability... yes
checking winsock2.h presence... yes
checking for winsock2.h... yes
checking ws2tcpip.h usability... yes
checking ws2tcpip.h presence... yes
checking for ws2tcpip.h... yes
checking for poll... no
checking for gettimeofday... yes
checking for select... no
checking for strtoll... yes
checking for select in ws2_32... yes
checking for working alloca.h... no
checking for alloca... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking non-blocking sockets style... ioctlsocket
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: i686-pc-mingw32
Install prefix: /usr/local
Compiler: gcc
Compiler flags: -DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200
Library types: Shared=no, Static=yes
Crypto library: openssl: yes (AES-CTR: no) libgcrypt: no
Debug build: no
Path to sshd: (only for self-tests)
libz compression: yes
Making all in src
make[1]: Entering directory `/c/work/libssh2-1.2.7/src'
make all-am
make[2]: Entering directory `/c/work/libssh2-1.2.7/src'
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../src -I/usr/local/include -I/usr/local/ssl/include
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -MT channel.lo -MD -MP -MF
".deps/channel.Tpo" -c -o channel.lo channel.c; \
then mv -f ".deps/channel.Tpo" ".deps/channel.Plo"; else rm -f
".deps/channel.Tpo"; exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../src
-I/usr/local/include -I/usr/local/ssl/include -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -MT channel.lo -MD -MP -MF .deps/channel.Tpo -c
channel.c -o channel.o
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../src -I/usr/local/include -I/usr/local/ssl/include
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -MT comp.lo -MD -MP -MF
".deps/comp.Tpo" -c -o comp.lo comp.c; \
then mv -f ".deps/comp.Tpo" ".deps/comp.Plo"; else rm -f
".deps/comp.Tpo"; exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../src
-I/usr/local/include -I/usr/local/ssl/include -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -MT comp.lo -MD -MP -MF .deps/comp.Tpo -c comp.c -o
comp.o
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../src -I/usr/local/include -I/usr/local/ssl/include
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -MT crypt.lo -MD -MP -MF
".deps/crypt.Tpo" -c -o crypt.lo crypt.c; \
then mv -f ".deps/crypt.Tpo" ".deps/crypt.Plo"; else rm -f
".deps/crypt.Tpo"; exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../src
-I/usr/local/include -I/usr/local/ssl/include -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -MT crypt.lo -MD -MP -MF .deps/crypt.Tpo -c crypt.c -o
crypt.o
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../src -I/usr/local/include -I/usr/local/ssl/include
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -MT hostkey.lo -MD -MP -MF
".deps/hostkey.Tpo" -c -o hostkey.lo hostkey.c; \
then mv -f ".deps/hostkey.Tpo" ".deps/hostkey.Plo"; else rm -f
".deps/hostkey.Tpo"; exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../src
-I/usr/local/include -I/usr/local/ssl/include -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -MT hostkey.lo -MD -MP -MF .deps/hostkey.Tpo -c
hostkey.c -o hostkey.o
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../src -I/usr/local/include -I/usr/local/ssl/include
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -MT kex.lo -MD -MP -MF ".deps/kex.Tpo"
-c -o kex.lo kex.c; \
then mv -f ".deps/kex.Tpo" ".deps/kex.Plo"; else rm -f ".deps/kex.Tpo";
exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../src
-I/usr/local/include -I/usr/local/ssl/include -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -MT kex.lo -MD -MP -MF .deps/kex.Tpo -c kex.c -o kex.o
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../src -I/usr/local/include -I/usr/local/ssl/include
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -MT mac.lo -MD -MP -MF ".deps/mac.Tpo"
-c -o mac.lo mac.c; \
then mv -f ".deps/mac.Tpo" ".deps/mac.Plo"; else rm -f ".deps/mac.Tpo";
exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../src
-I/usr/local/include -I/usr/local/ssl/include -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -MT mac.lo -MD -MP -MF .deps/mac.Tpo -c mac.c -o mac.o
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../src -I/usr/local/include -I/usr/local/ssl/include
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -MT misc.lo -MD -MP -MF
".deps/misc.Tpo" -c -o misc.lo misc.c; \
then mv -f ".deps/misc.Tpo" ".deps/misc.Plo"; else rm -f
".deps/misc.Tpo"; exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../src
-I/usr/local/include -I/usr/local/ssl/include -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -MT misc.lo -MD -MP -MF .deps/misc.Tpo -c misc.c -o
misc.o
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../src -I/usr/local/include -I/usr/local/ssl/include
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -MT packet.lo -MD -MP -MF
".deps/packet.Tpo" -c -o packet.lo packet.c; \
then mv -f ".deps/packet.Tpo" ".deps/packet.Plo"; else rm -f
".deps/packet.Tpo"; exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../src
-I/usr/local/include -I/usr/local/ssl/include -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -MT packet.lo -MD -MP -MF .deps/packet.Tpo -c packet.c
-o packet.o
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../src -I/usr/local/include -I/usr/local/ssl/include
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -MT publickey.lo -MD -MP -MF
".deps/publickey.Tpo" -c -o publickey.lo publickey.c; \
then mv -f ".deps/publickey.Tpo" ".deps/publickey.Plo"; else rm -f
".deps/publickey.Tpo"; exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../src
-I/usr/local/include -I/usr/local/ssl/include -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -MT publickey.lo -MD -MP -MF .deps/publickey.Tpo -c
publickey.c -o publickey.o
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../src -I/usr/local/include -I/usr/local/ssl/include
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -MT scp.lo -MD -MP -MF ".deps/scp.Tpo"
-c -o scp.lo scp.c; \
then mv -f ".deps/scp.Tpo" ".deps/scp.Plo"; else rm -f ".deps/scp.Tpo";
exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../src
-I/usr/local/include -I/usr/local/ssl/include -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -MT scp.lo -MD -MP -MF .deps/scp.Tpo -c scp.c -o scp.o
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../src -I/usr/local/include -I/usr/local/ssl/include
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -MT session.lo -MD -MP -MF
".deps/session.Tpo" -c -o session.lo session.c; \
then mv -f ".deps/session.Tpo" ".deps/session.Plo"; else rm -f
".deps/session.Tpo"; exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../src
-I/usr/local/include -I/usr/local/ssl/include -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -MT session.lo -MD -MP -MF .deps/session.Tpo -c
session.c -o session.o
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../src -I/usr/local/include -I/usr/local/ssl/include
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -MT sftp.lo -MD -MP -MF
".deps/sftp.Tpo" -c -o sftp.lo sftp.c; \
then mv -f ".deps/sftp.Tpo" ".deps/sftp.Plo"; else rm -f
".deps/sftp.Tpo"; exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../src
-I/usr/local/include -I/usr/local/ssl/include -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -MT sftp.lo -MD -MP -MF .deps/sftp.Tpo -c sftp.c -o
sftp.o
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../src -I/usr/local/include -I/usr/local/ssl/include
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -MT userauth.lo -MD -MP -MF
".deps/userauth.Tpo" -c -o userauth.lo userauth.c; \
then mv -f ".deps/userauth.Tpo" ".deps/userauth.Plo"; else rm -f
".deps/userauth.Tpo"; exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../src
-I/usr/local/include -I/usr/local/ssl/include -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -MT userauth.lo -MD -MP -MF .deps/userauth.Tpo -c
userauth.c -o userauth.o
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../src -I/usr/local/include -I/usr/local/ssl/include
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -MT transport.lo -MD -MP -MF
".deps/transport.Tpo" -c -o transport.lo transport.c; \
then mv -f ".deps/transport.Tpo" ".deps/transport.Plo"; else rm -f
".deps/transport.Tpo"; exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../src
-I/usr/local/include -I/usr/local/ssl/include -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -MT transport.lo -MD -MP -MF .deps/transport.Tpo -c
transport.c -o transport.o
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../src -I/usr/local/include -I/usr/local/ssl/include
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -MT version.lo -MD -MP -MF
".deps/version.Tpo" -c -o version.lo version.c; \
then mv -f ".deps/version.Tpo" ".deps/version.Plo"; else rm -f
".deps/version.Tpo"; exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../src
-I/usr/local/include -I/usr/local/ssl/include -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -MT version.lo -MD -MP -MF .deps/version.Tpo -c
version.c -o version.o
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../src -I/usr/local/include -I/usr/local/ssl/include
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -MT knownhost.lo -MD -MP -MF
".deps/knownhost.Tpo" -c -o knownhost.lo knownhost.c; \
then mv -f ".deps/knownhost.Tpo" ".deps/knownhost.Plo"; else rm -f
".deps/knownhost.Tpo"; exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../src
-I/usr/local/include -I/usr/local/ssl/include -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -MT knownhost.lo -MD -MP -MF .deps/knownhost.Tpo -c
knownhost.c -o knownhost.o
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../src -I/usr/local/include -I/usr/local/ssl/include
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -MT agent.lo -MD -MP -MF
".deps/agent.Tpo" -c -o agent.lo agent.c; \
then mv -f ".deps/agent.Tpo" ".deps/agent.Plo"; else rm -f
".deps/agent.Tpo"; exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../src
-I/usr/local/include -I/usr/local/ssl/include -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -MT agent.lo -MD -MP -MF .deps/agent.Tpo -c agent.c -o
agent.o
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../src -I/usr/local/include -I/usr/local/ssl/include
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -MT openssl.lo -MD -MP -MF
".deps/openssl.Tpo" -c -o openssl.lo openssl.c; \
then mv -f ".deps/openssl.Tpo" ".deps/openssl.Plo"; else rm -f
".deps/openssl.Tpo"; exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../src
-I/usr/local/include -I/usr/local/ssl/include -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -MT openssl.lo -MD -MP -MF .deps/openssl.Tpo -c
openssl.c -o openssl.o
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../src -I/usr/local/include -I/usr/local/ssl/include
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -MT libgcrypt.lo -MD -MP -MF
".deps/libgcrypt.Tpo" -c -o libgcrypt.lo libgcrypt.c; \
then mv -f ".deps/libgcrypt.Tpo" ".deps/libgcrypt.Plo"; else rm -f
".deps/libgcrypt.Tpo"; exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../src
-I/usr/local/include -I/usr/local/ssl/include -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -MT libgcrypt.lo -MD -MP -MF .deps/libgcrypt.Tpo -c
libgcrypt.c -o libgcrypt.o
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../src -I/usr/local/include -I/usr/local/ssl/include
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -MT pem.lo -MD -MP -MF ".deps/pem.Tpo"
-c -o pem.lo pem.c; \
then mv -f ".deps/pem.Tpo" ".deps/pem.Plo"; else rm -f ".deps/pem.Tpo";
exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../src
-I/usr/local/include -I/usr/local/ssl/include -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -MT pem.lo -MD -MP -MF .deps/pem.Tpo -c pem.c -o pem.o
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../src -I/usr/local/include -I/usr/local/ssl/include
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -MT keepalive.lo -MD -MP -MF
".deps/keepalive.Tpo" -c -o keepalive.lo keepalive.c; \
then mv -f ".deps/keepalive.Tpo" ".deps/keepalive.Plo"; else rm -f
".deps/keepalive.Tpo"; exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../src
-I/usr/local/include -I/usr/local/ssl/include -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -MT keepalive.lo -MD -MP -MF .deps/keepalive.Tpo -c
keepalive.c -o keepalive.o
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../src -I/usr/local/include -I/usr/local/ssl/include
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -MT global.lo -MD -MP -MF
".deps/global.Tpo" -c -o global.lo global.c; \
then mv -f ".deps/global.Tpo" ".deps/global.Plo"; else rm -f
".deps/global.Tpo"; exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../src
-I/usr/local/include -I/usr/local/ssl/include -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -MT global.lo -MD -MP -MF .deps/global.Tpo -c global.c
-o global.o
/bin/sh ../libtool --tag=CC --mode=link gcc -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -L/usr/local/lib -L/usr/local/ssl/lib -o libssh2.la
-rpath /usr/local/lib -version-info 1:1:0 -no-undefined -export-symbols-regex
'^libssh2_.*' -L/usr/local/ssl/lib -lssl -L/usr/local/ssl/lib -lcrypto
-L/usr/local/lib -lz channel.lo comp.lo crypt.lo hostkey.lo kex.lo mac.lo
misc.lo packet.lo publickey.lo scp.lo session.lo sftp.lo userauth.lo
transport.lo version.lo knownhost.lo agent.lo openssl.lo libgcrypt.lo pem.lo
keepalive.lo global.lo -lws2_32
libtool: link: ar cru .libs/libssh2.a channel.o comp.o crypt.o hostkey.o kex.o
mac.o misc.o packet.o publickey.o scp.o session.o sftp.o userauth.o transport.o
version.o knownhost.o agent.o openssl.o libgcrypt.o pem.o keepalive.o global.o
libtool: link: ranlib .libs/libssh2.a
libtool: link: ( cd ".libs" && rm -f "libssh2.la" && cp -p "../libssh2.la"
"libssh2.la" )
make[2]: Leaving directory `/c/work/libssh2-1.2.7/src'
make[1]: Leaving directory `/c/work/libssh2-1.2.7/src'
Making all in example
make[1]: Entering directory `/c/work/libssh2-1.2.7/example'
make all-am
make[2]: Entering directory `/c/work/libssh2-1.2.7/example'
if gcc -DHAVE_CONFIG_H -I../include -I../example -I/usr/local/include
-I/usr/local/ssl/include -DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -MT
direct_tcpip.o -MD -MP -MF ".deps/direct_tcpip.Tpo" -c -o direct_tcpip.o
direct_tcpip.c; \
then mv -f ".deps/direct_tcpip.Tpo" ".deps/direct_tcpip.Po"; else rm -f
".deps/direct_tcpip.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -DLIBSSH2_WIN32
-DWINSOCK_VERSION=0x0200 -L/usr/local/lib -L/usr/local/ssl/lib -o
direct_tcpip.exe direct_tcpip.o ../src/libssh2.la -lws2_32
libtool: link: gcc -DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -o direct_tcpip.exe
direct_tcpip.o -L/usr/local/lib -L/usr/local/ssl/lib ../src/.libs/libssh2.a
-lssl -lcrypto -lz -lws2_32
direct_tcpip.o:direct_tcpip.c:(.text+0xf4): undefined reference to
`_imp__libssh2_init'
direct_tcpip.o:direct_tcpip.c:(.text+0x20b): undefined reference to
`_imp__libssh2_session_init_ex'
direct_tcpip.o:direct_tcpip.c:(.text+0x25a): undefined reference to
`_imp__libssh2_session_startup'
direct_tcpip.o:direct_tcpip.c:(.text+0x2a1): undefined reference to
`_imp__libssh2_hostkey_hash'
direct_tcpip.o:direct_tcpip.c:(.text+0x347): undefined reference to
`_imp__libssh2_userauth_list'
direct_tcpip.o:direct_tcpip.c:(.text+0x44d): undefined reference to
`_imp__libssh2_userauth_password_ex'
direct_tcpip.o:direct_tcpip.c:(.text+0x4d2): undefined reference to
`_imp__libssh2_userauth_publickey_fromfile_ex'
direct_tcpip.o:direct_tcpip.c:(.text+0x6ff): undefined reference to
`_imp__libssh2_channel_direct_tcpip_ex'
direct_tcpip.o:direct_tcpip.c:(.text+0x74a): undefined reference to
`_imp__libssh2_session_set_blocking'
direct_tcpip.o:direct_tcpip.c:(.text+0x8d0): undefined reference to
`_imp__libssh2_channel_write_ex'
direct_tcpip.o:direct_tcpip.c:(.text+0x93b): undefined reference to
`_imp__libssh2_channel_read_ex'
direct_tcpip.o:direct_tcpip.c:(.text+0x9e0): undefined reference to
`_imp__libssh2_channel_eof'
direct_tcpip.o:direct_tcpip.c:(.text+0xa37): undefined reference to
`_imp__libssh2_channel_free'
direct_tcpip.o:direct_tcpip.c:(.text+0xa5c): undefined reference to
`_imp__libssh2_session_disconnect_ex'
direct_tcpip.o:direct_tcpip.c:(.text+0xa69): undefined reference to
`_imp__libssh2_session_free'
direct_tcpip.o:direct_tcpip.c:(.text+0xa7e): undefined reference to
`_imp__libssh2_exit'
collect2: ld returned 1 exit status
make[2]: *** [direct_tcpip.exe] Error 1
make[2]: Leaving directory `/c/work/libssh2-1.2.7/example'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/c/work/libssh2-1.2.7/example'
make: *** [all-recursive] Error 1
I thought this may be a result of openssl was compiled static so I tried to
compile openssl with "./config --shared && make" and while it starts off well,
it eventually fails with a very long list of undefined references (only a few
shown here):
<snip>
Creating library file: libssl.dll.alibssl.a(s2_srvr.o):s2_srvr.c:(.text+0x5e):
undefined reference to `RAND_add'
libssl.a(s2_srvr.o):s2_srvr.c:(.text+0x63): undefined reference to
`ERR_clear_error'
libssl.a(s2_srvr.o):s2_srvr.c:(.text+0x3d1): undefined reference to
`ERR_put_error'
libssl.a(s2_srvr.o):s2_srvr.c:(.text+0x3e6): undefined reference to `sk_free'
libssl.a(s2_srvr.o):s2_srvr.c:(.text+0x3ee): undefined reference to `X509_free'
libssl.a(s2_srvr.o):s2_srvr.c:(.text+0x448): undefined reference to
`ERR_put_error'
libssl.a(s2_srvr.o):s2_srvr.c:(.text+0x5f3): undefined reference to
`ERR_put_error'
libssl.a(s2_srvr.o):s2_srvr.c:(.text+0x66e): undefined reference to
`ERR_clear_error'
libssl.a(s2_srvr.o):s2_srvr.c:(.text+0x686): undefined reference to
`RAND_pseudo_bytes'
libssl.a(s2_srvr.o):s2_srvr.c:(.text+0x75e): undefined reference to
`BUF_MEM_grow'
libssl.a(s2_srvr.o):s2_srvr.c:(.text+0x7c8): undefined reference to
`BUF_MEM_free'
libssl.a(s2_srvr.o):s2_srvr.c:(.text+0x92f): undefined reference to `BIO_ctrl'
libssl.a(s2_srvr.o):s2_srvr.c:(.text+0x95d): undefined reference to `BIO_ctrl'
libssl.a(s2_srvr.o):s2_srvr.c:(.text+0x977): undefined reference to `BIO_pop'
libssl.a(s2_srvr.o):s2_srvr.c:(.text+0xa2a): undefined reference to `sk_free'
libssl.a(s2_srvr.o):s2_srvr.c:(.text+0xa36): undefined reference to `X509_free'
<snip>
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs