Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659900 - >=games-emulation/snes9x-1.56: fails to link with USE=-png
Summary: >=games-emulation/snes9x-1.56: fails to link with USE=-png
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-02 22:11 UTC by Christopher Head
Modified: 2019-01-04 17:40 UTC (History)
1 user (show)

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


Attachments
The full build log (build.log,249.84 KB, text/plain)
2018-07-02 22:15 UTC, Christopher Head
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Head 2018-07-02 22:11:56 UTC
At the end of building snes9x-1.56, this happens:

x86_64-pc-linux-gnu-g++ -fno-exceptions -fno-rtti -O2 -pipe -march=native -fomit-frame-pointer -Wall -W -Wno-unused-parameter -fomit-frame-pointer -DUSE_OPENGL -I/usr/include/libdrm -DUSE_JOYSTICK -DUSE_XV -DUSE_ALSA -I/usr/include/minizip -DSYSTEM_ZIP -DUSE_HQ2X -DUSE_XBRZ -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2   -D_REENTRANT -I/usr/include/SDL2   -I/usr/include/alsa  -DPIXEL_FORMAT=RGB565 -DCORRECT_VRAM_READS -DSDD1_DECOMP -DJMA_SUPPORT -DZLIB -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DPTR_NOT_INT -DRIGHTSHIFT_int8_IS_SAR -DRIGHTSHIFT_int16_IS_SAR -DRIGHTSHIFT_int32_IS_SAR -DRIGHTSHIFT_int64_IS_SAR -DRIGHTSHIFT_IS_SAR -DUNZIP_SUPPORT -DSNES9X_GTK -DSPC700_C -I. -I..   -Wl,-O1 -Wl,--as-needed -Wl,-z,noexecstack -o snes9x-gtk ../filter/snes9x_gtk-2xsai.o ../filter/snes9x_gtk-epx.o src/snes9x_gtk-filter_epx_unsafe.o src/snes9x_gtk-gtk_binding.o src/snes9x_gtk-gtk_cheat.o src/snes9x_gtk-gtk_config.o src/snes9x_gtk-gtk_control.o src/snes9x_gtk-gtk_display.o src/snes9x_gtk-gtk_display_driver_gtk.o src/snes9x_gtk-gtk_file.o src/snes9x_gtk-gtk_snes9x_ui.o src/snes9x_gtk-gtk_builder_window.o src/snes9x_gtk-gtk_preferences.o src/snes9x_gtk-gtk_s9x.o src/snes9x_gtk-gtk_s9xwindow.o src/snes9x_gtk-gtk_sound.o src/snes9x_gtk-gtk_splash.o src/snes_ntsc.o ../filter/snes9x_gtk-hq2x.o src/snes9x_gtk-filter_xbrz.o ../filter/snes9x_gtk-xbrz.o    src/snes9x_gtk-gtk_sound_driver_sdl.o src/snes9x_gtk-gtk_sound_driver_alsa.o  ../snes9x_gtk-fxinst.o ../snes9x_gtk-fxemu.o ../snes9x_gtk-fxdbg.o  ../snes9x_gtk-c4.o ../snes9x_gtk-c4emu.o ../apu/snes9x_gtk-apu.o ../apu/bapu/dsp/snes9x_gtk-sdsp.o ../apu/bapu/dsp/snes9x_gtk-SPC_DSP.o ../apu/bapu/smp/snes9x_gtk-smp.o ../apu/bapu/smp/snes9x_gtk-smp_state.o ../snes9x_gtk-msu1.o ../snes9x_gtk-dsp.o ../snes9x_gtk-dsp1.o ../snes9x_gtk-dsp2.o ../snes9x_gtk-dsp3.o ../snes9x_gtk-dsp4.o ../snes9x_gtk-spc7110.o ../snes9x_gtk-obc1.o ../snes9x_gtk-seta.o ../snes9x_gtk-seta010.o ../snes9x_gtk-seta011.o ../snes9x_gtk-seta018.o ../snes9x_gtk-controls.o ../snes9x_gtk-crosshairs.o ../snes9x_gtk-cpu.o ../snes9x_gtk-sa1.o ../snes9x_gtk-debug.o ../snes9x_gtk-sdd1.o ../snes9x_gtk-tile.o ../snes9x_gtk-srtc.o ../snes9x_gtk-gfx.o ../snes9x_gtk-memmap.o ../snes9x_gtk-clip.o ../snes9x_gtk-ppu.o ../snes9x_gtk-dma.o ../snes9x_gtk-snes9x.o ../snes9x_gtk-globals.o ../snes9x_gtk-stream.o ../snes9x_gtk-conffile.o ../snes9x_gtk-bsx.o ../snes9x_gtk-logger.o ../snes9x_gtk-snapshot.o ../snes9x_gtk-screenshot.o ../snes9x_gtk-movie.o ../snes9x_gtk-statemanager.o ../snes9x_gtk-sha256.o ../snes9x_gtk-bml.o ../snes9x_gtk-cpuops.o ../snes9x_gtk-cpuexec.o ../snes9x_gtk-sa1cpu.o ../snes9x_gtk-cheats.o ../snes9x_gtk-cheats2.o ../snes9x_gtk-sdd1emu.o  ../snes9x_gtk-loadzip.o  src/snes9x_gtk-gtk_display_driver_opengl.o ../shaders/snes9x_gtk-glsl.o ../shaders/snes9x_gtk-shader_helpers.o src/snes9x_gtk-gtk_shader_parameters.o src/snes9x_gtk-gtk_display_driver_xv.o  libjma.a -lX11 -ldl -lXext -lGL -lepoxy -lminizip -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lgthread-2.0 -pthread -lgobject-2.0 -lglib-2.0 -lxml2   -lSDL2 -lXv -lXrandr -lasound  -lz
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../shaders/snes9x_gtk-shader_helpers.o: undefined reference to symbol 'png_init_io@@PNG16_0'
/usr/lib64/libpng16.so.16: error adding symbols: DSO missing from command line
Comment 1 Christopher Head 2018-07-02 22:14:13 UTC
# emerge --info games-emulation/snes9x
Portage 2.3.40 (python 3.5.5-final-0, default/linux/amd64/17.0, gcc-7.3.0, glibc-2.26-r7, 4.14.52-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.14.52-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.4.1
KiB Mem:    16414260 total,   9995056 free
KiB Swap:   12362176 total,  12362176 free
Head commit of repository steam-overlay: 1237b523da636a247376b25cd4ec59c16d5b0104

Timestamp of repository gentoo: Sun, 01 Jul 2018 15:45:01 +0000
Head commit of repository gentoo: c5910b6f539d7bc3611ee6f9a50afe670e33f684

sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p2) 2.30.0
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r2::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

