mapserver svn issues

Matthias Pohl m.pohl at M-CLICK.DE
Thu May 31 03:41:02 EDT 2007


Hello list,

1.) when compiling mapserver on a 64bit AMD processor (Debian Linux), we 
found a typo in mapserver-4.99/map.h

Index: mapserver-4.99/map.h
===================================================================
--- mapserver-4.99/map.h	(revision 6159)
+++ mapserver-4.99/map.h	(working copy)
@@ -67,7 +67,7 @@
  typedef long            ms_int32;
  typedef unsigned long   ms_uint32;
  #elif UINT_MAX == 0xffffffff
-typedef int             ms_uint32;
+typedef int             ms_int32;
  typedef unsigned int    ms_uint32;
  #else
  #include <stdint.h>


2.) The php mapscript ms_newLayerObj() function shows an error "Fatal 
error: [MapServer Error]: initLayer(): Layer is null in /script.php"

The patch will fix the problem.

Index: mapserver-4.99/mapscript/php3/mapscript_i.c
===================================================================
--- mapserver-4.99/mapscript/php3/mapscript_i.c	(revision 6159)
+++ mapserver-4.99/mapscript/php3/mapscript_i.c	(working copy)
@@ -462,6 +462,10 @@
      if(map->numlayers == MS_MAXLAYERS) // no room
        return(NULL);

+    map->layers[map->numlayers] = (layerObj*)malloc(sizeof(layerObj));
+    if(map->layers[map->numlayers] == NULL)
+      return(NULL);
+
      if(initLayer((map->layers[map->numlayers]), map) == -1)
        return(NULL);



regards, Matt



More information about the mapserver-dev mailing list