Opened 13 years ago

Closed 6 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 11 years ago.
patch to fix undefined reference to main error

Download all attachments as: .zip

Change History (8)

comment:1 Changed 13 years ago by warmerdam

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 Changed 12 years ago by frankie

Version: 1.4.2svn-trunk

comment:3 Changed 12 years ago by frankie

FYI it's still broken in 1.6.0...

comment:4 Changed 12 years ago by frankie

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.

Changed 11 years ago by sderle

Attachment: 1994.patch added

patch to fix undefined reference to main error

comment:5 Changed 11 years ago by hobu

patch applied in r17539

comment:6 Changed 6 years ago by Jukka Rahkonen

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

comment:7 Changed 6 years ago by Even Rouault

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.