Created attachment 369694 [details] emerge --info output Trying to install netwmpager on a new gentoo install on my note and it fails to link to libX11: The problem can be (dirty) fixed by adding -lX11 to linker options in Makefile -netwmpager: $(objs) - $(call cmd,ld,$(XFT_LIBS) -lm) +netwmpager: $(objs) + $(call cmd,ld,$(XFT_LIBS) -lm -lX11) build log: idea-m ~ # emerge netwmpager * IMPORTANT: 9 news items need reading for repository 'gentoo'. * Use eselect news to read news items. Calculating dependencies... done! >>> Verifying ebuild manifests >>> Emerging (1 of 1) x11-misc/netwmpager-2.04 * netwmpager-2.04.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking netwmpager-2.04.tar.bz2 to /var/tmp/portage/x11-misc/netwmpager-2.04/work >>> Source unpacked in /var/tmp/portage/x11-misc/netwmpager-2.04/work >>> Preparing source in /var/tmp/portage/x11-misc/netwmpager-2.04/work/netwmpager-2.04 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/x11-misc/netwmpager-2.04/work/netwmpager-2.04 ... checking for program i686-pc-linux-gnu-gcc... /usr/bin/i686-pc-linux-gnu-gcc checking for CC flag -std=gnu99 -pipe -Wall -Wshadow -Wcast-align -Wpointer-arith -Wundef -Wmissing-prototypes -Wredundant-decls... yes checking for CC flag -Wdeclaration-after-statement... yes checking for CC flag -Wold-style-definition... yes checking for CC flag -Wno-pointer-sign... yes checking if CC can generate dependency information... yes checking for program pkg-config... /usr/bin/pkg-config checking xft (pkg-config)... yes checking CFLAGS for xft... -I/usr/include/freetype2 checking LIBS for xft... -lXft updating config.mk Compiler Settings: CC: i686-pc-linux-gnu-gcc LD: i686-pc-linux-gnu-gcc CFLAGS: -O2 -march=core2 -pipe -std=gnu99 -pipe -Wall -Wshadow -Wcast-align -Wpointer-arith -Wundef -Wmissing-prototypes -Wredundant-decls -Wdeclaration-after-statement -Wold-style-definition -Wno-pointer-sign -MMD -MP -MF .dep-$@ -DDEBUG=0 LDFLAGS: -Wl,-O1 -Wl,--as-needed Installation Directories: bindir: /usr/bin datadir: /usr/share >>> Source configured. >>> Compiling source in /var/tmp/portage/x11-misc/netwmpager-2.04/work/netwmpager-2.04 ... make -j7 CC file.o CC main.o CC opt.o CC pager.o CC sconf.o CC x.o CC xmalloc.o main.c: In function 'loop': main.c:161:4: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration] LD netwmpager /usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../i686-pc-linux-gnu/bin/ld: main.o: undefined reference to symbol 'XPending' /usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../i686-pc-linux-gnu/bin/ld: note: 'XPending' 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: error: ld returned 1 exit status make: *** [netwmpager] Error 1 * ERROR: x11-misc/netwmpager-2.04::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=x11-misc/netwmpager-2.04::gentoo'`, * the complete build log and the output of `emerge -pqv '=x11-misc/netwmpager-2.04::gentoo'`. * The complete build log is located at '/var/tmp/portage/x11-misc/netwmpager-2.04/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-misc/netwmpager-2.04/temp/environment'. * Working directory: '/var/tmp/portage/x11-misc/netwmpager-2.04/work/netwmpager-2.04' * S: '/var/tmp/portage/x11-misc/netwmpager-2.04/work/netwmpager-2.04' >>> Failed to emerge x11-misc/netwmpager-2.04, Log file: >>> '/var/tmp/portage/x11-misc/netwmpager-2.04/temp/build.log' * Messages for package x11-misc/netwmpager-2.04: * ERROR: x11-misc/netwmpager-2.04::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=x11-misc/netwmpager-2.04::gentoo'`, * the complete build log and the output of `emerge -pqv '=x11-misc/netwmpager-2.04::gentoo'`. * The complete build log is located at '/var/tmp/portage/x11-misc/netwmpager-2.04/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-misc/netwmpager-2.04/temp/environment'. * Working directory: '/var/tmp/portage/x11-misc/netwmpager-2.04/work/netwmpager-2.04' * S: '/var/tmp/portage/x11-misc/netwmpager-2.04/work/netwmpager-2.04'
--- netwmpager-2.04.ebuild +++ netwmpager-2.04.ebuild @@ -2,9 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-misc/netwmpager/netwmpager-2.04.ebuild,v 1.4 2013/10/19 15:08:29 pacho Exp $ -EAPI=4 +EAPI=5 -inherit toolchain-funcs +inherit toolchain-funcs eutils DESCRIPTION="EWMH (NetWM) compatible pager. Works with Openbox and other EWMH compliant window managers." @@ -25,11 +25,14 @@ virtual/pkgconfig x11-proto/xproto" +src_prepare() { + epatch "${FILESDIR}/${P}-underlinking.patch" # fix libX11 underlinking #500498 +} + src_configure() { # econf doesn't work tc-export CC ./configure --prefix=/usr || die - } src_install () {
Created attachment 370474 [details, diff] netwmpager-2.04-underlinking.patch
Running into similar issue with supertuxkart-0.8.1
So, I have this bug too: >>> Source configured. >>> Compiling source in /var/tmp/portage/x11-misc/netwmpager-2.04/work/netwmpager-2.04 ... make -j2 CC file.o CC main.o main.c: In function 'loop': main.c:161:4: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration] usleep(50000); ^ CC opt.o CC pager.o CC sconf.o CC x.o CC xmalloc.o LD netwmpager /usr/lib/gcc/i686-pc-linux-gnu/4.8.5/../../../../i686-pc-linux-gnu/bin/ld: main.o: undefined reference to symbol 'XPending' /usr/lib/libX11.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:13: recipe for target 'netwmpager' failed make: *** [netwmpager] Error 1 [31;01m*[0m ERROR: x11-misc/netwmpager-2.04::gentoo failed (compile phase): [31;01m*[0m emake failed
[master 41af657] x11-misc/netwmpager: Version bump, also fixes bug #500498 by Dmitry Vylegzhanin and others. 2 files changed, 41 insertions(+) create mode 100644 x11-misc/netwmpager/netwmpager-2.05.ebuild
amd64 stable
x86 stable. Closing.