compiling MapScript on Solaris SunOS 5.9

Matthias Pohl at M-CLICK.DE
Fri Dec 1 06:08:23 EST 2006

Hello list,

compiling MapScript on Solaris SunOS 5.9 works quite well, but the connection to MyGIS causes some problems. There are missing defs of 'u_int32_t' and similar types. On Solaris, you cannot find them in <sys/types.h>. You need to include <net/ppp_defs.h>. 

The following patch from Volker Grabsch takes care of this issue, and won't do any harm on systems where u_int32_t is correctly defined in <sys/types.h>:

patch mapmygis.c <<EOF
--- mapmygis.c.orig     Fri Oct 20 13:15:26 2006
+++ mapmygis.c  Fri Oct 20 13:01:49 2006
@@ -61,6 +61,11 @@
 #include <assert.h>
 #include <sys/types.h>
+/* Hack for Solaris */
+#if !defined(u_int32_t)
+#include <net/ppp_defs.h>
 #if !defined(_WIN32)
 #include <netinet/in.h>

regards, Matt

More information about the mapserver-dev mailing list