Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 500692 - media-gfx/xzgv-0.9.1 - ld: main.o: undefined reference to symbol 'XScreenNumberOfScreen'
Summary: media-gfx/xzgv-0.9.1 - ld: main.o: undefined reference to symbol 'XScreenNumb...
Status: RESOLVED DUPLICATE of bug 369389
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-08 13:53 UTC by Bruno Ricci
Modified: 2014-02-15 12:52 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Ricci 2014-02-08 13:53:13 UTC
media-gfx/xzgv-0.9.1 fails to build

Reproducible: Always
Steps to Reproduce:
1. emerge =media-gfx/xzgv-0.9.1
Actual Results:  emerge fails

Expected Results:  emerge doesn't fails

emerge --info =media-gfx/xzgv-0.9.1 :

Portage 2.2.7 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.10.25-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.10.25-gentoo-x86_64-Intel-R-_Core-TM-_i5-2540M_CPU_@_2.60GHz-with-gentoo-2.2
KiB Mem:     3928436 total,   2112000 free
KiB Swap:     524284 total,    524284 free
Timestamp of tree: Sat, 08 Feb 2014 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="X a52 aac acl acpi alsa amd64 avx bash-completion berkdb branding bzip2 cairo cdda cdr cli cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam fftw firefox flac fortran gdbm gif gnuplot gpm gtk iconv ipv6 jpeg jpeg2k latex lcms ldap libnotify lua lzma mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit portaudio ppds qt3support readline sdl session spell sse sse2 sse4_1 ssl ssse3 startup-notification svg systemd tcpd threads tiff truetype udev udisks unicode upower usb v4l vorbis wifi wxwidgets x264 xcb xinerama xml xv xvid zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon ptp2 adc65 agfa_cl20 aox ax203 barbie casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a jl2005c kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 pentax polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh ricoh_g3 samsung sierra sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z topfield toshiba_pdrm11 tp6801" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

Build log : 

