Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405337 - net-misc/pavuk-0.9.36_pre20120215 - ld: gui_main.o: undefined reference to symbol 'XUngrabServer'
Summary: net-misc/pavuk-0.9.36_pre20120215 - ld: gui_main.o: undefined reference to sy...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Richard Grenville
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2012-02-22 20:33 UTC by Attila Tóth
Modified: 2012-02-25 12:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pavuk-0.9.36_pre20120215-fix-underlinking.patch (pavuk-0.9.36_pre20120215-fix-underlinking.patch,409 bytes, patch)
2012-02-23 02:32 UTC, Richard Grenville
Details | Diff
pavuk-0.9.36_pre20120215.ebuild (pavuk-0.9.36_pre20120215.ebuild,2.79 KB, text/plain)
2012-02-23 02:33 UTC, Richard Grenville
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Tóth 2012-02-22 20:33:41 UTC
i686-pc-linux-gnu-gcc -std=gnu99 -DGETTEXT_DEFAULT_CATALOG_DIR="\"/usr/share/locale\"" -DDEFAULTRC="\"/etc/pavukrc\"" -O2 -march=i686 -mtune=pentium-m -pipe -O3 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers  -pthread -L/usr/lib -Wl,-O1 -Wl,--as-needed -o pavuk absio.o abstract.o ainterface.o authinfo.o base64.o bufio.o cleanup.o cmdparse.o condition.o config.o cookie.o css.o debugl.o decode.o digest_auth.o dinfo.o dirent-win32.o dlhash.o dlhash_tools.o dllist.o dns.o doc.o errcode.o file.o fnmatch.o form.o form_encode.o ftp.o gaccel.o gauthinfo.o gcinfo.o gkeys.o gopher.o gprop.o gtkmulticol.o gui_about.o gui_api.o gui_addurl.o gui_common.o gui_jscons.o gui_limits.o gui_main.o gui_scenario.o gui_sched.o gui_tools.o gui_tree.o hammer_mode.o html.o htmlparser.o htmltags.o http.o http_proxy.o iecache.o icons.o jsbind.o jstrans.o lfname.o log.o md5c.o md4c.o mime.o mimetype.o mode.o mopt.o mozcache.o mt.o myssl_nss.o myssl_openssl.o net.o net-win32.o nls.o nscache.o ntlm_auth.o pavuk.o port-win32.o re.o recurse.o remind.o robots.o schedule.o stats.o tag_pattern.o times.o tools.o tr.o uconfig.o uexit.o update_links.o url.o  -lz -lpcre -lXmu -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lcrypto -lssl -lm -lnsl
/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/ld: gui_main.o: undefined reference to symbol 'XUngrabServer'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/ld: note: 'XUngrabServer' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line
/usr/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [pavuk] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-misc/pavuk-0.9.36_pre20120215/work/pavuk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-misc/pavuk-0.9.36_pre20120215/work/pavuk'
make: *** [all] Error 2


Reproducible: Always




src/Makefile LIBS needs -lX11 as well for complete linking.
Comment 1 Richard Grenville 2012-02-23 02:32:17 UTC
Created attachment 302923 [details, diff]
pavuk-0.9.36_pre20120215-fix-underlinking.patch

Thanks for the report. Here's the patch to fix underlinking, tested with the gold linker. ebuild will be attached shortly.
Comment 2 Richard Grenville 2012-02-23 02:33:59 UTC
Created attachment 302925 [details]
pavuk-0.9.36_pre20120215.ebuild

Note this ebuild requires pavuk-0.9.36_pre20120215-fix-gtkmulticol-segfault.patch from: https://bugs.gentoo.org/show_bug.cgi?id=262504#c40
Comment 3 Pacho Ramos gentoo-dev 2012-02-25 12:31:21 UTC
+*pavuk-0.9.36_pre20120215-r1 (25 Feb 2012)
+
+  25 Feb 2012; Pacho Ramos <pacho@gentoo.org>
+  +files/pavuk-0.9.36_pre20120215-fix-gtkmulticol-segfault.patch,
+  +files/pavuk-0.9.36_pre20120215-fix-underlinking.patch,
+  +pavuk-0.9.36_pre20120215-r1.ebuild:
+  Fixes underlinking, bug #405337 by Attila Tóth; fixes a segfault in the GTK+2
+  interface on amd64, bug #262504#c40. Thanks to Richard Grenville for the
+  fixes.
+