Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 403051 - media-gfx/gqview-2.1.5 - ld: pan-calendar.o: undefined reference to symbol 'sqrt@@GLIBC_2.0'
Summary: media-gfx/gqview-2.1.5 - ld: pan-calendar.o: undefined reference to symbol 's...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mr. Bones. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-10 23:36 UTC by Steffen Schaumburg
Modified: 2013-09-06 17:40 UTC (History)
3 users (show)

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


Attachments
full build log (build.log.xz,4.10 KB, application/x-xz)
2013-09-02 06:45 UTC, Yixun Lan
Details
patch for gqview code to append "-libm' option to LIB (gqview-2.1.5-libm.patch,1.09 KB, patch)
2013-09-02 06:46 UTC, Yixun Lan
Details | Diff
ebuild diff 2.1.5 (gqview-2.1.5.ebuild.diff,836 bytes, patch)
2013-09-02 06:46 UTC, Yixun Lan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Schaumburg 2012-02-10 23:36:52 UTC
Without it this error occurs: 
view_file_icon.c: In function 'vficon_dnd_get':
view_file_icon.c:617:2: warning: format not a string literal and no format arguments [-Wformat-security]
i686-pc-linux-gnu-gcc  -O2 -march=pentium4 -pipe  -Wl,-O1 -Wl,--as-needed -o gqview  ui_bookmark.o ui_fileops.o ui_help.o ui_menu.o ui_misc.o ui_pathsel.o ui_spinner. 
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld: pan-calendar.o: undefined reference to symbol 'sqrt@@GLIBC_2.0'
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld: note: 'sqrt@@GLIBC_2.0' is defined in DSO /lib/libm.so.6 so try adding it to the linker come
/lib/libm.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status

With -lm it emerges fine, though due to some unrelated trouble I can't get X to start so I can't try if it actually works.
Cheers to #gentoo-chat for figuring out the fix ;)

emerge --info:
Portage 2.2.0_alpha84 (default/linux/x86/10.0, gcc-4.6.2, glibc-2.14.1-r2, 3.2.1-gentoo-r2 i686)
=================================================================
System uname: Linux-3.2.1-gentoo-r2-i686-AMD_Athlon-tm-_II_X4_600e_Processor-with-gentoo-2.0.3
Timestamp of tree: Fri, 10 Feb 2012 18:45:01 +0000
app-shells/bash:          4.1_p9
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo
Installed sets: 
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 Q3AEULA PUEL dlj-1.1 RTCW-ETEULA skype-eula ut2003"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--binpkg-respect-use --with-bdeps=y --autounmask=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-featu"
FFLAGS=""
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://gentoo.mneisen.org/ http://gentoo.wheel.sk/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB en en_US de de_DE"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/distfiles/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/lo"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa amr archive bash-completion berkdb branding bzip2 caps cdda cddb cli cracklib crypt cxx device-mapper dri dvd encode exif fam flac fontforge f"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Yixun Lan archtester gentoo-dev 2013-09-02 06:45:26 UTC
Created attachment 357612 [details]
full build log

similar problem due to miss "-libm" LIBRARY 

ar_info.o bar_exif.o bar_sort.o cache.o cache-loader.o cache_maint.o cellrenderericon.o collect.o collect-dlg.o collect-io.o collect-table.o color-man.o dnd.o dupe.o editors.o exif.o filelist.o format_canon.o format_fuji.o format_nikon.o format_olympus.o format_raw.o fullscreen.o globals.o image.o image-load.o image-overlay.o img-view.o info.o layout.o layout_config.o layout_image.o layout_util.o main.o md5-util.o menu.o pan-calendar.o pan-folder.o pan-grid.o pan-item.o pan-timeline.o pan-util.o pan-view.o pixbuf-renderer.o pixbuf_util.o preferences.o print.o remote.o rcfile.o search.o similar.o slideshow.o thumb.o thumb_standard.o utilops.o view_dir_list.o view_dir_tree.o view_file_list.o view_file_icon.o -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfreetype -lfontconfig     
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.1/../../../../x86_64-pc-linux-gnu/bin/ld: pan-view.o: undefined reference to symbol 'ceil@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.1/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'ceil@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[3]: *** [gqview] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-gfx/gqview-2.1.5/work/gqview-2.1.5/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-gfx/gqview-2.1.5/work/gqview-2.1.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-gfx/gqview-2.1.5/work/gqview-2.1.5'
make: *** [all] Error 2
emake failed
 * ERROR: media-gfx/gqview-2.1.5::gentoo failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *          ebuild.sh, line   93:  Called src_compile
 *        environment, line 2221:  Called __eapi2_src_compile
 *   phase-helpers.sh, line  632:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
Comment 2 Yixun Lan archtester gentoo-dev 2013-09-02 06:46:16 UTC
Created attachment 357614 [details, diff]
patch for gqview code to append "-libm' option to LIB
Comment 3 Yixun Lan archtester gentoo-dev 2013-09-02 06:46:42 UTC
Created attachment 357616 [details, diff]
ebuild diff 2.1.5
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2013-09-06 17:40:42 UTC
in portage.  thanks for the bug report and patch.