[ghemical-devel] OSX Problems (previously Moving Along)

Donald Ephraim Curtis donald-curtis at uiowa.edu
Mon Apr 17 12:28:44 EDT 2006


My apologies, i should explain this a little bit more;

basically, after closing the window, 'ghemical' is still running but the 
window disappears; you have to ctrl-c it.  a backtrace in gdb doesn't 
reveal much, just that gtk_main_loop() is waiting on a semaphore to 
clear and it never comes.  I haven't been able to find much information, 
however i did clear up a problem with the configure.ac to allow the 
disabling of threads.  basically the checks for GTK need to come before 
GTHREADS and OPENBABEL.  I'm not sure WHY this is, but whenever i would 
give the --disable-threads; configure would say that the proper 
pkg-config was not available which is a lie.  config.log made it seem 
like PKG_CONFIG was never getting populated.  i think it had to do with 
the fact that the first time PKG_CONFIG was being used by configure was 
in the "if ENABLE_THREADS" context, meaning PKG_CONFIG wasn't getting 
defined if you specified --disable-threads.  phew, does that make sense? 
  here's the proposed patch, let me know if it seems ok as it was a 
guess, not something i trust to be more correct.

Geoff, have you seen anything like this?  I believe you said you were 
developing on a MAC.  This is OSX 10.3 that i'm having the problem, i 
don't _think_ it's an issue on 10.4 but i could be wrong.


Index: configure.ac
===================================================================
RCS file: /cvsroot/ghemical/configure.ac,v
retrieving revision 1.6.2.9
diff -u -3 -p -r1.6.2.9 configure.ac
--- configure.ac        11 Apr 2006 09:07:07 -0000      1.6.2.9
+++ configure.ac        17 Apr 2006 16:06:03 -0000
@@ -71,18 +71,6 @@ AM_SANITY_CHECK

  AC_CHECK_LIB([m], [acos])

-if test $WITH_THREADS = yes; then
-       AC_DEFINE([ENABLE_THREADS], [], [Define if you are building a 
multithreaded app])
-       PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= 2.6.0)
-       CPPFLAGS="$CPPFLAGS $GTHREAD_CFLAGS"
-       LIBS="$LIBS $GTHREAD_LIBS"
-fi
-
-if test $WITH_BONOBO = yes; then
-       AC_DEFINE([ENABLE_BONOBO], [], [Define if you are building a 
bonobo2 server version])
-       ## todo ; include the cflags/libs...
-fi
-
  PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.6.0)
  CPPFLAGS="$CPPFLAGS $GTK_CFLAGS"
  LIBS="$LIBS $GTK_LIBS"
@@ -95,6 +83,18 @@ PKG_CHECK_MODULES(LIBGLADE, libglade-2.0
  CPPFLAGS="$CPPFLAGS $LIBGLADE_CFLAGS"
  LIBS="$LIBS $LIBGLADE_LIBS"

+if test $WITH_THREADS = yes; then
+       AC_DEFINE([ENABLE_THREADS], [], [Define if you are building a 
multithreaded app])
+       PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= 2.6.0)
+       CPPFLAGS="$CPPFLAGS $GTHREAD_CFLAGS"
+       LIBS="$LIBS $GTHREAD_LIBS"
+fi
+
+if test $WITH_BONOBO = yes; then
+       AC_DEFINE([ENABLE_BONOBO], [], [Define if you are building a 
bonobo2 server version])
+       ## todo ; include the cflags/libs...
+fi
+
  if test $WITH_OPENBABEL = yes; then
         AC_DEFINE([ENABLE_OPENBABEL], [], [Define if you are building a 
version that interfaces directly with OpenBabel])
         PKG_CHECK_MODULES(OPENBABEL, openbabel-2.0)


More information about the ghemical-devel mailing list