Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 512728 - media-gfx/panini-0.71.104 - ld: build/pvQt_QTVR.o: undefined reference to symbol 'inflateEnd'
Summary: media-gfx/panini-0.71.104 - ld: build/pvQt_QTVR.o: undefined reference to sym...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Tim Harder
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2014-06-08 11:42 UTC by Pierre AUSSAGUEL
Modified: 2014-06-09 19:50 UTC (History)
1 user (show)

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


Attachments
media-gfx:panini-0.71.104:20140608-121929.log (media-gfx:panini-0.71.104:20140608-121929.log,32.69 KB, text/plain)
2014-06-08 12:22 UTC, Pierre AUSSAGUEL
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre AUSSAGUEL 2014-06-08 11:42:13 UTC
Hello,

I am trying to emerge media-gfx/panini-0.71.104, but the build fails.

Here are the last lines of emerge output :
Code:	
x86_64-pc-linux-gnu-g++ -c -march=native -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4 -I/usr/X11R6/include -Ibuild -Ibuild -o build/qrc_PaniniIcon.o qrc_PaniniIcon.cpp
In file included from build/../src/GLwindow.h:25:0,
                 from build/moc_GLwindow.cpp:9:
build/../src/pvQtPic.h:294:18: warning: unused parameter ‘url’ [-Wunused-parameter]
build/../src/pvQtPic.h:294:18: warning: unused parameter ‘dims’ [-Wunused-parameter]
build/../src/pvQtPic.h:297:22: warning: unused parameter ‘url’ [-Wunused-parameter]
x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -o Panini build/main.o build/pvQtPic.o build/pvQtView.o build/MainWindow.o build/GLwindow.o build/pvQt_QTVR.o build/picTypeDialog.o build/pictureTypes.o build/panosurface.o build/panosphere.o build/panocylinder.o build/TurnDialog.o build/About.o build/moc_pvQtPic.o build/moc_CubeLimit_dialog.o build/moc_pvQtView.o build/moc_MainWindow.o build/moc_GLwindow.o build/moc_picTypeDialog.o build/moc_About.o build/moc_pvQtMouseModes.o build/moc_TurnDialog.o build/qrc_PaniniIcon.o    -L/usr/lib64/qt4 -L/usr/lib64 -lGLU -lQtOpenGL -L/usr/lib64 -L/usr/lib64/qt4 -L/usr/X11R6/lib -lQtGui -lQtCore -lgthread-2.0 -lrt -lglib-2.0 -lGL -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: build/pvQt_QTVR.o: undefined reference to symbol 'inflateEnd'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'inflateEnd' is defined in DSO /lib64/libz.so.1 so try adding it to the linker command line
/lib64/libz.so.1: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [Panini] Error 1
 * ERROR: media-gfx/panini-0.71.104::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=media-gfx/panini-0.71.104::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-gfx/panini-0.71.104::gentoo'`.
 * The complete build log is located at '/var/log/portage/media-gfx:panini-0.71.104:20140604-202731.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/media-gfx/panini-0.71.104/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/panini-0.71.104/temp/environment'.
 * Working directory: '/var/tmp/portage/media-gfx/panini-0.71.104/work/Panini-0.71.104-src'
 * S: '/var/tmp/portage/media-gfx/panini-0.71.104/work/Panini-0.71.104-src'

>>> Failed to emerge media-gfx/panini-0.71.104, Log file:

>>>  '/var/log/portage/media-gfx:panini-0.71.104:20140604-202731.log'


I have tried to re-emerge zlib but it did not solve the problem.

Here is my emerge --info
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.7.3, glibc-2.17, 3.12.13-gentoo x86_64)
=================================================================
System uname: Linux-3.12.13-gentoo-x86_64-Intel-R-_Core-TM-_i5-2500K_CPU_@_3.30GHz-with-gentoo-2.2
KiB Mem:    12123048 total,   7833916 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of tree: Fri, 06 Jun 2014 19:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.2.5-r3, 3.3.3
dev-util/cmake:           2.8.12.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.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.3.6-r1, 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.13 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo calculate zugaina rion lordvan x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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="-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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.ynet.sk/pub"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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="/var/lib/layman/calculate /var/lib/layman/zugaina /var/lib/layman/rion /var/lib/layman/lordvan /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="# A B C D E F G H I J K L M N O P Q R S T U V W X Z a52 aac acl acpi alsa amd64 avahi avi avx berkdb bluray branding bzip2 cairo cdda cdr cli colord cpudetection cracklib crypt css cups cxx dbus device-mapper divx divx4linux dri dts dv dvb dvd dvdr eac3 ebook eds emboss encode exif extras faac fam ffac3 ffmpeg ffmpeg-mt firefox flac foomaticdb fortran gdbm gif gimp gimpprint glitz gmedia gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk2 iconv imagemagick imlib introspection ipv6 java jbig jpeg jpeg2k ladspa lcms ldap libnotify libsecret lm_sensors mad matroska midi mmx mmxext mng modules mp3 mp4 mpeg mplayer multilib nautilus ncurses networkmanager new-login nls nowin nptl nsplugin ntfs ogg opengl openmp pam pango pcre pdf pic png policykit ppds pps print pulseaudio qt3support qt4 quicktime raw readline realmedia scanner sdl semantic-desktop session smp socialweb sound spell sse sse2 ssl ssse3 startup-notification svg systemd tcl tcpd theora threads tiff timidity tk truetype udev udisks unicode upower usb v4l v4l2 vaapi vorbis win32codecs wmf wmp wxwidgets x264 xcb xinerama xml xmms xpm xv xvid xvmc zeroconf 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="ptp2" 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" INPUT_DEVICES="evdev keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" 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, USE_PYTHON

------------

I have found a workaround in this thread : https://groups.google.com/forum/#!msg/hugin-ptx/6wdLOt2TPEg/7Y8O6PqLgY8J

It works when compiling from the source package (not from portage).

Citation:	
To fix it, open the panini.pro file and add

LIBS += -lGLU -lz

Preferably somewhere in the beginning

-----------------

Maybe the ebuild should be modified to include this fix ?

Thank you
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-06-08 11:44:12 UTC
Please attach the entire build log to this bug report.
Comment 2 Pierre AUSSAGUEL 2014-06-08 12:22:13 UTC
Created attachment 378466 [details]
media-gfx:panini-0.71.104:20140608-121929.log
Comment 3 Ted Tanberry 2014-06-09 10:01:49 UTC
Performing

sed -i 's/-lGLU/-lGLU -lz/g' files/panini-0.71.104-glu.patch

is all that is required to prevent libz underlinking.
Comment 4 Tim Harder gentoo-dev 2014-06-09 18:18:49 UTC
Fixed in the tree.
Comment 5 Pierre AUSSAGUEL 2014-06-09 19:50:04 UTC
I confirm it is fixed.

Thank for your work !