Status: New Owner: ---- Labels: Type-Defect Priority-Medium
New issue 773 by martin.james.robinson: Build fails with 'undefined reference' errors in Ubuntu 8.10
http://code.google.com/p/gears/issues/detail?id=773 What steps will reproduce the problem? 1. Run 'make' on Ubuntu 8.10 2. 3. What is the expected output? What do you see instead? Clean compile. Build fails like this: ../third_party/gtk/linux/lib/libgtk-x11-2.0.so: undefined reference to `gdk_screen_get_font_options_libgtk_only' ../third_party/gtk/linux/lib/libgtk-x11-2.0.so: undefined reference to `gdk_screen_set_resolution_libgtk_only' ../third_party/gtk/linux/lib/libgtk-x11-2.0.so: undefined reference to `gdk_screen_set_font_options_libgtk_only' ../third_party/gtk/linux/lib/libgtk-x11-2.0.so: undefined reference to `gdk_screen_get_resolution_libgtk_only' What version of the product are you using? On what operating system? This is the latest from SVN on Ubuntu 8.10. Please provide any additional information below. It appears as if the included third_party/gtk/linux/lib/libgtk-x11-2.0.so object was built against a version of glib incompatible with the one on my system. One solution is to include the glib library and make sure to link against that during build. Another option (and better, in my opinion) is to check for gtk+ development libraries before falling back on the included library. In a Makefile this would look like: libs=`pkg-config --libs gtk+-2.0 2> /dev/null || echo "-lgtk-x11-2.0 ../third_party/gtk/linux/lib"` There would be a similar pattern for generating include paths. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings
