[MacPorts] #21567: libgeotiff-1.2.5 fails to buld the utility programs (listgeo, geotifcp) correctly

MacPorts noreply at macports.org
Wed Sep 23 01:48:40 PDT 2009


#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


More information about the macports-tickets mailing list