[mapserver-users] Problems with PHP module. (fwd)

teb teb at mallit.fr.umn.edu
Thu Jun 28 09:54:26 EDT 2001


------------- Begin Forwarded Message -------------

Date: Wed, 27 Jun 2001 21:19:40 -0700 (MST)
From: Beau Gunderson <bludwulf at crackrock.net>
To: <mapserver-info at lists.gis.umn.edu>
Subject: Problems with PHP module. (fwd)
MIME-Version: 1.0

NOTE: I know of one other person having the exact sample problem, the
message was posted a while ago and I found it in the archives.

---------- Forwarded message ----------
Date: Wed, 27 Jun 2001 21:05:56 -0700 (MST)
From: Beau Gunderson <bludwulf at crackrock.net>
To: mapserver-users at lists.gis.umn.edu
Subject: Problems with PHP module.

I get the following error:

gmake[1]: Entering directory `/usr/tmp/mapserver/mapscript/php3'
cc undef  -I. -I.. -DPIC -fpic -O2  -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS
-DUSE_OGR   -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_EPPL -DUSE_JPEG -DUSE_TIFF
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT  -I/usr/tmp/mapserver
-I/usr/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/tmp/gdal-1.1.5/ogr
-I/usr/tmp/gdal-1.1.5/ogr/../port   -I/usr/local/include
-I/usr/local/include -I/usr/local/include -I/usr/local/include/gd
-I/usr/tmp/php-4.0.6 -I/usr/tmp/php-4.0.6/dl -I/usr/tmp/php-4.0.6/main
-I/usr/tmp/php-4.0.6/Zend -I/usr/tmp/php-4.0.6/include
-I/usr/tmp/php-4.0.6/TSRM -I/usr/local/apache/include  -c -o
php_mapscript_util.o php_mapscript_util.c
cc: cannot specify -o with -c or -S and multiple compilations
gmake[1]: *** [php_mapscript_util.o] Error 1
gmake[1]: Leaving directory `/usr/tmp/mapserver/mapscript/php3'

when trying to compile mapserver.

I think the relevant part is: cc: cannot specify -o with -c or -S and
multiple compilations.

There's also this little problem in the Makefile for mapscript/php3:
CC =     cc undef  -I. -I.. -DPIC -fpic

I believe it's supposed to be 'cc -undef'.

When I take out the -c I get a seemingly never-ending list of errors, such
as:

/usr/libexec/elf/ld: warning: cannot find entry symbol _start; defaulting
to 080482ac
/tmp/cchaNVFF.o: In function `_phpms_report_mapserver_error':
/tmp/cchaNVFF.o(.text+0x15): undefined reference to `ms_error'
/tmp/cchaNVFF.o(.text+0x31): undefined reference to `zend_error'
/tmp/cchaNVFF.o: In function `_phpms_fetch_handle2':

No clue as to what's going on.
This is from CVS code, cvsup'd on 06/27/2001.
I'm on FreeBSD 4.3-STABLE with Apache 1.3.20 and PHP 4.0.6.

Any ideas? =)

-Beau Gunderson



------------- End Forwarded Message -------------





More information about the mapserver-users mailing list