bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libtool 2.2.2 cross-compile to mingw problems


From: Simon Josefsson
Subject: libtool 2.2.2 cross-compile to mingw problems
Date: Fri, 18 Apr 2008 10:42:24 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux)

Hi.

I'm trying to build gnutls from debian x86 to windows using mingw.  The
resulting binaries doesn't work in-place:

address@hidden:~/gnutls4win/build/gnutls-2.3.7/src$ ./certtool.exe
Wine failed with return code 127
address@hidden:~/gnutls4win/build/gnutls-2.3.7/src$ 

I need to run them in-place, because they are invoked from 'make check'.

Re-compiling the wrapper with DEBUGWRAPPER yields:

address@hidden:~/gnutls4win/build/gnutls-2.3.7/src$ i586-mingw32msvc-gcc 
-DDEBUGWRAPPER -std=gnu99 -g -O2 -Wno-pointer-sign -o ./certtool.exe 
./.libs/lt-certtool.c
address@hidden:~/gnutls4win/build/gnutls-2.3.7/src$ ./certtool.exe
(main) argv[0]      : ./certtool.exe
(main) program_name : certtool.exe
(find_executable)   : ./certtool.exe
(check_executable)  : 
Z:\home\jas\gnutls4win\build\gnutls-2.3.7\src/./certtool.exe
(main) found exe (before symlink chase) at : 
Z:\home\jas\gnutls4win\build\gnutls-2.3.7\src/./certtool.exe
(main) found exe (after symlink chase) at : 
Z:\home\jas\gnutls4win\build\gnutls-2.3.7\src/./certtool.exe
(main) libtool shell wrapper name: certtool_ltshwrapperTMP
(make_executable)   : 
Z:/home/jas/gnutls4win/build/gnutls-2.3.7/src/./.libs/certtool_ltshwrapperTMP
(main) newargz[0]   : .exe
(main) newargz[1]   : 
Z:/home/jas/gnutls4win/build/gnutls-2.3.7/src/./.libs/certtool_ltshwrapperTMP
(main) failed to launch target ".exe": errno = 2
Wine failed with return code 127
address@hidden:~/gnutls4win/build/gnutls-2.3.7/src$ 

As far as I can understand from the .libs/lt-certtool.c code, it writes
a bash script into .libs/certtool_ltshwrapperTMP and then tries to
execute that.

How is this intended to work?  You can't execute bash scripts under
Windows nor Wine, as far as I know.

Any help much appreciated, I can't think of a proper solution here other
than blindly copying all .libs/*.exe into *.exe before running 'make
check'.

Btw, if I invoke .libs/certtool.exe it works fine, but likely requires
that all the libraries are in their proper place.

/Simon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]