Hello Nikos, Thank you for your reply. Since i wanted to build gnutls and dependent libraries for a target machine using arm, i use the arm cross-compiler from codesourcery. I was successful is building using MinGW. Thanks for the pointer. I had to install the pkg-config package in MinGW, which solved the problem.
Now, using MinGW, i was to build gnutls for the PC using gcc. I want the client app using gnutls on the PC, this i need this. I use the same code-base that was used above. I was successful in building gmp/nettle. The .a / .dll files are generated. With gnutls, i get an error while configuring. My configure parameters are $./configure --disable-cxx --with-included-libtasn1 --disable-doc --disable-tests CPPFLAGS=-I/c/UserData/0.0.Projects/0.1.PFS/GAD/Source/Gnutls/Library/include LDFLAGS=-L/c/UserData/0.0.Projects/0.1.PFS/GAD/Source/Gnutls/Library/lib/ LIBS="-lgmp -lnettle -lhogweed" PKG_CONFIG_PATH=/c/UserData/0.0.Projects/0.1.PFS/GAD/Source/Gnutls/Library/lib/pkgconfig I get the below error configure : error : C compiler cannot create executables.See config.log file for more details. In the config.log, i see the below error, since i generate the nettle,gmp library using gcc, i do not understand this error. Target: mingw32 Configured with: ../gcc-4.6.1/configure --enable-languages=c,c++,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw Thread model: win32 gcc version 4.6.1 (GCC) configure:5130: $? = 0 configure:5119: gcc -V >&5 gcc.exe: error: unrecognized option '-V' gcc.exe: fatal error: no input files compilation terminated. configure:5130: $? = 1 configure:5119: gcc -qversion >&5 gcc.exe: error: unrecognized option '-qversion' gcc.exe: fatal error: no input files compilation terminated. configure:5130: $? = 1 configure:5150: checking whether the C compiler works configure:5172: gcc -I/c/UserData/0.0.Projects/0.1.PFS/GAD/Source/Gnutls/Library/include -L/c/UserData/0.0.Projects/0.1.PFS/GAD/Source/Gnutls/Library/lib conftest.c -lgmp -lnettle -lhogweed >&5 c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lgmp c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: skipping incompatible c:/UserData/0.0.Projects/0.1.PFS/GAD/Source/Gnutls/Library/lib/libnettle.a when searching for -lnettle c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: skipping incompatible c:/UserData/0.0.Projects/0.1.PFS/GAD/Source/Gnutls/Library/lib\libnettle.a when searching for -lnettle c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: skipping incompatible c:/UserData/0.0.Projects/0.1.PFS/GAD/Source/Gnutls/Library/lib/libnettle.a when searching for -lnettle c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lnettle c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: skipping incompatible c:/UserData/0.0.Projects/0.1.PFS/GAD/Source/Gnutls/Library/lib/libhogweed.a when searching for -lhogweed c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: skipping incompatible c:/UserData/0.0.Projects/0.1.PFS/GAD/Source/Gnutls/Library/lib\libhogweed.a when searching for -lhogweed c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: skipping incompatible c:/UserData/0.0.Projects/0.1.PFS/GAD/Source/Gnutls/Library/lib/libhogweed.a when searching for -lhogweed c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lhogweed collect2: ld returned 1 exit status Can you please help? Regards Mohan On Wed, Jun 26, 2013 at 10:29 PM, Nikos Mavrogiannopoulos <[email protected]>wrote: > On 06/25/2013 06:01 AM, Mohan Kemparaju wrote: > > > Hello everyone, > > > > I am unable to build gnutls 3.2.1 on cygwin. I am successful in building > > gmp5.1.2 and nettle2.7.1 libraries. I have cygwin 1.7.10(0.259/5/3). > > > Hello, > Could you try cross.mk from master [0]? I use that to build gnutls in > mingw64. > > regards, > Nikos > > [0]. https://gitorious.org/gnutls/gnutls/trees/master > >
_______________________________________________ Gnutls-help mailing list [email protected] http://lists.gnupg.org/mailman/listinfo/gnutls-help
