benlilaj / gears

Automatically exported from code.google.com/p/gears
0 stars 1 forks source link

Build fails with 'undefined reference' errors in Ubuntu 8.10 #773

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by martin.j...@gmail.com on 2 Dec 2008 at 7:59

GoogleCodeExporter commented 9 years ago
i am also facing the same problem. Can you be more specific about your 
solution? 
Thanks

Original comment by nishat.i...@gmail.com on 8 Dec 2008 at 12:56

GoogleCodeExporter commented 9 years ago
I'm attaching a patch which should describe the changes I made to overcome this 
problem.

Original comment by martin.j...@gmail.com on 9 Dec 2008 at 12:04

Attachments: