Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 779127 - media-gfx/gtkimageview-1.6.4 - gtkimageview.c:(.text+<snip>): undefined reference to round
Summary: media-gfx/gtkimageview-1.6.4 - gtkimageview.c:(.text+<snip>): undefined refer...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2021-03-29 17:45 UTC by Toralf Förster
Modified: 2021-04-01 23:04 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.07 KB, text/plain)
2021-03-29 17:45 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,354.46 KB, text/plain)
2021-03-29 17:45 UTC, Toralf Förster
Details
environment (environment,128.13 KB, text/plain)
2021-03-29 17:45 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,88.03 KB, application/x-bzip)
2021-03-29 17:45 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,7.33 KB, application/x-bzip)
2021-03-29 17:45 UTC, Toralf Förster
Details
media-gfx:gtkimageview-1.6.4:20210329-173505.log (media-gfx:gtkimageview-1.6.4:20210329-173505.log,100.70 KB, text/plain)
2021-03-29 17:45 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,36.38 KB, application/x-bzip)
2021-03-29 17:45 UTC, Toralf Förster
Details
Patch to fix the undefined reference to libm. (gtkimageview-libm.patch,1006 bytes, patch)
2021-03-29 18:59 UTC, orbea
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-03-29 17:45:46 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/gtkimageview.o: in function `gtk_image_view_set_zoom_with_center':
gtkimageview.c:(.text+0xdcc): undefined reference to `round'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: gtkimageview.c:(.text+0xe01): undefined reference to `round'
collect2: error: ld returned 1 exit status
rdlibtool: exec error upon slbt_exec_link_create_library(), line 1446: (see child process error messages).

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-20210318-090503

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-10.2.0 *
clang version 11.1.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/11/bin
/usr/lib/llvm/11
11.1.0
Python 3.8.8
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.50.0
  [2]   rust-1.50.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.17.1 [icedtea-8]
2)	IcedTea JDK 3.16.0 [icedtea-bin-8]
3)	OpenJDK 8.282_p08 [openjdk-8]
*)	AdoptOpenJDK 8.282_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   icedtea-bin-8 
  [3]   openjdk-8 
  [4]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Mon Mar 29 16:35:49 UTC 2021

emerge -qpvO media-gfx/gtkimageview
[ebuild  N    ] media-gfx/gtkimageview-1.6.4  USE="-examples -static-libs"
Comment 1 Toralf Förster gentoo-dev 2021-03-29 17:45:47 UTC
Created attachment 696054 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-03-29 17:45:49 UTC
Created attachment 696057 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-03-29 17:45:50 UTC
Created attachment 696060 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-03-29 17:45:52 UTC
Created attachment 696063 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-03-29 17:45:53 UTC
Created attachment 696066 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-03-29 17:45:54 UTC
Created attachment 696069 [details]
media-gfx:gtkimageview-1.6.4:20210329-173505.log
Comment 7 Toralf Förster gentoo-dev 2021-03-29 17:45:55 UTC
Created attachment 696072 [details]
temp.tar.bz2
Comment 8 orbea 2021-03-29 18:59:18 UTC
Created attachment 696090 [details, diff]
Patch to fix the undefined reference to libm.

Every upstream url I found seems dead, but this fixes the build with -no-undefined. It needs to be applied at the end of src_prepare() before eautoreconf.
Comment 9 Larry the Git Cow gentoo-dev 2021-04-01 23:04:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02b5cfb32642a1fdcf64effcc2898a5bf4ebed8a

commit 02b5cfb32642a1fdcf64effcc2898a5bf4ebed8a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-04-01 22:54:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-04-01 23:03:59 +0000

    media-gfx/gtkimageview: fix build with slibtool
    
    Thakns-to: orbea <orbea@riseup.net>
    Closes: https://bugs.gentoo.org/779127
    Signed-off-by: Sam James <sam@gentoo.org>

 ...eview-1.6.4-slibtool-undefined-references.patch | 35 ++++++++++++++++++++++
 media-gfx/gtkimageview/gtkimageview-1.6.4.ebuild   |  4 +++
 2 files changed, 39 insertions(+)