libtool
[Top][All Lists]
Advanced

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

Re: problem when cross compiling with mingw32ce


From: Vincent Torri
Subject: Re: problem when cross compiling with mingw32ce
Date: Tue, 20 Jan 2009 08:04:09 +0100 (CET)


Hey,

here is a reminding of something that i reported 2 months ago: (see http://lists.gnu.org/archive/html/libtool/2008-11/msg00147.html).

I recall the facts: when using the mingw32ce compiler, func_emit_cwrapperexe_src() fails, hence the installation of the binaries is not done.

That function fails because several functions do not exist on that platform. They are:

 * getenv, putenv (no environment variable on that OS)
 * getcwd (no current working directory feature too)
 * _spawn()

The simple way would be to guard them, like it was done with errno:

http://git.savannah.gnu.org/cgit/libtool.git/commit/?id=2a06feab95ec4c0e10f265dfb40aff381489d8f3

I don't know if that way would break or not that function

Here is the output I have:

./.libs/lt-evil_suite.c: In function 'find_executable':
./.libs/lt-evil_suite.c:620: warning: initialization makes pointer from integer without a cast
./.libs/lt-evil_suite.c: In function 'lt_opt_process_env_prepend':
./.libs/lt-evil_suite.c:880: warning: passing argument 1 of 'lt_extend_str' makes pointer from integer without a cast
./.libs/lt-evil_suite.c: In function 'lt_opt_process_env_append':
./.libs/lt-evil_suite.c:901: warning: passing argument 1 of 'lt_extend_str' makes pointer from integer without a cast
./.libs/lt-evil_suite.c: In function 'lt_update_exe_path':
./.libs/lt-evil_suite.c:917: warning: passing argument 1 of 'lt_extend_str' makes pointer from integer without a cast
./.libs/lt-evil_suite.c: In function 'lt_update_lib_path':
./.libs/lt-evil_suite.c:938: warning: passing argument 1 of 'lt_extend_str' makes pointer from integer without a cast
/tmp/cchXYNpc.o: In function `lt_setenv':
/home/torri/tmp/svnroot_wince/e17/proto/evil/src/bin/./.libs/lt-evil_suite.c:790: undefined reference to `putenv'
/tmp/cchXYNpc.o: In function `lt_update_lib_path':
/home/torri/tmp/svnroot_wince/e17/proto/evil/src/bin/./.libs/lt-evil_suite.c:938: undefined reference to `getenv'
/tmp/cchXYNpc.o: In function `lt_update_exe_path':
/home/torri/tmp/svnroot_wince/e17/proto/evil/src/bin/./.libs/lt-evil_suite.c:917: undefined reference to `getenv'
/tmp/cchXYNpc.o: In function `lt_opt_process_env_append':
/home/torri/tmp/svnroot_wince/e17/proto/evil/src/bin/./.libs/lt-evil_suite.c:901: undefined reference to `getenv'
/tmp/cchXYNpc.o: In function `lt_opt_process_env_prepend':
/home/torri/tmp/svnroot_wince/e17/proto/evil/src/bin/./.libs/lt-evil_suite.c:880: undefined reference to `getenv'
/tmp/cchXYNpc.o: In function `find_executable':
/home/torri/tmp/svnroot_wince/e17/proto/evil/src/bin/./.libs/lt-evil_suite.c:620: undefined reference to `getenv' /home/torri/tmp/svnroot_wince/e17/proto/evil/src/bin/./.libs/lt-evil_suite.c:635: undefined reference to `getcwd' /home/torri/tmp/svnroot_wince/e17/proto/evil/src/bin/./.libs/lt-evil_suite.c:660: undefined reference to `getcwd'
/tmp/cchXYNpc.o: In function `main':
/home/torri/tmp/svnroot_wince/e17/proto/evil/src/bin/./.libs/lt-evil_suite.c:484: undefined reference to `_spawnv'
collect2: ld returned 1 exit status
arm-mingw32ce-strip: './evil_suite.exe': No such file
../../libtool: line 8551: $func_ltwrapper_scriptname_result: ambiguous redirect


thank you

Vincent Torri




reply via email to

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