[GRASS-dev] Compilation errors under MinGW
Rosen Matev
r.matev at gmail.com
Wed Dec 3 17:14:43 EST 2008
Hello,
There are a few errors that popped out when I tried to compile MinGW.
As far as I can see only trunk is faulty. I solved the problem by
updating the problematic files from an older revision. Here is the
summary:
COMPILATION ERRORS //in mingw environment
(revision 34688)
/trunk/lib/gis
locale.c:33: error: `LC_MESSAGES' undeclared (first use in this function)
// the problem is in locale.h bundled with mingw
// probably not GRASS' issue but I'm not sure
mach_name.c:34:6: #if with no expression
// the #elif at #34 should be #else
popen.c:55: error: `popen_pid' undeclared (first use in this function)
// what's the best way to fix this?
spawn.c: In function `G_spawn':
spawn.c:84: warning: passing arg 3 of `_spawnv' from incompatible
pointer type
spawn.c: In function `do_redirects':
spawn.c:215: warning: control reaches end of non-void function
spawn.c: In function `do_spawn':
spawn.c:232: error: `redirects' undeclared (first use in this function)
spawn.c:232: error: `num_redirects' undeclared (first use in this function)
spawn.c:233: error: `bindings' undeclared (first use in this function)
spawn.c:233: error: `num_bindings' undeclared (first use in this function)
spawn.c:236: error: `background' undeclared (first use in this function)
spawn.c:236: error: `args' undeclared (first use in this function)
spawn.c:237: warning: passing arg 4 of `spawnvpe' from
incompatible pointer type
spawn.c: In function `G_vspawn_ex':
spawn.c:631: warning: passing arg 1 of `do_spawn' from
incompatible pointer type
spawn.c:631: error: too many arguments to function `do_spawn'
spawn.c: In function `G_spawn_ex':
spawn.c:655: warning: passing arg 1 of `do_spawn' from
incompatible pointer type
spawn.c:655: error: too many arguments to function `do_spawn'
// some more errors...
The fix should be straightforward. I can't commit to trunk so I'm
letting you know for these.
Please elaborate on the first error. I fixed it by adding a line
"#define LC_MESSAGES 6" in locale.h, which pretty lame.
Regards,
Rosen Matev
More information about the grass-dev
mailing list