steam-overlay
    location: /var/cache/repos/steam
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 1

gentoo-dev
    location: /var/cache/repos/gentoo-dev
    priority: 2

gentoo
    location: /var/cache/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.ca.gentoo.org/gentoo-portage
    priority: 3
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

### irrelevant private overlays omitted

Installed sets: @admin, @android, @datacenter, @desktop, @dev, @emulation, @fonts, @games, @lisp, @magicalgame, @media, @misc, @net, @office, @vim, @web
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x dlj-1.1 Google-TOS Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native -fomit-frame-pointer"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 2 --load-average 4 --with-bdeps y --complete-graph y -1"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.gossamerhost.com/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles http://gentoo.osuosl.org/"
LANG="en_CA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_CA"
MAKEOPTS="--jobs 2 --load-average 4"
PKGDIR="/var/cache/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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl alsa amd64 bzip2 cairo caps cli cxx dbus dri ffmpeg flac fontconfig fortran gtk iconv icu idn ipv6 joystick libnotify libsamplerate libtirpc modules mpeg multilib ncurses nls nptl ogg opengl openmp opus pam pcre readline seccomp ssl startup-notification svg theora threads truetype udev unicode vaapi vdpau vim-syntax vorbis xattr xinerama xscreensaver xv xvmc 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="karbon plan sheets stage words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-CA" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" QEMU_SOFTMMU_TARGETS="i386 x86_64" RUBY_TARGETS="ruby23" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="nvidia" XFCE_PLUGINS="logout menu" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

games-emulation/snes9x-1.55::gentoo was built with the following:
USE="alsa gtk joystick multilib nls opengl xrandr xv -debug -netplay -oss -png -portaudio -pulseaudio" ABI_X86="(64)"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,noexecstack"
Comment 2 Christopher Head 2018-07-02 22:15:31 UTC
Created attachment 538148 [details]
The full build log
Comment 3 Christopher Head 2018-11-17 15:57:44 UTC
This still happens in 1.57. However, with USE=png, the problem goes away. So, with USE=-png, it’s broken.
Comment 4 Larry the Git Cow gentoo-dev 2019-01-04 17:40:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92170680370d7c953241845837d0d6c7daa36e35

commit 92170680370d7c953241845837d0d6c7daa36e35
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2019-01-04 17:39:43 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-01-04 17:39:56 +0000

    games-emulation/snes9x: Fixed build with USE="-png".
    
    Closes: https://bugs.gentoo.org/659900
    Package-Manager: Portage-2.3.54, Repoman-2.3.12
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 .../snes9x-1.58-without-screenshot_build_fix.patch | 31 ++++++++++++++++++++++
 games-emulation/snes9x/snes9x-1.58.ebuild          |  3 ++-
 2 files changed, 33 insertions(+), 1 deletion(-)