Ruby/Mapscript fails to build - bad Makefile
FreeBSD 5.4, mapserver-4.6.1, ruby 1.8.2
After configure && make in the root directory of mapserver, cd to
mapscript/ruby, cp the ../mapscript.i to cwd, type `ruby extconf.rb' to generate
the Makefile, and `make'.
Bombs on:
# make
cc -fPIC -I. -I. -I. -I. -idirafter /usr/local/lib/ruby/1.8/i386-freebsd5
-DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_GD_GIF -DUSE_GD_PNG
-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_WMS_SVR
-DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -c mapscript_wrap.c
In file included from ../../map.h:266,
from mapscript_wrap.c:917:
../../mapsymbol.h:45:16: gd.h: No such file or directory
- - -
See patch to extconf.rb below.
--- mapserver-4.6.1-orig/mapscript/ruby/extconf.rb Mon Feb 2 17:37:24 2004
+++ mapserver-4.6.1/mapscript/ruby/extconf.rb Wed Aug 31 12:19:04 2005
@@ -11,7 +11,7 @@
# $CFLAGS works only with 1.8 ??? -> the -Wall argument is not needed !!!
$CFLAGS = ""
-$CPPFLAGS = " -idirafter $(rubylibdir)/$(arch) " + make_define
+$CPPFLAGS = make_inc + " -idirafter $(rubylibdir)/$(arch) " + make_define
$LDFLAGS += " -fPIC"
$LOCAL_LIBS += " -L../.. " + make_libs + " " + make_static_libs
Change History
(5)
Cc: |
dmorissette@… added
|
Component: |
Build Problems → MapScript-SWIG
|
Owner: |
changed from mapserverbugs to sgillies@…
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
fix extconf.rb