Geomview port does not work with xorg-libs of MacPorts

Jeremy Huddleston jeremyhu at macports.org
Tue Jan 20 10:27:22 PST 2009


Looks like #17558 ... Did you actually do a 'sudo port -v upgrade  
outdated' ?  If not, do that and you should be fine.  If you still  
have the same linking issues, go into /opt/local/lib and figure out  
what libs are still linking against /usr/X11/lib/*.  This should do it:

cd /opt/local/lib; for f in *.dylib; do otool -L $f | grep -q /usr/X  
&& echo $f; done

---

If things are setup right, applications shouldn't need --x-include and  
--x-lib (libs that make pkg-config files and use AC_X_PATH will).  If  
you do need to disable AC_X_PATH for some reason, do it like this:

         # AC_X_PATH blindly asks xmkmf where X11 is, and it always  
uses /usr/X11R6.
         # These next three lines should cause AC_X_PATH to let us  
setup our CPPFLAGS
         # and LDFLAGS without interference
         configure.args-append --x-include=${prefix}/include --x-lib=$ 
{prefix}/lib
         configure.cppflags-append -I${x11prefix}/include
         configure.ldflags-append  -L${x11prefix}/lib

The cppflags and ldflags are important for users who do +system_x11



On Jan 20, 2009, at 10:00, Raphael Straub wrote:

> Hi,
>
> I'm the maintainer of the geomview port and I just discovered that  
> it does not work anymore. The problem seems to be the new port:xorg- 
> libs dependency.
>
> After installing Geomview with MacPorts (and even after adding "--x- 
> includes=${prefix}/include --x-libraries=${prefix}/lib" to  
> configure.args) "gvx" (the Geomview binary, "geomview" is just a  
> start script) is linked against the following libraries:
>
> > otool -L /opt/local/libexec/geomview/gvx
> /opt/local/libexec/geomview/gvx:
> 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/ 
> libGL.dylib (compatibility version 1.0.0, current version 1.0.0)
> 	/opt/local/lib/libXm.4.dylib (compatibility version 5.0.0, current  
> version 5.1.0)
> 	/opt/local/lib/libXp.6.dylib (compatibility version 9.0.0, current  
> version 9.0.0)
> 	/opt/local/lib/libXft.2.dylib (compatibility version 4.0.0, current  
> version 4.13.0)
> 	/usr/X11/lib/libX11.6.dylib (compatibility version 9.0.0, current  
> version 9.0.0)
> 	/usr/X11/lib/libXau.6.dylib (compatibility version 7.0.0, current  
> version 7.0.0)
> 	/usr/X11/lib/libXdmcp.6.dylib (compatibility version 7.0.0, current  
> version 7.0.0)
> 	/opt/local/lib/libXrender.1.dylib (compatibility version 5.0.0,  
> current version 5.0.0)
> 	/opt/local/lib/libfontconfig.1.dylib (compatibility version 5.0.0,  
> current version 5.0.0)
> 	/opt/local/lib/libiconv.2.dylib (compatibility version 7.0.0,  
> current version 7.0.0)
> 	/opt/local/lib/libexpat.1.dylib (compatibility version 7.0.0,  
> current version 7.2.0)
> 	/opt/local/lib/libfreetype.6.dylib (compatibility version 10.0.0,  
> current version 10.19.0)
> 	/opt/local/lib/libjpeg.62.dylib (compatibility version 63.0.0,  
> current version 63.0.0)
> 	/opt/local/lib/libpng12.0.dylib (compatibility version 35.0.0,  
> current version 35.0.0)
> 	/opt/local/lib/libXmu.6.dylib (compatibility version 9.0.0, current  
> version 9.0.0)
> 	/opt/local/lib/libgeomview-1.9.4.dylib (compatibility version  
> 0.0.0, current version 0.0.0)
> 	/usr/X11/lib/libGL.1.dylib (compatibility version 1.2.0, current  
> version 1.2.0)
> 	/usr/X11/lib/libGLU.1.dylib (compatibility version 1.3.0, current  
> version 1.3.0)
> 	/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current  
> version 1.2.3)
> 	/opt/local/lib/libXt.6.dylib (compatibility version 7.0.0, current  
> version 7.0.0)
> 	/opt/local/lib/libSM.6.dylib (compatibility version 7.0.0, current  
> version 7.0.0)
> 	/opt/local/lib/libICE.6.dylib (compatibility version 10.0.0,  
> current version 10.0.0)
> 	/opt/local/lib/libXext.6.dylib (compatibility version 11.0.0,  
> current version 11.0.0)
> 	/opt/local/lib/libX11.6.dylib (compatibility version 9.0.0, current  
> version 9.0.0)
> 	/opt/local/lib/libXau.6.dylib (compatibility version 7.0.0, current  
> version 7.0.0)
> 	/opt/local/lib/libXdmcp.6.dylib (compatibility version 7.0.0,  
> current version 7.0.0)
> 	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current  
> version 111.1.3)
> 	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current  
> version 1.0.0)
>
> As you can see, some libraries are double in this list. In addition,  
> there is no ${prefix}/lib/libGL.dylib and no ${prefix}/lib/ 
> libGLU.dylib to link against so /usr/X11/lib/libGL.1.dylib and /usr/ 
> X11/lib/libGLU.1.dylib are taken. The resulting binary just exits  
> with no error message.
>
> Does anybody have an idea how to solve the problem without  
> reinstalling all xorg-* ports with the system_x11 variant?
>
> Regards,
> 	Raphael
> -- 
> Raphael Straub                              E-Mail: raphael at ira.uka.de
> Universität Karlsruhe                       Tel.  : +49 721 608-4383
> Institut für Betriebs- und Dialogsysteme    Fax   : +49 721 608-8330
> Am Fasanengarten 5, 76128 Karlsruhe         Geb. 50.34, Raum 127
>
> _______________________________________________
> macports-dev mailing list
> macports-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev



More information about the macports-dev mailing list