[mapserver-users] Compile error with mapserver 3.5 with php
Hockaday, John
JohnHockaday at auslig.gov.au
Thu Feb 14 18:19:33 PST 2002
Hi,
I am trying to compile mapserver 3.5 on a Sun Solaris 2.6 platform with gcc
version 2.95.3 using the following configuration options:
./configure --prefix=/usr/local/ --exec-prefix=/usr/local --with-freetype
--with-proj --with-gd=/usr/local --with-zlib --with-wmsclient
--with-sde=/opt/local/esri/sdeexe81 --with-sde-version=81 --with-gdal
--with-php=/opt/contrib/src/php-4.0.6 --with-apxs=/opt/apache/bin/apxs
I have been able to compile mapserver 3.5 with all the options except
--with-php=/opt/contrib/src/php-4.0.6 --with-apxs=/opt/apache/bin/apxs
but when I compile with the php options I get the following error (what I
think is the relevant part is in bold):
make
..........
..........
echo -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H
-DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
-DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_SDE -DUSE_GDAL >> perlvars
echo -I. -I/usr/local/include -I/opt/local/esri/sdeexe81/include
-I/usr/local/include >> perlvars
echo -L. -lmap -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff
-ljpeg -lfreetype -lpng -lz -lproj -ljpeg -L/opt/local/esri/sdeexe81/lib
-lsde81 -lpe81 -lsg81 -lpthread -lsocket -ldl -L/usr/local/lib -lgdal.1.1
-L/usr/local/lib -lwwwxml -lxmltok -lxmlparse -lwwwinit -lwwwapp -lwwwhtml
-lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile
-lwwwdir -lwwwcache -lwwwstr
eam -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -lnsl -lsocket -lm
>>perlvars
echo >> perlvars
gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ
-DUSE_PROJ_API_H-DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR
-DUSE_SDE -DUSE_GDAL -I/usr/local/include
-I/opt/local/esri/sdeexe81/include -I/usr/local/include
-I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H
tile4ms.c -o tile4ms.o
gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H
-DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG
-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_SDE
-DUSE_GDAL -I/usr/local/include -I/opt/local/esri/sdeexe81/include
-I/usr/local/inclu
de -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H
tile4ms.o -L. -lmap -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz
-ltiff -ljpeg -lfreetype -lpng -lz -lproj -ljpeg
-L/opt/local/esri/sdeexe81/lib -lsde81 -lpe8
1 -lsg81 -lpthread -lsocket -ldl -L/usr/local/lib -lgdal.1.1
-L/usr/local/lib -lwwwxml -lxmltok -lxmlparse -lwwwinit -lwwwapp -lwwwhtml
-lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile
-lwwwdir -lwwwcache -lwwwstre
am -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -lnsl -lsocket -lm
-o tile4ms
ld: warning: symbol `png_libpng_ver' has differing sizes:
(file /usr/local/lib/libpng.a(png.o) value=0x12; file
/usr/local/lib/lib
gdal.1.1.so value=0xc);
/usr/local/lib/libpng.a(png.o) definition taken
ld: warning: global symbol `_DYNAMIC' has non-global binding:
(file /usr/local/lib/libgcc_s.so.1 value=LOCL);
ld: warning: global symbol `_PROCEDURE_LINKAGE_TABLE_' has non-global
binding:
(file /usr/local/lib/libgcc_s.so.1 value=LOCL);
ld: warning: global symbol `_GLOBAL_OFFSET_TABLE_' has non-global binding:
(file /usr/local/lib/libgcc_s.so.1 value=LOCL);
cd mapscript/php3; make; cd ../..
make[1]: Entering directory `/opt/contrib/src/mapserver_3.5/mapscript/php3'
gcc gcc -I. -I.. -fPIC -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS_LYR
-DUSE_WMS -DUSE_GDAL -DUSE_SDE -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_EPPL
-DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
-DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_JPEG
-I/opt/contrib/src/mapserver_3.5 -I/usr/local/include
-I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H -I/usr/local/include
-I/opt/local/esri/sdeexe81/include -I/usr/local/include
-I/opt/contrib/src/php-4.0.6 -I/opt/contrib/src/php-4.0.6/dl
-I/opt/contrib/src/php-4.0.6/main -I/opt/contrib/src/php
-4.0.6/Zend -I/opt/contrib/src/php-4.0.6/include
-I/opt/contrib/src/php-4.0.6/TSRM -I/opt/apache_1.3.12/include -c -o
php_mapscript_util.o php_mapscript_util.c
gcc: cannot specify -o with -c or -S and multiple compilations
make[1]: *** [php_mapscript_util.o] Error 1
make[1]: Leaving directory `/opt/contrib/src/mapserver_3.5/mapscript/php3'
I compiled php 4.0.6 using the following configuration and it seems to work
after I stop and start apache:
./configure --with-apxs=/opt/apache_1.3.12/bin/apxs --with-gnu-ld
--with-oci8
=/u01/app/oracle/product/8.1.7 --with-regex=system
The problem seems to be finding the "dl" directory which doesn't exist.
Should I switch on some options when I compile php to create this directory?
I've checked the archives but I can't see any email that have had the same
problem. Can someone help please?
John
More information about the MapServer-users
mailing list