MapServer / MapServer-import

3 stars 2 forks source link

Ruby/Mapscript fails to build - bad Makefile #1450

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: paul@cnt.org Date: 2005/08/31 - 19:29

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
tbonfort commented 12 years ago

Author: dmorissette Date: 2005/08/31 - 19:46

Reassigned to SWIG module owner.
tbonfort commented 12 years ago

Author: dmorissette Date: 2005/08/31 - 19:47

Okay, this time it should be reassigned.
tbonfort commented 12 years ago

Author: sgillies@frii.com Date: 2005/08/31 - 20:26

Sorry that you missed the 4.6.1 release, Paul. The Ruby mapscript has been quiet
and neglected for a while, it's good to see a patch. I hate the mapscriptvars
hack that we have been using ... if you can think of anything better, I am all ears.
tbonfort commented 12 years ago

Author: sgillies@frii.com Date: 2005/09/20 - 18:00

committed to the HEAD and the 4.6 branch