Opened 16 years ago

Closed 9 years ago

#1994 closed defect (fixed)

-fPIC is not used in ruby bindings

Reported by: frankie Owned by: cfis
Priority: normal Milestone:
Component: RubyBindings Version: svn-trunk
Severity: normal Keywords:
Cc: warmerdam

Description

That causes a build failure on some archs, see Debian BTS for more information:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=450882

Also its GNUmakefile should be patched to fail at the first error.

Attachments (1)

1994.patch (439 bytes ) - added by sderle 15 years ago.
patch to fix undefined reference to main error

Download all attachments as: .zip

Change History (8)

comment:1 by warmerdam, 16 years ago

Cc: warmerdam added

I have patched the swig/GNUmakefile in trunk (r12783) and 1.4 branch (r12784) as suggested.

Charlie, do you have any idea why the GDALmake.opt's -fPIC compile options aren't getting into the ruby extension build?

comment:2 by frankie, 15 years ago

Version: 1.4.2svn-trunk

comment:3 by frankie, 15 years ago

FYI it's still broken in 1.6.0...

comment:4 by frankie, 15 years ago

One more fix is required to work with libtool 2.2. s/-shared/-Xcompiler -shared/ in LDFLAGS. Note that some systems still use 1.5, but more and more of them are upgrading to series 2.2. Also that flag is back-compatible with 1.5.

by sderle, 15 years ago

Attachment: 1994.patch added

patch to fix undefined reference to main error

comment:5 by hobu, 15 years ago

patch applied in r17539

comment:6 by Jukka Rahkonen, 9 years ago

Patch was applied 5 years ago, did it possibly fix the issue?

comment:7 by Even Rouault, 9 years ago

Resolution: fixed
Status: newclosed

Let's assume yes. We lack a Ruby maintainer anyway

Note: See TracTickets for help on using tickets.