Help setting up MapScript
overbored
overbored at OVERBORED.NET
Sat Mar 12 16:13:53 PST 2005
Hi all,
I'm trying to set up PHP/MapScript. I am running PHP-4.3.9, but I did
not install it (I don't have root on this box). So I downloaded the
PHP-4.3.9 source (for regex), but I run into the following problem.
$ ./configure --prefix=$HOME/local --with-proj=$HOME/local
--with-php=/usr/local --with-php-regex-dir=/tmp/yang169/php-4.3.9 && make
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking if compiler supports -R... yes
checking for exp in -lm... yes
checking for __gxx_personality_v0 in -lstdc++... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... egrep
checking for ANSI C header files... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strdup... yes
checking for strlcat... yes
MapServer Version from map.h: '4.4.1'
configure: checking where FreeType 2.x is installed...
checking for FT_Init_FreeType in -lfreetype... yes
using libfreetype -lfreetype from system libs.
configure: checking where Zlib is installed...
using libz from -L/lib -lz
configure: checking where PNG is installed...
checking for png_init_io in -lpng... yes
using libpng from system libs.
configure: checking whether we should include JPEG support...
checking for jpeg_read_header in -ljpeg... yes
using libjpeg from system libs.
configure: checking where libXpm is installed...
using libXpm from -L/lib -lXpm -lX11
configure: checking where libiconv is installed...
checking for iconv_open in -lc... yes
checking for libiconv_open in -liconv... no
using libiconv from system libs.
libiconv found. Enabling internationalization (-DUSE_ICONV)
configure: checking for GD 2.0.12 or higher...
checking for gdImageSetAntiAliased in -lgd... yes
checking for gdImageSetAntiAliased in -lgd... (cached) yes
using libgd 2.0.12 (or higher) from system libs
(-L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -L/lib -lz -L/lib -lXpm
-lX11 ).
checking for gdImageCreate in -lgd... yes
checking for gdImageGif in -lgd... yes
checking for gdImagePng in -lgd... yes
checking for gdImageJpeg in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageGifPtr in -lgd... yes
checking for gdFontGetTiny in -lgd... yes
using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG
-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS) from system libs.
configure: checking whether we should include PDF support...
checking for PDF_setlinewidth in -lpdf... no
checking for PDF_setrgbcolor in -lpdf... no
checking for PDF_moveto in -lpdf... no
checking for PDF_curveto in -lpdf... no
checking for PDF_show_xy in -lpdf... no
libpdf not found... PDF support not included.
configure: checking whether we should include EPPL7 support...
including EPPL7 support.
configure: checking whether we should include PROJ.4 support...
checking for pj_transform in -lproj... yes
checking for pj_latlong_from_proj in -lproj... yes
using PROJ.4 from /home/cc/cs169/sp05/class/cs169-db/local.
configure: checking whether we should include thread safe support...
thread safe support disabled.
configure: checking whether we should include ESRI SDE support...
ESRI SDE support not requested.
configure: checking whether we should include SDE raster support...
not including experimental SDE raster support.
configure: checking whether we should compile in MPATROL support...
MPATROL support not requested.
checking if GEOS support requested... no
configure: checking whether we should include OGR support...
OGR support not requested.
checking if GDAL support requested... no
checking checking ms JPEG output... yes, GDAL is not available but
libjpeg is.
configure: checking whether we should include TIFF support...
checking for TIFFOpen in -ltiff... yes
using libtiff from system libs.
checking if PostGIS support requested... no
checking if MyGIS support requested... no
checking if OracleSpatial support requested... no
checking if MING/Flash support requested... no
configure: checking whether we should include WMS Server support...
OGC WMS compatibility enabled (-DUSE_WMS_SVR).
configure: checking whether we should include WFS Server support...
OGC WFS Server support not requested.
configure: checking whether we should include WCS Server support...
OGC WCS Server support not requested.
configure: checking whether we should include WMS Client Connections
support...
configure: checking whether we should include WFS Client Connections
support...
OGC WFS Client Connections not enabled (PROJ.4, libcurl and OGR
required).
configure: checking for curl-config...
configure: checking whether FastCGI support should be enabled...
FastCGI support not enabled.
configure: checking HTTPD server (Apache) version...
checking for httpd... /usr/local/apache2/bin/httpd
awk: syntax error near line 1
awk: bailing out near line 1
awk: syntax error near line 1
awk: bailing out near line 1
/usr/local/apache2/bin/httpd version is Apache/2.0.52 ().
Compiling with -DIGNORE_MISSING_DATA.
configure: checking whether we should enable debug features...
configure: checking for PHP/MapScript module options...
checking for g++ -shared ... yes
using 'g++ -shared' for dynamic linking
checking for location of config.h or php_config.h...
/usr/local/include/php//main/php_config.h
checking whether we have PHP3 or PHP4... -DPHP4
checking whether we should use PHP's regex... yes
using PHP regex source from /tmp/yang169/php-4.3.9/regex
PHP/MapScript module configured.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mapscript/php3/Makefile
config.status: creating mapscript/java/Makefile
gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ
-DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
-DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV
-DUSE_PHP_REGEX -I/tmp/yang169/php-4.3.9/regex/..
-I/usr/local/include
-I/home/cc/cs169/sp05/class/cs169-db/local/include
/tmp/yang169/php-4.3.9/regex/regcomp.c -o
/tmp/yang169/php-4.3.9/regex/regcomp.o
gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ
-DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
-DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV
-DUSE_PHP_REGEX -I/tmp/yang169/php-4.3.9/regex/..
-I/usr/local/include
-I/home/cc/cs169/sp05/class/cs169-db/local/include
/tmp/yang169/php-4.3.9/regex/regerror.c -o
/tmp/yang169/php-4.3.9/regex/regerror.o
/tmp/yang169/php-4.3.9/regex/regerror.c:38: error: `REG_OKAY' undeclared
here (not in a function)
/tmp/yang169/php-4.3.9/regex/regerror.c:38: error: initializer element
is not constant
/tmp/yang169/php-4.3.9/regex/regerror.c:38: error: (near initialization
for `rerrs[0].code')
/tmp/yang169/php-4.3.9/regex/regerror.c:38: error: initializer element
is not constant
/tmp/yang169/php-4.3.9/regex/regerror.c:38: error: (near initialization
for `rerrs[0]')
/tmp/yang169/php-4.3.9/regex/regerror.c:39: error: initializer element
is not constant
/tmp/yang169/php-4.3.9/regex/regerror.c:39: error: (near initialization
for `rerrs[1]')
/tmp/yang169/php-4.3.9/regex/regerror.c:40: error: initializer element
is not constant
/tmp/yang169/php-4.3.9/regex/regerror.c:40: error: (near initialization
for `rerrs[2]')
/tmp/yang169/php-4.3.9/regex/regerror.c:41: error: initializer element
is not constant
/tmp/yang169/php-4.3.9/regex/regerror.c:41: error: (near initialization
for `rerrs[3]')
/tmp/yang169/php-4.3.9/regex/regerror.c:42: error: initializer element
is not constant
/tmp/yang169/php-4.3.9/regex/regerror.c:42: error: (near initialization
for `rerrs[4]')
/tmp/yang169/php-4.3.9/regex/regerror.c:43: error: initializer element
is not constant
/tmp/yang169/php-4.3.9/regex/regerror.c:43: error: (near initialization
for `rerrs[5]')
/tmp/yang169/php-4.3.9/regex/regerror.c:44: error: initializer element
is not constant
/tmp/yang169/php-4.3.9/regex/regerror.c:44: error: (near initialization
for `rerrs[6]')
/tmp/yang169/php-4.3.9/regex/regerror.c:45: error: initializer element
is not constant
/tmp/yang169/php-4.3.9/regex/regerror.c:45: error: (near initialization
for `rerrs[7]')
/tmp/yang169/php-4.3.9/regex/regerror.c:46: error: initializer element
is not constant
/tmp/yang169/php-4.3.9/regex/regerror.c:46: error: (near initialization
for `rerrs[8]')
/tmp/yang169/php-4.3.9/regex/regerror.c:47: error: initializer element
is not constant
/tmp/yang169/php-4.3.9/regex/regerror.c:47: error: (near initialization
for `rerrs[9]')
/tmp/yang169/php-4.3.9/regex/regerror.c:48: error: initializer element
is not constant
/tmp/yang169/php-4.3.9/regex/regerror.c:48: error: (near initialization
for `rerrs[10]')
/tmp/yang169/php-4.3.9/regex/regerror.c:49: error: initializer element
is not constant
/tmp/yang169/php-4.3.9/regex/regerror.c:49: error: (near initialization
for `rerrs[11]')
/tmp/yang169/php-4.3.9/regex/regerror.c:50: error: initializer element
is not constant
/tmp/yang169/php-4.3.9/regex/regerror.c:50: error: (near initialization
for `rerrs[12]')
/tmp/yang169/php-4.3.9/regex/regerror.c:51: error: initializer element
is not constant
/tmp/yang169/php-4.3.9/regex/regerror.c:51: error: (near initialization
for `rerrs[13]')
/tmp/yang169/php-4.3.9/regex/regerror.c:52: error: `REG_EMPTY'
undeclared here (not in a function)
/tmp/yang169/php-4.3.9/regex/regerror.c:52: error: initializer element
is not constant
/tmp/yang169/php-4.3.9/regex/regerror.c:52: error: (near initialization
for `rerrs[14].code')
/tmp/yang169/php-4.3.9/regex/regerror.c:52: error: initializer element
is not constant
/tmp/yang169/php-4.3.9/regex/regerror.c:52: error: (near initialization
for `rerrs[14]')
/tmp/yang169/php-4.3.9/regex/regerror.c:53: error: `REG_ASSERT'
undeclared here (not in a function)
/tmp/yang169/php-4.3.9/regex/regerror.c:53: error: initializer element
is not constant
/tmp/yang169/php-4.3.9/regex/regerror.c:53: error: (near initialization
for `rerrs[15].code')
/tmp/yang169/php-4.3.9/regex/regerror.c:53: error: initializer element
is not constant
/tmp/yang169/php-4.3.9/regex/regerror.c:53: error: (near initialization
for `rerrs[15]')
/tmp/yang169/php-4.3.9/regex/regerror.c:54: error: `REG_INVARG'
undeclared here (not in a function)
/tmp/yang169/php-4.3.9/regex/regerror.c:54: error: initializer element
is not constant
/tmp/yang169/php-4.3.9/regex/regerror.c:54: error: (near initialization
for `rerrs[16].code')
/tmp/yang169/php-4.3.9/regex/regerror.c:54: error: initializer element
is not constant
/tmp/yang169/php-4.3.9/regex/regerror.c:54: error: (near initialization
for `rerrs[16]')
/tmp/yang169/php-4.3.9/regex/regerror.c:55: error: initializer element
is not constant
/tmp/yang169/php-4.3.9/regex/regerror.c:55: error: (near initialization
for `rerrs[17]')
/tmp/yang169/php-4.3.9/regex/regerror.c:64: error: parse error before
"php_regerror"
/tmp/yang169/php-4.3.9/regex/regerror.c:65: warning: return type
defaults to `int'
/tmp/yang169/php-4.3.9/regex/regerror.c: In function `php_regerror':
/tmp/yang169/php-4.3.9/regex/regerror.c:72: error: `REG_ITOA' undeclared
(first use in this function)
/tmp/yang169/php-4.3.9/regex/regerror.c:72: error: (Each undeclared
identifier is reported only once
/tmp/yang169/php-4.3.9/regex/regerror.c:72: error: for each function it
appears in.)
/tmp/yang169/php-4.3.9/regex/regerror.c:76: error: `REG_ATOI' undeclared
(first use in this function)
/tmp/yang169/php-4.3.9/regex/regerror.c: In function `regatoi':
/tmp/yang169/php-4.3.9/regex/regerror.c:119: error: structure has no
member named `re_endp'
*** Error code 1
make: Fatal error: Command failed for target
`/tmp/yang169/php-4.3.9/regex/regerror.o'
Googling for these errors turned up nothing. Can anybody help me out?
Thanks in advance,
Yang
More information about the MapServer-users
mailing list