[mapserver-users] MapServer and PostGIS compile

Pericles S. Nacionales pnaciona at gis.umn.edu
Fri Nov 30 00:25:45 EST 2001


Hi there!  While compiling MapServer with PostGIS support on Cygwin, I ran
into this error message:

gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_AP
I_H
-DUSE_WMS -DUSE_WMS_LYR    -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_
FT -
DGD_HAS_GDIMAGEGIFPTR    -DUSE_GDAL -DUSE_POSTGIS  -I/cygdrive/d/projects/gn
u/ma
pserver/gd-1.8.4  -I/usr/local/include     -I./regex-0.12   -I/usr/local/inc
lude
 -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-li
bwww
 -DHAVE_CONFIG_H  mappostgis.c -o mappostgis.o
mappostgis.c: In function `msPOSTGISLayerOpen':
mappostgis.c:112: `LITTLE_ENDIAN' undeclared (first use in this function)
mappostgis.c:112: (Each undeclared identifier is reported only once
mappostgis.c:112: for each function it appears in.)
mappostgis.c:114: `BIG_ENDIAN' undeclared (first use in this function)
mappostgis.c: In function `prep_DB':
mappostgis.c:191: `LITTLE_ENDIAN' undeclared (first use in this function)
mappostgis.c: In function `msPOSTGISLayerGetShape':
mappostgis.c:926: `LITTLE_ENDIAN' undeclared (first use in this function)
make: *** [mappostgis.o] Error 1

I get a similar message when compiling PostGIS support on Sun Solaris 8.
The very same MapServer configuration compiles and runs perfectly on my
Linux (Red Hat 7.2) box.  If this matters at all, I'm running gcc version
2.95.3 on both Cygwin and Solaris,and version 2.96 on Linux.

Perhaps I should report this as a bug?  Anyway thanks in advance for any
help.

-Perry N.




More information about the mapserver-users mailing list