[mapserver-dev] Compile problem

Ken Kyler ken at kyler.com
Mon Aug 26 08:42:17 EDT 2002


> > cc: undef: No such file or directory
>
>
> I suspect that it's this mapscript Makefile problem striking again...
> you could take out the 'undef' in the CC of CFLAGS variable definition
> in mapscript/php3/Makefile.
>
> The other option is to download the 3.6.2 source from
> http://www2.dmsolutions.ca/mapserver/dl/ in which this problem should be
> fixed already.  This web server is currently down but it will be back up
> first thing tomorrow morning.

I downloaded 3.6.2 and got the same error

...
cd mapscript/php3; make; cd ../..
cc
ef   -I. -I.. -DPIC -fpic -O2  -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_EPPL    -DU
SE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIM
AGEGIFPTR -DUSE_JPEG -I/usr/local/src/mapserver-3.6.2          -I/usr/local/
include -I/usr/local/include -I/usr/ports/www/mod_php4/work/php-4.2.2 -I/usr
/ports/www/mod_php4/work/php-4.2.2/dl -I/usr/ports/www/mod_php4/work/php-4.2
.2/main  -I/usr/ports/www/mod_php4/work/php-4.2.2/Zend -I/usr/ports/www/mod_
php4/work/php-4.2.2/include  -I/usr/ports/www/mod_php4/work/php-4.2.2/TSRM -
c php_mapscript_util.c
cc: undef: No such file or directory

I then changed the mapscript/php3/Makefile to...

CC =     cc    -I. -I.. -DPIC -fpic

and got

...
cc -Wl -Wl -o php_mapscript.so php_mapscript_util.o php_mapscript.o
mapscript_i.o -R/usr/local/lib -R/usr/local/src/mapserver-3.6.2 -L/usr/local
/src/mapserver-3.6.2 -lmap          -L/usr/local/lib -ljpeg -L/usr/local/lib
 -lfreetype -L/usr/local/lib -lpng -lz  -L/usr/local/lib -lgd -L/usr/local/l
ib -ljpeg -L/usr/local/lib -lfreetype -L/usr/local/lib -lpng -lz -L/usr/loca
l/lib -ljpeg   -lm
/usr/libexec/elf/ld: warning: libpng.so.4, needed by
/usr/local/lib/libgd.so, may conflict with libpng.so.5
php_mapscript_util.o: In function `_phpms_report_mapserver_error':
php_mapscript_util.o(.text+0x33): undefined reference to `zend_error'
...

plus a long set of other "undefined reference to" errors

Other thoughts?

again, this is a FreeBSD 4.5-STABLE box

Ken




More information about the mapserver-dev mailing list