Opened 14 years ago

Closed 10 years ago

#3584 closed defect (duplicate)

GDAL 1.7.2 Ruby bindings build fails on Mac OSX 10.5.8 PowerPC

Reported by: cappelaere Owned by: cfis
Priority: high Milestone: 1.8.1
Component: RubyBindings Version: unspecified
Severity: critical Keywords:
Cc:

Description

When trying to link gdal_wrap, I get following error: libtool: compile: g++ -g -O2 -Wall -Wdeclaration-after-statement -I/Users/patrice/Software/gdal-1.7.2/port -I/Users/patrice/Software/gdal-1.7.2/gcore -I/Users/patrice/Software/gdal-1.7.2/alg -I/Users/patrice/Software/gdal-1.7.2/ogr -I/Users/patrice/Software/gdal-1.7.2/ogr/ogrsf_frmts -I/usr/local/lib/ruby/1.8/powerpc-darwin9.4.0 -c gdal_wrap.cpp -o gdal_wrap.o >/dev/null 2>&1 /bin/sh /Users/patrice/Software/gdal-1.7.2/libtool --mode=link g++ -Xcompiler -shared -L/usr/local/lib -L/usr/lib -lsqlite3 -L/usr/lib -lexpat -lpng -lpq -L/usr/local/pgsql/lib -lpq -lz -ldl -L/opt/local/lib -lcurl -L/opt/local/lib -L/opt/local/lib -lssl -lcrypto -L/opt/local/lib -lz -L/Users/patrice/Software/gdal-1.7.2 -lgdal -lruby gdal_wrap.o -o gdal.so libtool: link: g++ -shared gdal_wrap.o -o .libs/gdal.so -Wl,-bind_at_load -L/usr/local/lib -L/usr/lib /usr/local/lib/libexpat.dylib /usr/local/lib/libpng12.dylib -L/usr/local/pgsql/lib -L/opt/local/lib -L/Users/patrice/Software/gdal-1.7.2 /Users/patrice/Software/gdal-1.7.2/.libs/libgdal.dylib -lsqlite3 /usr/lib/libexpat.dylib /opt/local/lib/libpng12.dylib -lpq -ldl -lcurl -lssl -lcrypto -lz -lruby ld warning: duplicate dylib /usr/lib/libz.1.dylib Undefined symbols:

"_main", referenced from:

start in crt1.10.5.o

ld: symbol(s) not found

Change History (5)

comment:1 by cappelaere, 14 years ago

Here is the fix I would propose: Mac OS X does not support .so files but .bundle files

Change loader option instead of -shared, use -dynamic -bundle rename all instances of .so to .bundle in RubyMakefile.mk

comment:2 by jimk, 11 years ago

How does this play with #1994?

comment:3 by jimk, 11 years ago

Never mind, wrong typed in the wrong ticket.

comment:4 by jimk, 11 years ago

This looks like a duplicate of #2275 (and thus #2138)

comment:5 by Jukka Rahkonen, 10 years ago

Resolution: duplicate
Status: newclosed

Closing this but leaving #2275 open by now.

Note: See TracTickets for help on using tickets.