Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 436232

Summary: www-client/qupzilla-1.3.5 - ../../bin/libQupZilla.so: error: undefined reference to 'XInternAtom'
Product: Gentoo Linux Reporter: Alec Moskvin <alecm>
Component: Current packagesAssignee: Qt Bug Alias <qt>
Status: RESOLVED FIXED    
Severity: normal CC: alecm
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 372079    
Attachments: build.log
Patch to link to libX11 explicitly

Description Alec Moskvin 2012-09-25 17:50:32 UTC
Qupzilla fails due to underlinking:

x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -Wl,--as-needed -Wl,--hash-style=gnu -o ../../bin/qupzilla ../../build/main.o    -L/usr/lib64/qt4 ../../bin/libQupZilla.so -lQtWebKit -lQtDBus -L/usr/lib64 -L/usr/lib64/qt4 -lQtXml -lQtScript -lQtSql -lQtGui -L/usr/X11R6/lib -lQtNetwork -lQtCore -lgthread-2.0 -lrt -lglib-2.0 -lpthread 
../../bin/libQupZilla.so: error: undefined reference to 'XInternAtom'
../../bin/libQupZilla.so: error: undefined reference to 'XGetWindowProperty'
../../bin/libQupZilla.so: error: undefined reference to 'XFree'
../../bin/libQupZilla.so: error: undefined reference to 'XChangeProperty'
collect2: ld returned 1 exit status
make[1]: *** [../../bin/qupzilla] Error 1


The patch was accepted upstream:
https://github.com/QupZilla/qupzilla/pull/587

Reproducible: Always

Steps to Reproduce:
1. # binutils-config --linker ld.gold
2. # emerge www-client/qupzilla
Comment 1 Alec Moskvin 2012-09-25 17:50:57 UTC
Created attachment 324984 [details]
build.log
Comment 2 Alec Moskvin 2012-09-25 17:52:10 UTC
Created attachment 324986 [details, diff]
Patch to link to libX11 explicitly
Comment 3 Ben de Groot (RETIRED) gentoo-dev 2012-10-03 07:21:59 UTC
Committed. Thanks for the patch!