Cross compile issue about gnutls 3.0.12 on ubuntu with MinGW

Shengwei Li (William) shengwl at uci.edu
Tue Feb 7 23:23:51 CET 2012


Hi there,

I am trying to configure gnutls 3.0.12 on ubuntu with the following command:
./configure --without-p11-kit --disable-cxx CC="i586-mingw32msvc-gcc" --build=i586-pc-linux-gnu --host=i686-pc-mingw32msvc
This is to build a gnutls library that I would use on Windows XP for Winsock program.

But I got the error:
===============================================================
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for i686-pc-mingw32msvc-strip... no
checking for strip... strip
configure: WARNING: using cross tools not prefixed with host triplet
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
***
*** Checking for compilation programs...

checking for i686-pc-mingw32msvc-gcc... i586-mingw32msvc-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... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i586-mingw32msvc-gcc accepts -g... yes
checking for i586-mingw32msvc-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of i586-mingw32msvc-gcc... gcc3
checking dependency style of i586-mingw32msvc-gcc... gcc3
checking for i686-pc-mingw32msvc-g++... no
checking for i686-pc-mingw32msvc-c++... no
checking for i686-pc-mingw32msvc-gpp... no
checking for i686-pc-mingw32msvc-aCC... no
checking for i686-pc-mingw32msvc-CC... no
checking for i686-pc-mingw32msvc-cxx... no
checking for i686-pc-mingw32msvc-cc++... no
checking for i686-pc-mingw32msvc-cl.exe... no
checking for i686-pc-mingw32msvc-FCC... no
checking for i686-pc-mingw32msvc-KCC... no
checking for i686-pc-mingw32msvc-RCC... no
checking for i686-pc-mingw32msvc-xlC_r... no
checking for i686-pc-mingw32msvc-xlC... no
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 how to run the C preprocessor... i586-mingw32msvc-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for Minix Amsterdam compiler... no
checking for i686-pc-mingw32msvc-ar... no
checking for ar... ar
checking for i686-pc-mingw32msvc-ranlib... no
checking for ranlib... ranlib
checking build system type... i586-pc-linux-gnu
checking host system type... i686-pc-mingw32msvc
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 special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... unknown
checking for _LARGE_FILES value needed for large files... unknown
checking for i586-mingw32msvc-gcc option to accept ISO C99... -std=gnu99
checking for i586-mingw32msvc-gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking for inline... inline
checking for ANSI C header files... (cached) yes
checking cpuid.h usability... yes
checking cpuid.h presence... yes
checking for cpuid.h... yes
checking for ld used by GCC... /usr/i586-mingw32msvc/bin/ld
checking if the linker (/usr/i586-mingw32msvc/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking whether to use nettle... yes
checking for libnettle... no
configure: error: 
  ***
  *** Libnettle 2.4 was not found.
===============================================================

It seemed to me that /usr/i586-mingw32msvc/bin/ld could not locate nettle 2.4, which I've installed.
I also tried to use " --with-libnettle-prefix=/usr/local" and , but no luck.

Could someone please help on this? Thank you in advance.

BTW, I could compile it with standard gcc coming with the system.

Regards,

Shengwei (William) Li

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20120207/563eced6/attachment.htm>


More information about the Gnutls-help mailing list