Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 93062

Summary: rrdtool 1.2.x tcl bindings: undefined symbols
Product: Gentoo Linux Reporter: Brandon Hale (RETIRED) <tseng>
Component: New packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal CC: tcltk
Priority: High    
Version: unspecified   
Hardware: All   
OS: Other   
URL: http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge info
very simple test case
out put of 'ld /usr/lib/tcl/tclrrd1.2.6/tclrrd1.2.6.so &> rrdtcl-ld'

Description Brandon Hale (RETIRED) gentoo-dev 2005-05-18 06:01:43 UTC
When trying to load tcl bindings from rrdtool:

couldn't load file "/usr/lib/tcl/tclrrd1.2.8/tclrrd1.2.8.so": /usr/lib/tcl/tclrrd1.2.8/tclrrd1.2.8.so: undefined symbol: rrd_test_error
    while executing
"load /usr/lib/tcl/tclrrd1.2.8/tclrrd1.2.8.so"
    (file "./rrd-fill.tcl" line 12)
Comment 1 Brandon Hale (RETIRED) gentoo-dev 2005-05-18 06:03:04 UTC
Created attachment 59215 [details]
emerge info
Comment 2 Brandon Hale (RETIRED) gentoo-dev 2005-05-18 06:03:31 UTC
Created attachment 59216 [details]
very simple test case
Comment 3 Brandon Hale (RETIRED) gentoo-dev 2005-05-18 06:06:22 UTC
Created attachment 59218 [details]
out put of 'ld /usr/lib/tcl/tclrrd1.2.6/tclrrd1.2.6.so &> rrdtcl-ld'
Comment 4 Brandon Hale (RETIRED) gentoo-dev 2005-05-18 07:01:49 UTC
The tcl object needs to be linked with -ltcl and -lrrdtool
Comment 5 Brandon Hale (RETIRED) gentoo-dev 2005-05-18 07:08:09 UTC
Make that -lrrd. Line 33 should now read:

     sed -i -e 's:-lrrd_private:-ltcl -lrrd:' \
         bindings/tcl/Makefile.* || die "sed failed"

Maybe the sed bits should be diffed and sent upstream?
Thanks solar@gentoo.org for helping me debug this.
Comment 6 Marcelo Goes (RETIRED) gentoo-dev 2005-05-18 10:37:37 UTC
Fix worked for me too, in cvs.
I think it is a good idea to at least let upstream know about this.
Comment 7 solar (RETIRED) gentoo-dev 2005-05-19 06:46:34 UTC
> Maybe the sed bits should be diffed and sent upstream?
> Thanks solar@gentoo.org for helping me debug this.

Your welcome.