Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254998 - [kde-testing] media-video/kplayer-0.7-r1 link failure
Summary: [kde-testing] media-video/kplayer-0.7-r1 link failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 258376 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-15 02:08 UTC by Matt Whitlock
Modified: 2009-02-11 20:33 UTC (History)
2 users (show)

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


Attachments
Updated ebuild (kplayer-0.7-r2.ebuild,855 bytes, text/plain)
2009-01-31 22:18 UTC, Marcel Hasler
Details
The patch (goes into the 'files' dir) (kplayer-link-X11.patch,710 bytes, patch)
2009-01-31 22:19 UTC, Marcel Hasler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Whitlock 2009-01-15 02:08:10 UTC
Linking CXX shared module ../lib/libkplayerpart.so                                                                      
[ 68%] Built target kplayer                                                                                             
CMakeFiles/kplayerpart.dir/x11.o: In function `KPlayerX11GetKeyboardMouseState(unsigned int)':                          
x11.cpp:(.text+0x43): undefined reference to `XQueryPointer'                                                            
CMakeFiles/kplayerpart.dir/x11.o: In function `KPlayerX11UnmapWindow(unsigned int)':                                    
x11.cpp:(.text+0xde): undefined reference to `XUnmapWindow'
CMakeFiles/kplayerpart.dir/x11.o: In function `KPlayerX11MapWindow(unsigned int)':
x11.cpp:(.text+0xfe): undefined reference to `XMapWindow'
CMakeFiles/kplayerpart.dir/x11.o: In function `KPlayerX11SetInputFocus(unsigned int)':
x11.cpp:(.text+0x13a): undefined reference to `XSetInputFocus'
CMakeFiles/kplayerpart.dir/x11.o: In function `KPlayerProcessX11Event(_XEvent*)':
x11.cpp:(.text+0x309): undefined reference to `XGetAtomName'
x11.cpp:(.text+0x330): undefined reference to `XFree'
CMakeFiles/kplayerpart.dir/x11.o: In function `KPlayerX11UnmapWindow(unsigned int)':
x11.cpp:(.text+0xec): undefined reference to `XFlush'
CMakeFiles/kplayerpart.dir/x11.o: In function `KPlayerX11MapWindow(unsigned int)':
x11.cpp:(.text+0x10c): undefined reference to `XFlush'
CMakeFiles/kplayerpart.dir/x11.o: In function `KPlayerX11SetInputFocus(unsigned int)':
x11.cpp:(.text+0x155): undefined reference to `XFlush'
collect2: ld returned 1 exit status
make[2]: *** [lib/libkplayerpart.so] Error 1
make[1]: *** [kplayer/CMakeFiles/kplayerpart.dir/all] Error 2
make: *** [all] Error 2
Comment 1 Marcel Hasler 2009-01-31 13:59:02 UTC
Same here.
I'm on KDE 4.2.0, AMD64, in case that matters.

Output of emerge --info:

Portage 2.1.6.7 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.28-gentoo x86_64)                                                                                                   
=================================================================                                       
System uname: Linux-2.6.28-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7250_@_2.00GHz-with-glibc2.2.5     
Timestamp of tree: Fri, 30 Jan 2009 23:00:02 +0000                                                      
app-shells/bash:     3.2_p39                                                                            
dev-java/java-config: 1.3.7-r1, 2.1.6-r1                                                                
dev-lang/python:     2.4.4-r13, 2.5.2-r7                                                                
dev-util/cmake:      2.6.2-r1                                                                           
sys-apps/baselayout: 1.12.11.1                                                                          
sys-apps/sandbox:    1.2.18.1-r2                                                                        
sys-devel/autoconf:  2.13, 2.63                                                                         
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2                                                    
sys-devel/binutils:  2.18-r3                                                                            
sys-devel/gcc-config: 1.4.0-r4                                                                          
sys-devel/libtool:   2.2.6a                                                                             
virtual/os-headers:  2.6.27-r2                                                                          
ACCEPT_KEYWORDS="amd64"                                                                                 
CBUILD="x86_64-pc-linux-gnu"                                                                            
CFLAGS="-march=core2 -O2 -pipe"                                                                         
CHOST="x86_64-pc-linux-gnu"                                                                             
CONFIG_PROTECT="/etc /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config /var/lib/hsqldb"                                                                                        
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"                               
CXXFLAGS="-march=core2 -O2 -pipe"                                                                       
DISTDIR="/usr/portage/distfiles"                                                                        
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"                                                                                                  
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://mirror.netcologne.de/gentoo/ "               
LANG="de_DE.utf8"                                                                                       
LC_ALL="de_DE.utf8"                                                                                     
LDFLAGS="-Wl,-O1"                                                                                       
LINGUAS="de en en_US"                                                                                   
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/wschlich-testing /usr/portage/local/layman/kde-testing /usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 audiofile berkdb bluetooth branding bzip2 cairo cddb cdparanoia cdr cli cracklib crypt css cups custom-optimization dbus dell dri dts dvb dvd dvdr dvdread emboss encode esdfam ffmpeg flac fortran gdbm gif gnome gnome-keyring gpm gstreamer gtk hal htmlhandbook iconv ieee1394 isdnlog joystick jpeg kde kdeprefix lame laptop ldap libnotify mad matroska midi mikmod mmx mng mp3 mpegmudflap multilib musepack nautilus ncurses networkmanager nls nptl nptlonly nsplugin offensive ogg openal openexr opengl openmp oss pam pcre pdf perl png ppds pppd python qt3support quicktime readline reflection samba scanner schroedinger sdl session sndfile spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd theora threads tiff timidity truetype unicode usb v4l v4l2 vcd videos vorbis wavpack wifi x264 xcomposite xinerama xml xorg xosd xscreensaver xshape xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_aliasauthn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_US" USERLAND="GNU" VIDEO_CARDS="vesa fbdev nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Marcel Hasler 2009-01-31 22:18:15 UTC
It looks like CMake doesn't automaticlly link the X11 libraries anymore with KDE 4.2. It used to work for me with KDE 4.1.
I've made a quick patch as a temporary workaround until a proper fix is available. It only adds X11_LIBRARIES to kplayer/CMakeLists.txt.
Comment 3 Marcel Hasler 2009-01-31 22:18:59 UTC
Created attachment 180473 [details]
Updated ebuild
Comment 4 Marcel Hasler 2009-01-31 22:19:39 UTC
Created attachment 180474 [details, diff]
The patch (goes into the 'files' dir)
Comment 5 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2009-02-11 19:21:27 UTC
*** Bug 258376 has been marked as a duplicate of this bug. ***
Comment 6 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2009-02-11 20:33:14 UTC
moved from overlay to CVS, thanks :)