[32;01m * [39;49;00mPackage:    media-gfx/xzgv-0.9.1
[32;01m * [39;49;00mRepository: gentoo
[32;01m * [39;49;00mMaintainer: graphics@gentoo.org
[32;01m * [39;49;00mUSE:        abi_x86_64 amd64 elibc_glibc kernel_linux multilib userland_GNU
[32;01m * [39;49;00mFEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking xzgv-0.9.1.tar.gz to /var/tmp/portage/media-gfx/xzgv-0.9.1/work
>>> Source unpacked in /var/tmp/portage/media-gfx/xzgv-0.9.1/work
>>> Preparing source in /var/tmp/portage/media-gfx/xzgv-0.9.1/work/xzgv-0.9.1 ...
 [32;01m*[0m Applying xzgv-0.9-asneeded-and-cflags.patch ...
[A[104C [34;01m[ [32;01mok[34;01m ][0m
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-gfx/xzgv-0.9.1/work/xzgv-0.9.1 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/media-gfx/xzgv-0.9.1/work/xzgv-0.9.1 ...
make -j4 CC=x86_64-pc-linux-gnu-gcc 
cd src && make xzgv
cd doc && make xzgv.1
make[1]: Entering directory `/var/tmp/portage/media-gfx/xzgv-0.9.1/work/xzgv-0.9.1/src'
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wall `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0`   -c -o main.o main.c
make[1]: Entering directory `/var/tmp/portage/media-gfx/xzgv-0.9.1/work/xzgv-0.9.1/doc'
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wall `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0`   -c -o filedetails.o filedetails.c
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wall `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0`   -c -o gotodir.o gotodir.c
Making man page from xzgv.texi...
LANG= gawk -f makeman.awk <xzgv.texi >xzgv.1
make[1]: Leaving directory `/var/tmp/portage/media-gfx/xzgv-0.9.1/work/xzgv-0.9.1/doc'
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wall `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0`   -c -o updatetn.o updatetn.c
filedetails.c: In function ‘cb_file_details’:
filedetails.c:258:12: warning: variable ‘details_win’ set but not used [-Wunused-but-set-variable]
filedetails.c: In function ‘make_details_win’:
filedetails.c:88:8: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
filedetails.c:89:8: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
filedetails.c:98:10: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
updatetn.c: In function ‘cb_update_tn_recursive_confirmed’:
updatetn.c:499:8: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result]
updatetn.c:509:6: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result]
gotodir.c: In function ‘cb_goto_dir’:
updatetn.c: In function ‘recursive_update_internal’:
updatetn.c:401:10: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result]
updatetn.c:416:8: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result]
updatetn.c:451:6: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result]
gotodir.c:66:7: warning: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result [-Wunused-result]
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wall `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0`   -c -o confirm.o confirm.c
main.c: In function ‘create_clist_from_dir’:
main.c:2926:5: warning: variable ‘isdir’ set but not used [-Wunused-but-set-variable]
main.c: In function ‘main’:
main.c:4158:8: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result]
main.c: In function ‘cb_selection’:
main.c:3409:8: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result]
main.c: In function ‘set_title’:
main.c:3027:9: warning: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result [-Wunused-result]
main.c: In function ‘create_clist_from_dir’:
main.c:2942:8: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result]
main.c:2961:7: warning: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result [-Wunused-result]
main.c: In function ‘read_xvpic’:
main.c:2501:6: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wall `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0`   -c -o help.o help.c
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wall `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0`   -c -o copymove.o copymove.c
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wall `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0`   -c -o rename.o rename.c
copymove.c: In function ‘cb_copymove_file_or_tagged_files’:
copymove.c:438:7: warning: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result [-Wunused-result]
copymove.c: In function ‘movefile’:
copymove.c:177:8: warning: ignoring return value of ‘chown’, declared with attribute warn_unused_result [-Wunused-result]
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wall `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0`   -c -o resizepic.o resizepic.c
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wall `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0`   -c -o dither.o dither.c
awk -f mkopts.awk <options.src
awk -f mkopts.awk <options.src
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wall `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0`   -c -o misc.o misc.c
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wall `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0`   -c -o getopt.o getopt.c
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wall `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0`   -c -o getopt1.o getopt1.c
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wall `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0`   -c -o backend.o backend.c
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wall `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0`   -c -o rcfile.o rcfile.c
backend.c: In function ‘backend_render_pixmap_for_image’:
backend.c:291:3: warning: ‘gdk_pixbuf_unref’ is deprecated (declared at /usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h:243): Use 'g_object_unref' instead [-Wdeprecated-declarations]
backend.c: In function ‘backend_image_destroy’:
backend.c:327:3: warning: ‘gdk_pixbuf_unref’ is deprecated (declared at /usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h:243): Use 'g_object_unref' instead [-Wdeprecated-declarations]
backend.c: In function ‘backend_create_pixmap_from_xpm_data’:
backend.c:407:1: warning: ‘gdk_pixbuf_unref’ is deprecated (declared at /usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h:243): Use 'g_object_unref' instead [-Wdeprecated-declarations]
x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed main.o filedetails.o gotodir.o updatetn.o confirm.o help.o copymove.o rename.o resizepic.o dither.o rcfile.o misc.o getopt.o getopt1.o backend.o `pkg-config --libs gtk+-2.0` `pkg-config --libs gdk-pixbuf-2.0` -o xzgv
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: main.o: undefined reference to symbol 'XScreenNumberOfScreen'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'XScreenNumberOfScreen' is defined in DSO /usr/lib64/libX11.so.6 so try adding it to the linker command line
/usr/lib64/libX11.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[1]: *** [xzgv] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-gfx/xzgv-0.9.1/work/xzgv-0.9.1/src'
make: *** [xzgv] Error 2
emake failed
 [31;01m*[0m ERROR: media-gfx/xzgv-0.9.1::gentoo failed (compile phase):
 [31;01m*[0m   (no error message)
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m     ebuild.sh, line  93:  Called src_compile
 [31;01m*[0m   environment, line 1839:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m       emake CC=$(tc-getCC) || die;
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=media-gfx/xzgv-0.9.1::gentoo'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=media-gfx/xzgv-0.9.1::gentoo'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/media-gfx/xzgv-0.9.1/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/media-gfx/xzgv-0.9.1/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/media-gfx/xzgv-0.9.1/work/xzgv-0.9.1'
 [31;01m*[0m S: '/var/tmp/portage/media-gfx/xzgv-0.9.1/work/xzgv-0.9.1'
Comment 1 Ted Tanberry 2014-02-15 12:10:37 UTC
--- files/xzgv-0.9-asneeded-and-cflags.patch
+++ files/xzgv-0.9-asneeded-and-cflags.patch
@@ -16,9 +16,10 @@
 @@ -10,7 +10,7 @@
  include ../config.mk
  
- CFLAGS+=`pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0`
+-CFLAGS+=`pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0`
 -LDFLAGS+=`pkg-config --libs gtk+-2.0` `pkg-config --libs gdk-pixbuf-2.0`
-+LIBS=`pkg-config --libs gtk+-2.0` `pkg-config --libs gdk-pixbuf-2.0`
++CFLAGS+=`pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0` `pkg-config --cflags x11`
++LIBS=`pkg-config --libs gtk+-2.0` `pkg-config --libs gdk-pixbuf-2.0` `pkg-config --libs x11` -lm
  
  all: xzgv
Comment 2 Ted Tanberry 2014-02-15 12:11:02 UTC
Patched the patch. -lm was also required.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2014-02-15 12:52:25 UTC

*** This bug has been marked as a duplicate of bug 369389 ***