Opened 15 years ago

Closed 10 years ago

#23490 closed defect (fixed)

geant4 links with Apple X11 libraries

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: geant4

Description

geant4 links with Apple X11 libraries. See "/usr/X11" in the output of otool -L:

$ otool -L /opt/local/lib/libG4FR.dylib
/opt/local/lib/libG4FR.dylib:
	/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/lib/libG4FR.dylib (compatibility version 0.0.0, current version 0.0.0)
	/usr/X11/lib/libGLU.1.dylib (compatibility version 1.3.0, current version 1.3.0)
	/usr/X11/lib/libGL.1.dylib (compatibility version 1.2.0, current version 1.2.0)
	/opt/local/lib/libXm.4.dylib (compatibility version 5.0.0, current version 5.2.0)
	/usr/X11/lib/libXpm.4.dylib (compatibility version 16.0.0, current version 16.0.0)
	/usr/X11/lib/libXmu.6.dylib (compatibility version 9.0.0, current version 9.0.0)
	/usr/X11/lib/libXt.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0)
	/usr/X11/lib/libX11.6.dylib (compatibility version 9.0.0, current version 9.0.0)
	/usr/X11/lib/libXi.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/X11/lib/libSM.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/X11/lib/libICE.6.dylib (compatibility version 10.0.0, current version 10.0.0)
	/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.0.0)

geant4 should instead link with MacPorts X11 libraries in /opt/local, and declare dependencies on the appropriate xorg ports.

Change History (8)

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Port: geant4 added

comment:2 Changed 14 years ago by jmroot (Joshua Root)

Owner: changed from cristiano.fontana@… to cristiano.fontana@…

comment:3 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: mojca@… added
Owner: changed from cristiano.fontana@… to macports-tickets@…

comment:4 Changed 11 years ago by mojca (Mojca Miklavec)

Version: 1.8.2

I upgraded the port in r111720 with substantial changes (including removal of search for X11 headers in system folders). Please let me know if this is still an issue. Honestly, I did an extensive check for +opengl_x11 alone, but raytracer_x11 or motif_x11 might need a few extra dependencies.

comment:5 Changed 11 years ago by mojca (Mojca Miklavec)

Owner: changed from macports-tickets@… to mojca@…

comment:6 Changed 11 years ago by mojca (Mojca Miklavec)

If I compile without opengl_x11, but with motif_x11, I get the following links:

/opt/local/lib/libICE.6.dylib  is provided by: xorg-libice
/opt/local/lib/libSM.6.dylib   is provided by: xorg-libsm
/opt/local/lib/libX11.6.dylib  is provided by: xorg-libX11
/opt/local/lib/libXext.6.dylib is provided by: xorg-libXext
/opt/local/lib/libXmu.6.dylib  is provided by: xorg-libXmu
/opt/local/lib/libXt.6.dylib   is provided by: xorg-libXt

but I'm again not sure which ones of these are true dependencies and which ones are just "recursive ones" (dependency of a dependency).

Again another option might be to simply combine opengl_x11 and motif_x11 into a single option.

comment:7 Changed 10 years ago by mojca (Mojca Miklavec)

The new Geant4 links against

/System/Library/Frameworks/AGL.framework/Versions/A/AGL
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL

as well as

/opt/local/lib/libGL.1.dylib
/opt/local/lib/libGLU.1.dylib

but I call it quits. This is a problem upstream that could in principle be reported, but more and more users probably switch to Qt anyway.

The commit r121601 should clean up the x11 dependencies, even though the original problem was already fixed much earlier.

comment:8 Changed 10 years ago by mojca (Mojca Miklavec)

Cc: mojca@… removed
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.