[MacPorts] #21567: libgeotiff-1.2.5 fails to buld the utility programs (listgeo, geotifcp) correctly
#21567: libgeotiff-1.2.5 fails to buld the utility programs (listgeo,geotifcp) correctly -------------------------------+-------------------------------------------- Reporter: katzlbt@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: libgeotiff 1.2.5 | Port: libgeotiff -------------------------------+-------------------------------------------- PROBLEM: Trying to execute one of the utility programs that come with libgeotiff gives a dynamic link error: {{{ $ listgeo dyld: Library not loaded: libgeotiff.dylib.1.2.5 Referenced from: /opt/local/bin/listgeo Reason: image not found Trace/BPT trap }}} FIX: instead of using the dynamic version of the library (that gets renamed from libgeotiff.dylib.1.2.5 to libgeotiff.1.2.5.dylib) before installing, use the static .a version when linking the utils: FILE: bin/Makefile(.in) {{{ #ORIGINAL: LIBS= -L$(GEOTIFFDIR) -lgeotiff @LIBS@ LIBS= -L$(GEOTIFFDIR) ../libgeotiff.a @LIBS@ }}} I am not sure if this is the best way to fix it, but it works. I manually edited the Makefile so I have no patch. Hope this helps. Thanks for macports! -- Ticket URL: <http://trac.macports.org/ticket/21567> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21567: libgeotiff-1.2.5 fails to buld the utility programs (listgeo,geotifcp) correctly -------------------------------+-------------------------------------------- Reporter: katzlbt@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: libgeotiff 1.2.5 | Port: libgeotiff -------------------------------+-------------------------------------------- Comment(by vince@…): There is a tool to do that: install_name_tool. I will have a look, since I am currently porting grass and qgis (grass is done, I'm working on the latest qgis) -- Ticket URL: <http://trac.macports.org/ticket/21567#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21567: libgeotiff-1.2.5 fails to buld the utility programs (listgeo,geotifcp) correctly -------------------------------+-------------------------------------------- Reporter: katzlbt@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: libgeotiff 1.2.5 | Port: libgeotiff -------------------------------+-------------------------------------------- Comment(by vince@…): Add the following line at the end of the Portfile, before the closing brace of the post-destroot target: {{{ system "find ${destroot}${prefix}/bin -type f -not -name '*.*' -and -not -name Makefile -print -exec install_name_tool -change libgeotiff.dylib.${version} ${prefix}/lib/libgeotiff.${version}.dylib {} \\;" }}} and all will be nice. But I don't understand why the Makefile does not install the "makegeo" executable… -- Ticket URL: <http://trac.macports.org/ticket/21567#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21567: libgeotiff-1.2.5 fails to buld the utility programs (listgeo,geotifcp) correctly -------------------------------+-------------------------------------------- Reporter: katzlbt@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: libgeotiff 1.2.5 | Port: libgeotiff -------------------------------+-------------------------------------------- Comment(by vince@…): Sorry, bad cut/copy. It should read: {{{ system "find ${destroot}${prefix}/bin -type f -exec install_name_tool -change libgeotiff.dylib.${version} ${prefix}/lib/libgeotiff.${version}.dylib {} \\;" }}} -- Ticket URL: <http://trac.macports.org/ticket/21567#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21567: libgeotiff-1.2.5 fails to buld the utility programs (listgeo,geotifcp) correctly --------------------------------+------------------------------------------- Reporter: katzlbt@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Resolution: fixed | Keywords: libgeotiff 1.2.5 Port: libgeotiff | --------------------------------+------------------------------------------- Changes (by vince@…): * status: new => closed * resolution: => fixed Comment: Committed in r58168 -- Ticket URL: <http://trac.macports.org/ticket/21567#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts