[ghemical-devel] Problems installing (gtkgl)

Rocco Moretti rmoretti at wisc.edu
Thu Nov 17 13:06:59 EST 2005


Tommi Hassinen wrote:
> On Mon, 14 Nov 2005, Rocco Moretti wrote:
> 
>> Sorry, I knew I forgot something in the email. I'm trying to install 
>> Ghemical version 1.02. For the gtkglarea libraries, the following rpm 
>> packages are installed:
>>
>> $  rpm -qa | grep gtkgl
>> lib64gtkglarea5-1.2.3-7mdk
>> lib64gtkglarea5-devel-1.2.3-7mdk
>> libgtkglarea5-1.2.3-7mdk
>> libgtkglarea5-devel-1.2.3-7mdk
>  
> These are the relevant packages IMHO ; strange that still gtkglarea is 
> not recognized.

I've done some digging into the autoconf documentation, and hopefully 
have a better understanding of autoconf. Here's the relevant section of 
config.log, if it helps anyone.:

...
configure:4080: $? = 0
configure:4083: test -s conftest.o
configure:4086: $? = 0
configure:4097: result: yes
configure:4134: checking for gdk_gl_query in -lgtkgl
configure:4165: gcc -o conftest -g -O2   conftest.c -lgtkgl
       >&5
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `g_strdup_printf'
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `gtk_type_is_a'
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `gtk_widget_push_colormap'
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `gtk_type_new'
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `gdk_display'
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `gtk_widget_pop_visual'
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `gtk_type_unique'
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `gdk_pixmap_ref'
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `gtk_widget_pop_colormap'
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `gtk_type_class'
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `gdk_pixmap_unref'
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `gtk_drawing_area_get_type'
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `g_malloc'
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `gdk_window_get_type'
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `gdk_colormap_new'
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `gtk_type_check_object_cast'
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `gtk_type_check_class_cast'
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `gtk_widget_push_visual'
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `gdkx_visual_get'
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `gdk_font_id'
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `g_log'
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `gtk_drawing_area_size'
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `g_free'
/usr/lib/gcc/x86_64-mandrake-linux-gnu/3.4.3/../../../../lib64/libgtkgl.so: 
undefined reference to `gtk_widget_get_type'
collect2: ld returned 1 exit status
configure:4171: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "ghemical"
| #define PACKAGE_TARNAME "ghemical"
| #define PACKAGE_VERSION "1.02"
| #define PACKAGE_STRING "ghemical 1.02"
| #define PACKAGE_BUGREPORT ""
| #define VERSION "1.02"
| #define TARGET3 1
| #define ENABLE_GRAPHICS 1
| #define ENABLE_TREELIST_VIEW 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
|
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char gdk_gl_query ();
| int
| main ()
| {
| gdk_gl_query ();
|   ;
|   return 0;
| }
configure:4197: result: no
configure:4368: error: Cannot find gtkgl library
...

I did some searching on the error messages, and after manually adding
`gtk-config --cflags --libs` to the relevant line in the configure 
script [ line 4165:  (eval $ac_link) 2>conftest.er1 ]
the test passes. I'm not sure if this is an acceptable fix, but after 
doing so, the configure script runs without any errors (both without 
options, and with the "--enable-mpqc --prefix=$HOME" options).

However, running make gave me errors, which were fixed by following the 
advice in the following email:
http://bioinformatics.org/pipermail/ghemical-devel/2005-September/000342.html

I'm now able to make and make install without fatal errors, and running 
ghemical gives a window (hooray!), but when I try to do a File->New 
Project->Quantum Mechanics (or Molecular Mechanics) I get an error box 
for a segmentation fault.

Any Thoughts?
-Rocco


More information about the ghemical-devel mailing list