Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
07-26-2006, 01:41 AM
#1
Member
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944
Rep:
Error making gtk+
I've tried to upgrade gtk+ a few times before, but always ran into errors with dependencies and gave up. Now I finally got further than before and successfully installed all the dependencies and configured gtk, but when I go to make it it exits with the following:
Code:
...
./.libs/libgtk-x11-2.0.so: undefined reference to `g_hash_table_unref'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_add_application'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_remove_item'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_object_ref_sink'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_mime_type'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_move_item'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_mkdir_with_parents'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_slice_free1'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_mapped_file_get_contents'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_object_is_floating'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_groups'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_app_info'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_added'
collect2: ld returned 1 exit status
make[4]: *** [gtk-query-immodules-2.0] Error 1
make[4]: Leaving directory `/usr/local/src/gtk+-2.10.1/gtk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/gtk+-2.10.1/gtk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/gtk+-2.10.1/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/gtk+-2.10.1'
make: *** [all] Error 2
I'd really like to get this sorted out. Ideas?
07-26-2006, 07:14 PM
#2
Senior Member
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914
Rep:
You cut your error output short. Might be nice to see what's before that... What version of "dependencies" did you install too? If you can list what versions of pango/atk/glib2/cairo along with possibly uploading your config.log somewhere, it'd be helpfull.
07-28-2006, 03:42 PM
#3
Member
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944
Original Poster
Rep:
gtk+ trying to install: 2.10.1
pango: 1.12.3
atk: 1.9.1
glib2: 2.6.6
cairo: 1.2.0
More error output, that still doesn't seem to say anything useful:
Code:
grep -E -e "^[^_].*" ".libs/libgtk-x11-2.0.exp" > ".libs/libgtk-x11-2.0.expT"
mv -f ".libs/libgtk-x11-2.0.expT" ".libs/libgtk-x11-2.0.exp"
echo "{ global:" > .libs/libgtk-x11-2.0.ver
cat .libs/libgtk-x11-2.0.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libgtk-x11-2.0.ver
echo "local: *; };" >> .libs/libgtk-x11-2.0.ver
gcc -shared .libs/fnmatch.o .libs/gtkaboutdialog.o .libs/gtkaccelgroup.o .libs/gtkaccellabel.o .libs/gtkaccelmap.o .libs/gtkaccessible.o .libs/gtkaction.o .libs/gtkactiongroup.o .libs/gtkadjustment.o .libs/gtkalignment.o .libs/gtkarrow.o .libs/gtkaspectframe.o .libs/gtkassistant.o .libs/gtkbbox.o .libs/gtkbin.o .libs/gtkbindings.o .libs/gtkbox.o .libs/gtkbutton.o .libs/gtkcalendar.o .libs/gtkcelleditable.o .libs/gtkcelllayout.o .libs/gtkcellrenderer.o .libs/gtkcellrendereraccel.o .libs/gtkcellrenderercombo.o .libs/gtkcellrendererpixbuf.o .libs/gtkcellrendererprogress.o .libs/gtkcellrendererspin.o .libs/gtkcellrenderertext.o .libs/gtkcellrenderertoggle.o .libs/gtkcellview.o .libs/gtkcheckbutton.o .libs/gtkcheckmenuitem.o .libs/gtkclist.o .libs/gtkcolorbutton.o .libs/gtkcolorsel.o .libs/gtkcolorseldialog.o .libs/gtkcombo.o .libs/gtkcombobox.o .libs/gtkcomboboxentry.o .libs/gtkcontainer.o .libs/gtkctree.o .libs/gtkcurve.o .libs/gtkdialog.o .libs/gtkdrawingarea.o .libs/gtkeditable.o .libs/gtkentry.o .libs/gtkentrycompletion.o .libs/gtkeventbox.o .libs/gtkexpander.o .libs/gtkfilechooser.o .libs/gtkfilechooserbutton.o .libs/gtkfilechooserdefault.o .libs/gtkfilechooserdialog.o .libs/gtkfilechooserembed.o .libs/gtkfilechooserentry.o .libs/gtkfilechoosersettings.o .libs/gtkfilechooserutils.o .libs/gtkfilechooserwidget.o .libs/gtkfilefilter.o .libs/gtkfilesel.o .libs/gtkfilesystem.o .libs/gtkfilesystemmodel.o .libs/gtkfixed.o .libs/gtkfontbutton.o .libs/gtkfontsel.o .libs/gtkframe.o .libs/gtkgamma.o .libs/gtkgc.o .libs/gtkhandlebox.o .libs/gtkhbbox.o .libs/gtkhbox.o .libs/gtkhpaned.o .libs/gtkhruler.o .libs/gtkhscale.o .libs/gtkhscrollbar.o .libs/gtkhseparator.o .libs/gtkhsv.o .libs/gtkiconcache.o .libs/gtkiconfactory.o .libs/gtkicontheme.o .libs/gtkiconview.o .libs/gtkimage.o .libs/gtkimagemenuitem.o .libs/gtkimcontext.o .libs/gtkimcontextsimple.o .libs/gtkimmodule.o .libs/gtkimmulticontext.o .libs/gtkinputdialog.o .libs/gtkinvisible.o .libs/gtkitem.o .libs/gtkitemfactory.o .libs/gtkkeyhash.o .libs/gtklabel.o .libs/gtklayout.o .libs/gtklinkbutton.o .libs/gtklist.o .libs/gtklistitem.o .libs/gtkliststore.o .libs/gtkmain.o .libs/gtkmarshal.o .libs/gtkmarshalers.o .libs/gtkmenu.o .libs/gtkmenubar.o .libs/gtkmenuitem.o .libs/gtkmenushell.o .libs/gtkmenutoolbutton.o .libs/gtkmessagedialog.o .libs/gtkmisc.o .libs/gtkmnemonichash.o .libs/gtkmodules.o .libs/gtknotebook.o .libs/gtkobject.o .libs/gtkoldeditable.o .libs/gtkoptionmenu.o .libs/gtkpagesetup.o .libs/gtkpaned.o .libs/gtkpapersize.o .libs/gtkpathbar.o .libs/gtkpixmap.o .libs/gtkplug.o .libs/gtkpreview.o .libs/gtkprintcontext.o .libs/gtkprintoperation.o .libs/gtkprintoperationpreview.o .libs/gtkprintsettings.o .libs/gtkprintutils.o .libs/gtkprogress.o .libs/gtkprogressbar.o .libs/gtkradioaction.o .libs/gtkradiobutton.o .libs/gtkradiomenuitem.o .libs/gtkradiotoolbutton.o .libs/gtkrange.o .libs/gtkrbtree.o .libs/gtkrc.o .libs/gtkrecentchooserdefault.o .libs/gtkrecentchooserdialog.o .libs/gtkrecentchoosermenu.o .libs/gtkrecentchooserwidget.o .libs/gtkrecentchooserutils.o .libs/gtkrecentchooser.o .libs/gtkrecentfilter.o .libs/gtkrecentmanager.o .libs/gtkruler.o .libs/gtkscale.o .libs/gtkscrollbar.o .libs/gtkscrolledwindow.o .libs/gtkselection.o .libs/gtkseparator.o .libs/gtkseparatormenuitem.o .libs/gtkseparatortoolitem.o .libs/gtksequence.o .libs/gtksettings.o .libs/gtksignal.o .libs/gtksizegroup.o .libs/gtksocket.o .libs/gtkspinbutton.o .libs/gtkstatusbar.o .libs/gtkstatusicon.o .libs/gtkstock.o .libs/gtkstyle.o .libs/gtktable.o .libs/gtktearoffmenuitem.o .libs/gtktext.o .libs/gtktextbtree.o .libs/gtktextbuffer.o .libs/gtktextbufferrichtext.o .libs/gtktextbufferserialize.o .libs/gtktextchild.o .libs/gtktextdisplay.o .libs/gtktextiter.o .libs/gtktextlayout.o .libs/gtktextmark.o .libs/gtktextsegment.o .libs/gtktexttag.o .libs/gtktexttagtable.o .libs/gtktexttypes.o .libs/gtktextutil.o .libs/gtktextview.o .libs/gtkthemes.o .libs/gtktipsquery.o .libs/gtktoggleaction.o .libs/gtktogglebutton.o .libs/gtktoggletoolbutton.o .libs/gtktoolbar.o .libs/gtktoolbutton.o .libs/gtktoolitem.o .libs/gtktooltips.o .libs/gtktree.o .libs/gtktreedatalist.o .libs/gtktreednd.o .libs/gtktreeitem.o .libs/gtktreemodel.o .libs/gtktreemodelfilter.o .libs/gtktreemodelsort.o .libs/gtktreeselection.o .libs/gtktreesortable.o .libs/gtktreestore.o .libs/gtktreeview.o .libs/gtktreeviewcolumn.o .libs/gtktypebuiltins.o .libs/gtktypeutils.o .libs/gtkuimanager.o .libs/gtkvbbox.o .libs/gtkvbox.o .libs/gtkviewport.o .libs/gtkvpaned.o .libs/gtkvruler.o .libs/gtkvscale.o .libs/gtkvscrollbar.o .libs/gtkvseparator.o .libs/gtkwidget.o .libs/gtkwindow-decorate.o .libs/gtkwindow.o .libs/gtkclipboard.o .libs/gtkdnd.o .libs/gtkfilesystemunix.o .libs/gtkpagesetupunixdialog.o .libs/gtkprinter.o .libs/gtkprinteroption.o .libs/gtkprinteroptionset.o .libs/gtkprinteroptionwidget.o .libs/gtkprintjob.o .libs/gtkprintoperation-unix.o .libs/gtkprintunixdialog.o .libs/gtkprintbackend.o .libs/gtkplug-x11.o .libs/gtksocket-x11.o .libs/gtkxembed.o .libs/gtktrayicon-x11.o -Wl,--whole-archive xdgmime/.libs/libxdgmime.a -Wl,--no-whole-archive -Wl,--rpath -Wl,/usr/local/src/gtk+-2.10.1/gdk-pixbuf/.libs -Wl,--rpath -Wl,/usr/local/src/gtk+-2.10.1/gdk/.libs ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so -L/usr/local/lib ../gdk/.libs/libgdk-x11-2.0.so -L/usr/X11R6/lib -L/usr/lib -L/usr/local/src/gtk+-2.10.1/gdk-pixbuf/.libs -lXrender -lX11 /usr/local/lib/libpangocairo-1.0.so /usr/local/lib/libpango-1.0.so /usr/lib/libatk-1.0.so /usr/local/lib/libgobject-2.0.so /usr/local/lib/libgmodule-2.0.so -ldl /usr/local/lib/libglib-2.0.so /usr/local/lib/libcairo.so -lm -Wl,-soname -Wl,libgtk-x11-2.0.so.0 -Wl,-version-script -Wl,.libs/libgtk-x11-2.0.ver -o .libs/libgtk-x11-2.0.so.0.1000.1
(cd .libs && rm -f libgtk-x11-2.0.so.0 && ln -s libgtk-x11-2.0.so.0.1000.1 libgtk-x11-2.0.so.0)
(cd .libs && rm -f libgtk-x11-2.0.so && ln -s libgtk-x11-2.0.so.0.1000.1 libgtk-x11-2.0.so)
creating libgtk-x11-2.0.la
(cd .libs && rm -f libgtk-x11-2.0.la && ln -s ../libgtk-x11-2.0.la libgtk-x11-2.0.la)
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/usr/local/lib\" -DGTK_DATADIR=\"/usr/local/share\" -DGTK_DATA_PREFIX=\"/usr/local\" -DGTK_SYSCONFDIR=\"/usr/local/etc\" -DGTK_VERSION=\"2.10.1\" -DGTK_BINARY_VERSION=\"2.10.0\" -DGTK_HOST=\"i686-pc-linux-gnu\" -DGTK_COMPILATION -DGTK_PRINT_BACKENDS=\"file,cups\" -DGTK_PRINT_PREVIEW_COMMAND=\""evince %f"\" -I../gtk -I.. -I../gdk -I../gdk -I../gdk-pixbuf -I../gdk-pixbuf -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED -DG_DISABLE_CAST_CHECKS -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include/cairo -I/usr/include/atk-1.0 -I/usr/X11R6/include -DG_DISABLE_DEPRECATED -g -O2 -Wall -MT queryimmodules.o -MD -MP -MF ".deps/queryimmodules.Tpo" \
-c -o queryimmodules.o `test -f 'queryimmodules.c' || echo './'`queryimmodules.c; \
then mv -f ".deps/queryimmodules.Tpo" ".deps/queryimmodules.Po"; \
else rm -f ".deps/queryimmodules.Tpo"; exit 1; \
fi
queryimmodules.c: In function `query_module':
queryimmodules.c:116: warning: dereferencing type-punned pointer will break strict-aliasing rules
queryimmodules.c:117: warning: dereferencing type-punned pointer will break strict-aliasing rules
queryimmodules.c:118: warning: dereferencing type-punned pointer will break strict-aliasing rules
queryimmodules.c:119: warning: dereferencing type-punned pointer will break strict-aliasing rules
/bin/sh ../libtool --mode=link gcc -DG_DISABLE_DEPRECATED -g -O2 -Wall -o gtk-query-immodules-2.0 queryimmodules.o libgtk-x11-2.0.la ../gdk-pixbuf/libgdk_pixbuf-2.0.la ../gdk/libgdk-x11-2.0.la
gcc -DG_DISABLE_DEPRECATED -g -O2 -Wall -o .libs/gtk-query-immodules-2.0 queryimmodules.o ./.libs/libgtk-x11-2.0.so -L/usr/local/lib /usr/local/src/gtk+-2.10.1/gdk/.libs/libgdk-x11-2.0.so -L/usr/X11R6/lib /usr/lib/libatk-1.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so ../gdk/.libs/libgdk-x11-2.0.so -lXrandr -lXinerama /usr/local/lib/libpangocairo-1.0.so /usr/local/lib/libpangoft2-1.0.so /usr/local/lib/libpango-1.0.so /usr/local/lib/libcairo.so -lSM -lICE -lpng12 /usr/X11R6/lib/libfontconfig.so /usr/lib/libfreetype.so -lz /usr/lib/libexpat.so -lXcursor -lXrender -lXext -lXfixes -lX11 /usr/local/src/gtk+-2.10.1/gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so /usr/local/lib/libgmodule-2.0.so -ldl /usr/local/lib/libgobject-2.0.so /usr/local/lib/libglib-2.0.so -lm
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_title'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_is_private'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_set_description'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_size'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_free'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_file_set_contents'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_object_force_floating'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_type_register_static_simple'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_utf8_collate_key_for_filename'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_intern_static_string'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_load_from_file'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_visited'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_modified'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_initially_unowned_get_type'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_date_set_time_t'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_get_host_name'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_key_file_set_double'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_set_mime_type'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_intern_string'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_set_is_private'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_has_item'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_key_file_get_double'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_object_compat_control'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_applications'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_hash_table_get_type'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_uris'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_slice_free_chain_with_offset'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_slice_alloc'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_new'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_description'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_hash_table_ref'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_set_title'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_param_spec_ref_sink'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_mapped_file_free'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_mapped_file_new'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_to_file'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_slice_alloc0'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_add_group'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_hash_table_unref'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_add_application'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_remove_item'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_object_ref_sink'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_mime_type'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_move_item'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_mkdir_with_parents'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_slice_free1'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_mapped_file_get_contents'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_object_is_floating'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_groups'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_app_info'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_added'
collect2: ld returned 1 exit status
make[4]: *** [gtk-query-immodules-2.0] Error 1
make[4]: Leaving directory `/usr/local/src/gtk+-2.10.1/gtk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/gtk+-2.10.1/gtk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/gtk+-2.10.1/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/gtk+-2.10.1'
make: *** [all] Error 2
I never feel comfortable posting things with all the details of my system, but if there are specific parts of the config.log that would help, I can post those.
07-31-2006, 08:46 PM
#4
Member
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944
Original Poster
Rep:
Sorry for the bump, but can anyone help with this, or at least give some things to try? I kind of need gtk working to run most of my applications, and I'd like to actually finish the upgrade rather than downgrading everything.
08-01-2006, 02:49 AM
#5
Member
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Rep:
I would guess you need to upgrade to a more recent glib than 2.6.6 -- all those undefined references look like glib functions that perhaps didn't exist with that version.
To check, does your version of ghash.h have the g_hash_table_unref function defined, for example?
Last edited by ciotog; 08-01-2006 at 02:51 AM .
08-02-2006, 12:16 AM
#6
Member
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944
Original Poster
Rep:
I wound up being able to fix the problem by reinstalling all the dependencies and gtk+ with a prefix of /usr, rather than the default of /usr/local. I remembered from something in the past I was doing that Slackware puts those libraries in /usr, and I thought it was worth a try. I upgraded glib as well.
All times are GMT -5. The time now is 03:21 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News