Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 690318 - dev-ruby/rrdtool-bindings-1.7.2 : main.c:(.text+<snip>): undefined reference to rrd_graph
Summary: dev-ruby/rrdtool-bindings-1.7.2 : main.c:(.text+<snip>): undefined reference ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-20 18:56 UTC by Toralf Förster
Modified: 2020-04-25 10:53 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.45 KB, text/plain)
2019-07-20 18:56 UTC, Toralf Förster
Details
dev-ruby:rrdtool-bindings-1.7.2:20190720-184420.log (dev-ruby:rrdtool-bindings-1.7.2:20190720-184420.log,3.45 KB, text/plain)
2019-07-20 18:57 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,131.98 KB, text/plain)
2019-07-20 18:57 UTC, Toralf Förster
Details
environment (environment,62.44 KB, text/plain)
2019-07-20 18:57 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,10.86 KB, application/x-bzip)
2019-07-20 18:57 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,1.00 KB, application/x-bzip)
2019-07-20 18:57 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-07-20 18:56:55 UTC
x86_64-pc-linux-gnu-gcc -shared -o RRD.so main.o -L. -L/usr/lib64 -L/src/.libs -L. -Wl,-O1 -Wl,--as-needed -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,--no-undefined -Wl,--rpath -Wl,/lib -Wl,-O1 -Wl,--as-needed -Wl,--compress-debug-sections=zlib    -lruby24 -lrrd  -lpthread -lgmp -ldl -lcrypt -lm   -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: main.o: in function `rb_rrd_graph':
main.c:(.text+0x563): undefined reference to `rrd_graph'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: main.o: in function `rb_rrd_xport':
main.c:(.text+0x774): undefined reference to `rrd_xport'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: main.o: in function `rb_rrd_graphv':

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-libressl-20190717-053737

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.1.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.36.0 *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.12.0 [icedtea-bin-8]
2)	JamVM JDK 2.0.0 [jamvm]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
  [2]   jamvm 

emerge -qpvO dev-ruby/rrdtool-bindings
[ebuild  N    ] dev-ruby/rrdtool-bindings-1.7.2  USE="-graph -test" RUBY_TARGETS="ruby24 ruby25 -ruby26"
Comment 1 Toralf Förster gentoo-dev 2019-07-20 18:56:58 UTC
Created attachment 583784 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-07-20 18:57:01 UTC
Created attachment 583786 [details]
dev-ruby:rrdtool-bindings-1.7.2:20190720-184420.log
Comment 3 Toralf Förster gentoo-dev 2019-07-20 18:57:03 UTC
Created attachment 583788 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2019-07-20 18:57:06 UTC
Created attachment 583790 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2019-07-20 18:57:09 UTC
Created attachment 583792 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-07-20 18:57:11 UTC
Created attachment 583794 [details]
logs.tbz2
Comment 7 Hans de Graaff gentoo-dev Security 2019-07-26 06:10:55 UTC
net-analyzer/rrdtool needs USE=graph for the rrdtool-bindings to succeed. This is covered in the DEPEND of the ebuild, but it looks like rrdtool was emerged without it. I'm not sure if the tinderbox automatically handles this correctly.
Comment 8 Rolf Eike Beer archtester 2019-09-14 08:24:57 UTC
it's only in RDEPEND, maybe that is the cause?
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2019-09-14 08:34:10 UTC
(In reply to Rolf Eike Beer from comment #8)
> it's only in RDEPEND, maybe that is the cause?

Good catch.
Comment 10 Larry the Git Cow gentoo-dev 2019-09-14 08:40:43 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d4208982d86c95b77e68f9da8126f6417b1ef85

commit 6d4208982d86c95b77e68f9da8126f6417b1ef85
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2019-09-14 08:35:42 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2019-09-14 08:40:39 +0000

    dev-ruby/rrdtool-bindings: DEPEND on net-analyzer/rrdtool
    
    Package-Manager: Portage-2.3.76, Repoman-2.3.17
    Bug: https://bugs.gentoo.org/690318
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 .../rrdtool-bindings/rrdtool-bindings-1.6.0.ebuild |  1 +
 .../rrdtool-bindings/rrdtool-bindings-1.7.0.ebuild | 60 ----------------------
 .../rrdtool-bindings-1.7.1-r1.ebuild               |  1 +
 .../rrdtool-bindings/rrdtool-bindings-1.7.1.ebuild | 59 ---------------------
 .../rrdtool-bindings/rrdtool-bindings-1.7.2.ebuild |  1 +
 5 files changed, 3 insertions(+), 119 deletions(-)
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2020-04-25 10:53:49 UTC
Presumed fixed.