Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 500498 - x11-misc/netwmpager-2.05 stable request
Summary: x11-misc/netwmpager-2.05 stable request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Keywording and Stabilization (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard: Was: x11-misc/netwmpager-2.04 - ld: m...
Keywords: PATCH, STABLEREQ
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2014-02-06 10:24 UTC by Dmitry Vylegzhanin
Modified: 2015-11-03 16:19 UTC (History)
1 user (show)

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


Attachments
emerge --info output (emerge-info.txt,4.57 KB, text/plain)
2014-02-06 10:24 UTC, Dmitry Vylegzhanin
Details
netwmpager-2.04-underlinking.patch (netwmpager-2.04-underlinking.patch,792 bytes, patch)
2014-02-15 12:41 UTC, Ted Tanberry
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Vylegzhanin 2014-02-06 10:24:03 UTC
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'
Comment 1 Ted Tanberry 2014-02-15 12:40:47 UTC
--- 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 () {
Comment 2 Ted Tanberry 2014-02-15 12:41:27 UTC
Created attachment 370474 [details, diff]
netwmpager-2.04-underlinking.patch
Comment 3 Kobboi 2015-06-05 06:09:10 UTC
Running into similar issue with supertuxkart-0.8.1
Comment 4 Ivan Matrehin 2015-10-19 11:54:28 UTC
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
Comment 5 Pacho Ramos gentoo-dev 2015-10-23 19:00:10 UTC
[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
Comment 6 Agostino Sarubbo gentoo-dev 2015-10-27 12:18:39 UTC
amd64 stable
Comment 7 Agostino Sarubbo gentoo-dev 2015-11-03 16:19:26 UTC
x86 stable. Closing.