[mapserver-users] Perl/Mapscript Summary
Daniel Morissette
morissette at dmsolutions.ca
Mon Oct 8 08:05:26 PDT 2001
Tim Sutton wrote:
>
> Do I need to do something similar for compiling php_mapscript from cvs?
>
No... on most systems, compiling php_mapscript.so is just a matter of
passing the --with-php=DIR configure switch and typing make.
I guess you must be referring to the error that you posted a few days
ago:
Tim Sutton wrote:
>
> make[1]: Entering directory `/usr/local/src/mapserver/mapscript/php3'
> gcc -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -I. -I.. -fPIC -O2
> -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG
> -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -DUSE_JPEG
> -I/usr/local/src/mapserver
> -I/usr/include -I/usr/local/src/mapserver/../php-4.0.6
> -I/usr/local/src/mapserver/../php-4.0.6/dl
> -I/usr/local/src/mapserver/../php-4.0.6/main
> -I/usr/local/src/mapserver/../php-4.0.6/Zend
> -I/usr/local/src/mapserver/../php-4.0.6/include
> -I/usr/local/src/mapserver/../php-4.0.6/TSRM -I -c -o
> php_mapscript_util.o php_mapscript_util.c
> /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function
> `_start':
> /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18):
> undefined reference to `main'
... I don't understand why you get this. At this point the compiler
should only build .o files (because of the -c compiler option), but the
errors seem to suggest that it's trying to link an executable. Perhaps
you can try to remove options from the "CC=" line in
mapscript/php3/Makefile until it you get it to work. Try removing the
following: "-march=i386 -mcpu=i686 -fno-strict-aliasing" from the CC=
line in the Makefile and see if that changes anything.
--
------------------------------------------------------------
Daniel Morissette morissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
Don't put for tomorrow what you can do today, because if
you enjoy it today you can do it again tomorrow.
More information about the MapServer-users
mailing list