[Help-gnutls] gnutls 2.3.4 doesn't copile using MinGW

Massimo Gaspari massimo.gaspari at alice.it
Fri Apr 11 20:24:03 CEST 2008


Hi all,

I am trying to get gntls compiled on a Windows XP SP2 with mingw (Gcc 
4.2.1 , + Msys 1.0).

I compiled without issues zlib 1.2.3 , libgpg-error 1.6 and libgcrypt 
1.4.0. The latest one using

./configure --disable-shared --disable-asm --disable-dev-random


Now gnutls. I used

./configure --disable-shared --disable-rpath --disable-cxx --disable-guile

and then make. But the compilation stopped with


libtool: link: ( cd ".libs" && rm -f "libgnutls.la" && cp -p 
"../libgnutls.la" "libgnutls.la" )
make[3]: *** No rule to make target `libgnutls-26.def', needed by 
`all-am'.  Stop.
make[3]: Leaving directory `/home/emasgas/gnutls-2.3.4/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/emasgas/gnutls-2.3.4/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/emasgas/gnutls-2.3.4'
make: *** [all] Error

Any suggestion? Does gnutls compile on MinGW? Any help will be appreciated.

Thanks

Massimo


Hereafter the output from the .configure command.

checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: autobuild project... GnuTLS
configure: autobuild revision... 2.3.4
./configure: hostname: command not found
configure: autobuild timestamp... 20080411-152025
checking whether in dmalloc mode... no
checking whether in electric fence mode... no
checking whether in developer mode... no
checking whether in profile mode... no
***
*** Checking for compilation programs...

checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
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 style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether ln -s works... no, using cp -p
checking for pkg-config... no
checking whether to build gtk-doc documentation... no
checking for gtkdoc-check... no
checking for gaa... no
configure: WARNING: ***
*** GAA was not found.  It is only needed if you wish to modify
*** the source code or command-line description files.  In this case,
*** you may want to get it from http://gaa.sourceforge.net/
***
***
*** Detecting compiler options...

checking for ranlib... ranlib
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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for _LARGEFILE_SOURCE value needed for large files... unknown
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) 
-std=gnu99
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether NLS is requested... yes
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking for ld used by GCC... c:/mingw/mingw32/bin/ld.exe
checking if the linker (c:/mingw/mingw32/bin/ld.exe) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... no
checking for iconv... no, consider installing GNU libiconv
checking for GNU gettext in libintl... no
checking whether to use NLS... no
checking whether to build C++ library... no
checking whether C99 macros are supported... yes
checking if gcc supports -Wno-pointer-sign... yes
checking if gcc/ld supports -Wl,--output-def... yes
checking whether we have GNU assembler... yes
***
*** Detecting C library capabilities...

checking for ANSI C header files... (cached) yes
checking for strings.h... (cached) yes
checking alloca.h usability... no
checking alloca.h presence... no
checking for alloca.h... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking netdb.h usability... no
checking netdb.h presence... no
checking for netdb.h... no
checking for umask... yes
checking for vasprintf... no
checking for isascii... yes
checking for fork... no
checking for working alloca.h... no
checking for alloca... yes
***
*** Detecting system's parameters...

checking for valgrind... no
checking whether self tests are run under valgrind... no
checking for unsigned long int... yes
checking size of unsigned long int... 4
checking for unsigned int... yes
checking size of unsigned int... 4
checking for void *... yes
checking size of void *... 4
checking for long... yes
checking size of long... 4
checking for int... yes
checking size of int... 4
checking for uint... no
checking for ssize_t... yes
checking whether byte ordering is bigendian... no
***
*** Checking for external libraries...

checking whether building Guile bindings... no
checking for libgcrypt-config... /usr/local/bin/libgcrypt-config
checking for LIBGCRYPT - version >= 1.2.4... yes
checking LIBGCRYPT API version... okay
checking whether to enable Opaque PRF input support... no
checking whether to disable SRP authentication support... no
checking whether to disable PSK authentication support... no
checking whether to disable anonymous authentication support... no
checking for Camellia support in libgcrypt... yes
checking whether to disable Camellia cipher... no
checking whether to disable extra PKI stuff... no
checking whether to disable OpenPGP Certificate authentication support... no
checking whether to disable OpenSSL compatibility layer... no
checking for libtasn1-config... no
checking for libtasn1 - version >= 0.3.4... no
*** The libtasn1-config script installed by LIBTASN1 could not be found
*** If LIBTASN1 was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the LIBTASN1_CONFIG environment variable to the
*** full path to libtasn1-config.
configure: WARNING:
***
*** LibtASN1 0.3.4 was not found. Will use the included one.

checking whether to use the included minitasn1... yes
checking for cfg_get_context in -lcfg+... no
configure: WARNING:
***
*** Libcfg+ was not found. Will use the included one.
checking whether to use the included libcfg... yes
checking whether to include zlib compression support... yes
checking for libz... yes
checking how to link with libz... -lz
checking whether to include LZO compression support... no
***
*** Setting up gnulib compatibility files...

checking arpa/inet.h usability... no
checking arpa/inet.h presence... no
checking for arpa/inet.h... no
checking sys/socket.h usability... no
checking sys/socket.h presence... no
checking for sys/socket.h... no
checking for netdb.h... (cached) no
checking netinet/in.h usability... no
checking netinet/in.h presence... no
checking for netinet/in.h... no
checking stdio_ext.h usability... no
checking stdio_ext.h presence... no
checking for stdio_ext.h... no
checking termios.h usability... no
checking termios.h presence... no
checking for termios.h... no
checking for stdarg.h... (cached) yes
checking for float.h... (cached) yes
checking for stdint.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.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 string.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking whether strerror_r is declared... no
checking for strerror_r... no
checking whether strerror_r returns char *... no
checking whether stdin defaults to large file offsets... yes
checking whether the preprocessor supports include_next... yes
checking whether <sys/socket.h> is self-contained... no
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 C/C++ restrict keyword... __restrict
checking for IPv4 sockets... yes
checking for IPv6 sockets... no
checking whether getdelim is declared... no
checking whether getline is declared... no
checking whether getpass is declared... no
checking for __fsetlocking... no
checking for tcgetattr... no
checking for tcsetattr... no
checking for lstat... no
checking for vasnprintf... no
checking whether fflush_unlocked is declared... no
checking whether flockfile is declared... no
checking whether fputs_unlocked is declared... no
checking whether funlockfile is declared... no
checking whether putc_unlocked is declared... no
checking whether strdup is declared... yes
checking for working strerror function... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for error_at_line... no
checking for fseeko... no
configure: checking how to do getaddrinfo, freeaddrinfo and getnameinfo
checking for library containing getaddrinfo... no
checking for getaddrinfo... no
checking for getaddrinfo in ws2tcpip.h and -lws2_32... no
checking for gai_strerror (possibly via ws2tcpip.h)... yes
checking for library containing gethostbyname... no
checking for library containing getservbyname... no
checking for gethostbyname... no
checking for gethostbyname in winsock2.h and -lws2_32... yes
checking whether getaddrinfo is declared... no
checking whether freeaddrinfo is declared... no
checking whether gai_strerror is declared... yes
checking whether getnameinfo is declared... no
checking for struct addrinfo... yes
checking for getdelim... no
checking for flockfile... no
checking for funlockfile... no
checking for getline... no
checking for getdelim... (cached) no
checking for flockfile... (cached) no
checking for funlockfile... (cached) no
checking for getpass... no
checking whether __fsetlocking is declared... no
checking for inet_ntop... no
checking whether inet_ntop is declared... no
checking for inet_pton... no
checking whether inet_pton is declared... no
checking whether lseek detects pipes... no
checking whether <netinet/in.h> is self-contained... no
checking for netinet/in.h... (cached) no
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for readline... no
checking readline/readline.h usability... no
checking readline/readline.h presence... no
checking for readline/readline.h... no
checking for socklen_t... yes
checking for va_copy... yes
checking for strdup... yes
checking whether memmem is declared... no
checking whether <limits.h> defines MIN and MAX... no
checking whether <sys/param.h> defines MIN and MAX... no
checking whether malloc, realloc, calloc are POSIX compliant... no
checking whether snprintf is declared... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for long long int... yes
checking for unsigned long long int... yes
checking whether stat file-mode macros are broken... no
checking for struct timespec in <time.h>... no
checking for struct timespec in <sys/time.h>... no
checking for EOVERFLOW... E2BIG
checking for wchar_t... yes
checking for wint_t... yes
checking for size_t... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for intmax_t... yes
checking for camellia in libgcrypt... no
checking device with (strong) random data...... /dev/random
checking device with pseudo random data...... /dev/urandom
checking device with unpredictable data for nonces...... /dev/urandom
checking for /dev/random... yes
checking for /dev/urandom... yes
checking for /dev/urandom... (cached) yes
checking whether __func__ is available... yes
checking for memchr... yes
checking for working memcmp... yes
checking for memmem... no
checking for memmove... yes
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for snprintf... yes
checking for socklen_t... (cached) yes
checking whether stdint.h conforms to C99... yes
checking for strverscmp... no
checking whether <sys/socket.h> is self-contained... (cached) no
checking for winsock2.h... (cached) yes
checking for ws2tcpip.h... (cached) yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking whether mkdir is declared... no
checking io.h usability... yes
checking io.h presence... yes
checking for io.h... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking whether localtime_r is compatible with its POSIX signature... no
checking for ptrdiff_t... yes
checking for snprintf... (cached) yes
checking for wcslen... yes
checking whether _snprintf is declared... yes
checking for vasprintf... (cached) no
checking whether <wchar.h> is standalone... yes
checking for stdint.h... (cached) yes
checking if we have Windows sockets and WSAStartup/WSACleanup... yes
***
*** Detecting options for shared libraries...

checking for as... as
checking for dlltool... dlltool
checking for objdump... objdump
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc -std=gnu99... c:/mingw/mingw32/bin/ld.exe
checking if the linker (c:/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 "+="... no
checking for c:/mingw/mingw32/bin/ld.exe option to reload object files... -r
checking how to recognize dependent libraries... file_magic file format 
pei*-i386(.*architecture: i386)?
checking for ar... ar
checking for strip... strip
checking for ranlib... (cached) ranlib
checking command to parse /mingw/bin/nm output from gcc -std=gnu99 
object... ok
checking for dlfcn.h... no
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for objdir... .libs
checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu99 option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc -std=gnu99 PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc -std=gnu99 static flag -static works... yes
checking if gcc -std=gnu99 supports -c -o file.o... yes
checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu99 linker (c:/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 for ld used by g++... c:/mingw/mingw32/bin/ld.exe
checking if the linker (c:/mingw/mingw32/bin/ld.exe) is GNU ld... yes
checking whether the g++ linker (c:/mingw/mingw32/bin/ld.exe) supports 
shared libraries... yes
checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC
checking if g++ PIC flag -DDLL_EXPORT -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (c:/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
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating doc/Makefile
config.status: creating doc/examples/Makefile
config.status: creating doc/scripts/Makefile
config.status: creating doc/manpages/Makefile
config.status: creating doc/reference/Makefile
config.status: creating doc/credentials/Makefile
config.status: creating doc/credentials/x509/Makefile
config.status: creating doc/credentials/srp/Makefile
config.status: creating doc/credentials/openpgp/Makefile
config.status: creating gl/Makefile
config.status: creating lgl/Makefile
config.status: creating tests/Makefile
config.status: creating tests/rsa-md5-collision/Makefile
config.status: creating tests/userid/Makefile
config.status: creating tests/pkcs1-padding/Makefile
config.status: creating tests/pkcs8-decode/Makefile
config.status: creating tests/pkcs12-decode/Makefile
config.status: creating tests/pathlen/Makefile
config.status: creating tests/key-id/Makefile
config.status: creating tests/sha2/Makefile
config.status: creating tests/hostname-check/Makefile
config.status: creating includes/Makefile
config.status: creating includes/gnutls/gnutls.h
config.status: creating lib/Makefile
config.status: creating lib/minitasn1/Makefile
config.status: creating lib/x509/Makefile
config.status: creating libextra/Makefile
config.status: creating lib/openpgp/Makefile
config.status: creating lib/opencdk/Makefile
config.status: creating tests/openpgp/Makefile
config.status: creating src/Makefile
config.status: creating src/cfg/Makefile
config.status: creating src/cfg/platon/Makefile
config.status: creating src/cfg/platon/str/Makefile
config.status: creating lib/libgnutls-config
config.status: creating libextra/libgnutls-extra-config
config.status: creating lib/gnutls.pc
config.status: creating libextra/gnutls-extra.pc
config.status: creating guile/Makefile
config.status: creating guile/modules/Makefile
config.status: creating guile/src/Makefile
config.status: creating guile/tests/Makefile
config.status: creating guile/pre-inst-guile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing libtool commands
config.status: executing chmod-config commands






More information about the Gnutls-help mailing list