Opened 21 years ago
Closed 21 years ago
#335 closed defect (wontfix)
Configure generates wrong Makefile for PHP.
Reported by: | Owned by: | dmorissette | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Build Problems | Version: | 3.6 |
Severity: | critical | Keywords: | |
Cc: |
Description
The error is in the version 3.5 and 3.6. When I run the configure, everything go cool, but, when I run make, the error occurs: # make gcc -shared -L/usr/local/lib -rdynamic-Wl -o php_mapscript.so php_mapscript_util.o php_mapscript.o mapscript_i.o -L/root/Mapserver-novo/mapserver-3.6.6 -lmap -L/usr/local/lib -lwwwxml -lxmltok -lxmlparse -lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -L/usr/local/pgsql/lib -lpq -L/usr/local/lib -lgdal.1.1 -L/root/mapserver/proj-4.4.7/src/.libs -lproj -ltiff -L/root/mapserver/jpeg-6b/ -ljpeg -lfreetype -L/root/mapserver/libpng-1.2.5 -lpng -L/root/mapserver/zlib-1. 1.4 -lz -L/root/mapserver/jpeg-6b/ -ljpeg -lfreetype -L/root/mapserver/libpng-1.2. 5 -lpng -L/root/mapserver/zlib-1.1.4 -lz -L/root/mapserver/jpeg-6b/ -ljpeg -lm -lstdc++ /root/mapserver/gd-2.0.12/.libs/libgd.a gcc: unrecognized option `-rdynamic-Wl' make[1]: Saindo do diretório `/root/Mapserver-novo/mapserver-3.6. 6/mapscript/php3' The option of gcc, -rdynamic-Wl, doesn't exist, is -rdynamic -Wl, so: # grep -i "rdynamic" * -R config.status:s%@PHP_LD@%gcc -shared -L/usr/local/lib -rdynamic-Wl%g mapscript/php3/Makefile:LD = gcc -shared -L/usr/local/lib -rdynamic-Wl # sed s/-rdynamic-Wl/-rdynamic\ -Wl/g mapscript/php3/Makefile > mapscript/php3/Makefile.new && cp mapscript/php3/Makefile.new mapscript/php3/Makefile -f # make clean ; make []'s
Note:
See TracTickets
for help on using tickets.