The attached configure + make log tells the whole story (I hope).

The environmental details that might not be surfacing there are:
Win7 64 with 32-bit Cygwin

My observation is that the link error is for WsaGetLastError from
misc.o, and I don't really see any '-lwsock32' or similar strings in
the link command.

I have built my project on Linux but I wanted to see if it would work on Cygwin.

For my own reasons I have trepidations about updating Cygwin in any
way so I thought building from source would do the trick.

Other than this the development process has gone smoothly and I'm
grateful to be able to use this library. I especially appreciate the
way it seems to be very flexible about its crypto dependencies.

- mte
 ./configure
checking whether to enable maintainer-specific portions of Makefiles... no
checking for sed... /usr/bin/sed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/menright/interp/ssh/libssh2-1.6.0/missing: Unknown `--is-lightweight' option
Try `/home/menright/interp/ssh/libssh2-1.6.0/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking libssh2 version... 1.6.0
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
configure: autobuild project... libssh2
configure: autobuild revision... 1.6.0
configure: autobuild hostname... F5Tiger
configure: autobuild timestamp... 20150629-170913
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 whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -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 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 whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for sshd... /usr/sbin/sshd
checking for as... as
checking for dlltool... dlltool
checking for objdump... objdump
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/i686-pc-cygwin/bin/ld.exe
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes
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... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-cygwin file names to i686-pc-cygwin format... func_convert_file_noop
checking how to convert i686-pc-cygwin file names to toolchain format... func_convert_file_noop
checking for /usr/i686-pc-cygwin/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 dlltool... (cached) dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_implib
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
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 (/usr/i686-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking whether -lc should be explicitly linked in... 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... yes
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... no
checking for ld used by GCC... /usr/i686-pc-cygwin/bin/ld.exe
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking for shared library run path origin... done
checking for libssl... no
checking for libgcrypt... no
checking for libbcrypt... yes
checking how to link with libbcrypt... -lbcrypt
checking for libcrypt32... yes
checking how to link with libcrypt32... -lcrypt32
checking for ntdef.h... yes
checking for ntstatus.h... yes
checking whether SecureZeroMemory is declared... yes
checking for libz... yes
checking how to link with libz... -lz
checking whether to enable pedantic and debug compiler options... no
checking whether to enable hidden symbols in the library... no
checking whether to build example applications... yes
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... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking for poll... yes
checking for gettimeofday... yes
checking for select... yes
checking for strtoll... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking non-blocking sockets style... O_NONBLOCK
checking that generated files are newer than configure... done
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.6.0
  Host type:        i686-pc-cygwin
  Install prefix:   /usr/local
  Compiler:         gcc
  Compiler flags:    -DLIBSSH2_WIN32
  Library types:    Shared=yes, Static=yes
  Crypto library:   Windows Cryptography API: Next Generation
  Clear memory:     yes
  Debug build:      no
  Build examples:   yes
  Path to sshd:     /usr/sbin/sshd (only for self-tests)
  zlib compression: yes


menright@F5Tiger ~/interp/ssh/libssh2-1.6.0
$ make
Making all in src
make[1]: Entering directory '/home/menright/interp/ssh/libssh2-1.6.0/src'
make  all-am
make[2]: Entering directory '/home/menright/interp/ssh/libssh2-1.6.0/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -DLIBSSH2_WIN32 -MT channel.lo -MD -MP -MF .deps/channel.Tpo -c -o channel.lo channel.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT channel.lo -MD -MP -MF .deps/channel.Tpo -c channel.c  -DDLL_EXPORT -DPIC -o .libs/channel.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT channel.lo -MD -MP -MF .deps/channel.Tpo -c channel.c -o channel.o >/dev/null 2>&1
mv -f .deps/channel.Tpo .deps/channel.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -DLIBSSH2_WIN32 -MT comp.lo -MD -MP -MF .deps/comp.Tpo -c -o comp.lo comp.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT comp.lo -MD -MP -MF .deps/comp.Tpo -c comp.c  -DDLL_EXPORT -DPIC -o .libs/comp.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT comp.lo -MD -MP -MF .deps/comp.Tpo -c comp.c -o comp.o >/dev/null 2>&1
mv -f .deps/comp.Tpo .deps/comp.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -DLIBSSH2_WIN32 -MT crypt.lo -MD -MP -MF .deps/crypt.Tpo -c -o crypt.lo crypt.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT crypt.lo -MD -MP -MF .deps/crypt.Tpo -c crypt.c  -DDLL_EXPORT -DPIC -o .libs/crypt.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT crypt.lo -MD -MP -MF .deps/crypt.Tpo -c crypt.c -o crypt.o >/dev/null 2>&1
mv -f .deps/crypt.Tpo .deps/crypt.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -DLIBSSH2_WIN32 -MT hostkey.lo -MD -MP -MF .deps/hostkey.Tpo -c -o hostkey.lo hostkey.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT hostkey.lo -MD -MP -MF .deps/hostkey.Tpo -c hostkey.c  -DDLL_EXPORT -DPIC -o .libs/hostkey.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT hostkey.lo -MD -MP -MF .deps/hostkey.Tpo -c hostkey.c -o hostkey.o >/dev/null 2>&1
mv -f .deps/hostkey.Tpo .deps/hostkey.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -DLIBSSH2_WIN32 -MT kex.lo -MD -MP -MF .deps/kex.Tpo -c -o kex.lo kex.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT kex.lo -MD -MP -MF .deps/kex.Tpo -c kex.c  -DDLL_EXPORT -DPIC -o .libs/kex.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT kex.lo -MD -MP -MF .deps/kex.Tpo -c kex.c -o kex.o >/dev/null 2>&1
mv -f .deps/kex.Tpo .deps/kex.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -DLIBSSH2_WIN32 -MT mac.lo -MD -MP -MF .deps/mac.Tpo -c -o mac.lo mac.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT mac.lo -MD -MP -MF .deps/mac.Tpo -c mac.c  -DDLL_EXPORT -DPIC -o .libs/mac.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT mac.lo -MD -MP -MF .deps/mac.Tpo -c mac.c -o mac.o >/dev/null 2>&1
mv -f .deps/mac.Tpo .deps/mac.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -DLIBSSH2_WIN32 -MT misc.lo -MD -MP -MF .deps/misc.Tpo -c -o misc.lo misc.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT misc.lo -MD -MP -MF .deps/misc.Tpo -c misc.c  -DDLL_EXPORT -DPIC -o .libs/misc.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT misc.lo -MD -MP -MF .deps/misc.Tpo -c misc.c -o misc.o >/dev/null 2>&1
mv -f .deps/misc.Tpo .deps/misc.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -DLIBSSH2_WIN32 -MT packet.lo -MD -MP -MF .deps/packet.Tpo -c -o packet.lo packet.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT packet.lo -MD -MP -MF .deps/packet.Tpo -c packet.c  -DDLL_EXPORT -DPIC -o .libs/packet.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT packet.lo -MD -MP -MF .deps/packet.Tpo -c packet.c -o packet.o >/dev/null 2>&1
mv -f .deps/packet.Tpo .deps/packet.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -DLIBSSH2_WIN32 -MT publickey.lo -MD -MP -MF .deps/publickey.Tpo -c -o publickey.lo publickey.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT publickey.lo -MD -MP -MF .deps/publickey.Tpo -c publickey.c  -DDLL_EXPORT -DPIC -o .libs/publickey.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT publickey.lo -MD -MP -MF .deps/publickey.Tpo -c publickey.c -o publickey.o >/dev/null 2>&1
mv -f .deps/publickey.Tpo .deps/publickey.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -DLIBSSH2_WIN32 -MT scp.lo -MD -MP -MF .deps/scp.Tpo -c -o scp.lo scp.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT scp.lo -MD -MP -MF .deps/scp.Tpo -c scp.c  -DDLL_EXPORT -DPIC -o .libs/scp.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT scp.lo -MD -MP -MF .deps/scp.Tpo -c scp.c -o scp.o >/dev/null 2>&1
mv -f .deps/scp.Tpo .deps/scp.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -DLIBSSH2_WIN32 -MT session.lo -MD -MP -MF .deps/session.Tpo -c -o session.lo session.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT session.lo -MD -MP -MF .deps/session.Tpo -c session.c  -DDLL_EXPORT -DPIC -o .libs/session.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT session.lo -MD -MP -MF .deps/session.Tpo -c session.c -o session.o >/dev/null 2>&1
mv -f .deps/session.Tpo .deps/session.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -DLIBSSH2_WIN32 -MT sftp.lo -MD -MP -MF .deps/sftp.Tpo -c -o sftp.lo sftp.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT sftp.lo -MD -MP -MF .deps/sftp.Tpo -c sftp.c  -DDLL_EXPORT -DPIC -o .libs/sftp.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT sftp.lo -MD -MP -MF .deps/sftp.Tpo -c sftp.c -o sftp.o >/dev/null 2>&1
mv -f .deps/sftp.Tpo .deps/sftp.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -DLIBSSH2_WIN32 -MT userauth.lo -MD -MP -MF .deps/userauth.Tpo -c -o userauth.lo userauth.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT userauth.lo -MD -MP -MF .deps/userauth.Tpo -c userauth.c  -DDLL_EXPORT -DPIC -o .libs/userauth.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT userauth.lo -MD -MP -MF .deps/userauth.Tpo -c userauth.c -o userauth.o >/dev/null 2>&1
mv -f .deps/userauth.Tpo .deps/userauth.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -DLIBSSH2_WIN32 -MT transport.lo -MD -MP -MF .deps/transport.Tpo -c -o transport.lo transport.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT transport.lo -MD -MP -MF .deps/transport.Tpo -c transport.c  -DDLL_EXPORT -DPIC -o .libs/transport.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT transport.lo -MD -MP -MF .deps/transport.Tpo -c transport.c -o transport.o >/dev/null 2>&1
mv -f .deps/transport.Tpo .deps/transport.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -DLIBSSH2_WIN32 -MT version.lo -MD -MP -MF .deps/version.Tpo -c -o version.lo version.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT version.lo -MD -MP -MF .deps/version.Tpo -c version.c  -DDLL_EXPORT -DPIC -o .libs/version.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT version.lo -MD -MP -MF .deps/version.Tpo -c version.c -o version.o >/dev/null 2>&1
mv -f .deps/version.Tpo .deps/version.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -DLIBSSH2_WIN32 -MT knownhost.lo -MD -MP -MF .deps/knownhost.Tpo -c -o knownhost.lo knownhost.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT knownhost.lo -MD -MP -MF .deps/knownhost.Tpo -c knownhost.c  -DDLL_EXPORT -DPIC -o .libs/knownhost.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT knownhost.lo -MD -MP -MF .deps/knownhost.Tpo -c knownhost.c -o knownhost.o >/dev/null 2>&1
mv -f .deps/knownhost.Tpo .deps/knownhost.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -DLIBSSH2_WIN32 -MT agent.lo -MD -MP -MF .deps/agent.Tpo -c -o agent.lo agent.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT agent.lo -MD -MP -MF .deps/agent.Tpo -c agent.c  -DDLL_EXPORT -DPIC -o .libs/agent.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT agent.lo -MD -MP -MF .deps/agent.Tpo -c agent.c -o agent.o >/dev/null 2>&1
mv -f .deps/agent.Tpo .deps/agent.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -DLIBSSH2_WIN32 -MT wincng.lo -MD -MP -MF .deps/wincng.Tpo -c -o wincng.lo wincng.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT wincng.lo -MD -MP -MF .deps/wincng.Tpo -c wincng.c  -DDLL_EXPORT -DPIC -o .libs/wincng.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT wincng.lo -MD -MP -MF .deps/wincng.Tpo -c wincng.c -o wincng.o >/dev/null 2>&1
mv -f .deps/wincng.Tpo .deps/wincng.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -DLIBSSH2_WIN32 -MT pem.lo -MD -MP -MF .deps/pem.Tpo -c -o pem.lo pem.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT pem.lo -MD -MP -MF .deps/pem.Tpo -c pem.c  -DDLL_EXPORT -DPIC -o .libs/pem.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT pem.lo -MD -MP -MF .deps/pem.Tpo -c pem.c -o pem.o >/dev/null 2>&1
mv -f .deps/pem.Tpo .deps/pem.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -DLIBSSH2_WIN32 -MT keepalive.lo -MD -MP -MF .deps/keepalive.Tpo -c -o keepalive.lo keepalive.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT keepalive.lo -MD -MP -MF .deps/keepalive.Tpo -c keepalive.c  -DDLL_EXPORT -DPIC -o .libs/keepalive.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT keepalive.lo -MD -MP -MF .deps/keepalive.Tpo -c keepalive.c -o keepalive.o >/dev/null 2>&1
mv -f .deps/keepalive.Tpo .deps/keepalive.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -DLIBSSH2_WIN32 -MT global.lo -MD -MP -MF .deps/global.Tpo -c -o global.lo global.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT global.lo -MD -MP -MF .deps/global.Tpo -c global.c  -DDLL_EXPORT -DPIC -o .libs/global.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -DLIBSSH2_WIN32 -MT global.lo -MD -MP -MF .deps/global.Tpo -c global.c -o global.o >/dev/null 2>&1
mv -f .deps/global.Tpo .deps/global.Plo
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -DLIBSSH2_WIN32 -version-info 1:1:0 -no-undefined -export-symbols-regex '^libssh2_.*'   -lz  -o libssh2.la -rpath /usr/local/lib 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 wincng.lo pem.lo keepalive.lo global.lo   -lbcrypt -lcrypt32
libtool: link: /usr/bin/nm -B  .libs/channel.o .libs/comp.o .libs/crypt.o .libs/hostkey.o .libs/kex.o .libs/mac.o .libs/misc.o .libs/packet.o .libs/publickey.o .libs/scp.o .libs/session.o .libs/sftp.o .libs/userauth.o .libs/transport.o .libs/version.o .libs/knownhost.o .libs/agent.o .libs/wincng.o .libs/pem.o .libs/keepalive.o .libs/global.o   | sed -n -e 's/^.*[         ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[     ][       ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | sed '/ __gnu_lto/d' | /usr/bin/sed -e '/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //' | sort | uniq > .libs/libssh2.exp
libtool: link: /usr/bin/grep -E -e "^libssh2_.*" ".libs/libssh2.exp" > ".libs/libssh2.expT"
libtool: link: mv -f ".libs/libssh2.expT" ".libs/libssh2.exp"
libtool: link: if test "x`/usr/bin/sed 1q .libs/libssh2.exp`" = xEXPORTS; then cp .libs/libssh2.exp .libs/cygssh2-1.dll.def; else echo EXPORTS > .libs/cygssh2-1.dll.def; cat .libs/libssh2.exp >> .libs/cygssh2-1.dll.def; fi
libtool: link:  gcc -shared .libs/cygssh2-1.dll.def  .libs/channel.o .libs/comp.o .libs/crypt.o .libs/hostkey.o .libs/kex.o .libs/mac.o .libs/misc.o .libs/packet.o .libs/publickey.o .libs/scp.o .libs/session.o .libs/sftp.o .libs/userauth.o .libs/transport.o .libs/version.o .libs/knownhost.o .libs/agent.o .libs/wincng.o .libs/pem.o .libs/keepalive.o .libs/global.o   -lz -lbcrypt -lcrypt32    -o .libs/cygssh2-1.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libssh2.dll.a
.libs/misc.o:misc.c:(.text+0x27): undefined reference to `WSAGetLastError'
collect2: error: ld returned 1 exit status
Makefile:507: recipe for target 'libssh2.la' failed
make[2]: *** [libssh2.la] Error 1
make[2]: Leaving directory '/home/menright/interp/ssh/libssh2-1.6.0/src'
Makefile:420: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/menright/interp/ssh/libssh2-1.6.0/src'
Makefile:519: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

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

Reply via email to