molmol packaging

Jack Howarth howarth at bromo.med.uc.edu
Sat Sep 12 12:04:55 PDT 2009


Jeremy,
   I've pretty much convinced myself that the breakage in molmol
is in the X support in MacPorts and not the build. I resorted to
a basic build of the molmol sources in /usr/local/molmol. In one
case I modified the makedefs file to use the MacPorts includes
and libraries (but nothing in /usr/X11R6). This molmol executable
hangs. If I do a 'make clean' and use the minor changes to makedef
to use fink's headers and libraries instead...

--- makedef.macports	2009-09-12 14:55:19.000000000 -0400
+++ makedef.fink	2009-09-12 14:44:18.000000000 -0400
@@ -1,8 +1,8 @@
- TIFFDIR = /opt/local/lib
+ TIFFDIR = /sw/lib
  MESADIR = 
- JPEGDIR = /opt/local/lib
+ JPEGDIR = /sw/lib
 
- PNGDIR = /opt/local/lib
+ PNGDIR = /sw/lib
  ZLIBDIR = /usr/lib
 
 # If you configured any of the above three image formats, uncomment
@@ -25,7 +25,7 @@
 
 CPP = /usr/bin/cpp
 
-MCPPFLAGS =  -DMAXINT=INT_MAX -I/opt/local/include -bind_at_load -I$(TOP)
+MCPPFLAGS =  -DMAXINT=INT_MAX -I/sw/include -I/usr/X11R6/include -bind_at_load -I$(TOP)
 
 CC = gcc 
 
@@ -52,8 +52,8 @@
 
 MOTIFDEF = -DFUNCPROTO
 
-SYSLIB = -L/usr/lib -L/opt/local/lib  \
-         -lX11 -lXm -lGLU -lGL /System/Library/Frameworks/OpenGL.framework/Libraries/libGL.dylib /opt/local/lib/libGLw.dylib \
+SYSLIB = -L/usr/lib -L/usr/X11R6/lib -L/sw/lib  \
+         -lX11 -lXm -lGLU -lGL /System/Library/Frameworks/OpenGL.framework/Libraries/libGL.dylib /sw/lib/libGLw.dylib \
          -lXmu -lXt -lXp -lXpm -lX11 -lXext -lSM -lICE -lm -lc -lmx
 
 TOOLSDIR = $(TOP)/tools

then the resulting binary runs fine. Interestingly, molmol stores the previous sessions for quick
redisplaying the molecule. Under Macports, the previously view molecule is rendered so that part of
the program works. What seems to be broken is all of the control widgets and the access to them.
If I look at the MacPort build of the molmol's process in Instruments, I see the following nested
calls...

poll
_XtWaitForSomething
XtAppProcessEvent
processOneEvent
PuMotifEventLoop
PuEventLoop
MolInit
main
start
Thread 0x7d03: Main Thread

While it is sampling for events, there are no displayed Motif
GLw widgets to interact with. Can you try the molmol Macports
package I sent to the list earlier and see if it reproduces on
your machine?
          Jack




More information about the macports-dev mailing list