Opened 19 years ago

Closed 19 years ago

#1450 closed defect (fixed)

Ruby/Mapscript fails to build - bad Makefile

Reported by: paul@… Owned by: sgillies@…
Priority: high Milestone:
Component: MapScript-SWIG Version: 4.6
Severity: blocker Keywords:
Cc:

Description

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

Attachments (1)

ruby-mapscript-extconf.patch (488 bytes ) - added by paul@… 19 years ago.
fix extconf.rb

Download all attachments as: .zip

Change History (5)

by paul@…, 19 years ago

fix extconf.rb

comment:1 by dmorissette, 19 years ago

Cc: dmorissette@… added
Component: Build ProblemsMapScript-SWIG
Reassigned to SWIG module owner.

comment:2 by dmorissette, 19 years ago

Owner: changed from mapserverbugs to sgillies@…
Okay, this time it should be reassigned.

comment:3 by sgillies@…, 19 years ago

Status: newassigned
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.

comment:4 by sgillies@…, 19 years ago

Resolution: fixed
Status: assignedclosed
committed to the HEAD and the 4.6 branch
Note: See TracTickets for help on using tickets.