Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 321749 - net-analyzer/rrdtool-1.4.3 emerge fails in ruby bindings
Summary: net-analyzer/rrdtool-1.4.3 emerge fails in ruby bindings
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
: 338538 341379 341485 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-28 01:37 UTC by Guy
Modified: 2010-12-16 07:14 UTC (History)
12 users (show)

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


Attachments
Entire build log of "USE='ruby' emerge rrdtool" (build.log,34.13 KB, text/plain)
2010-06-04 00:01 UTC, Guy
Details
Add another space (ruby-patches-1.8.7_p249-r2-space.patch,508 bytes, patch)
2010-06-04 16:37 UTC, Jeroen Roovers (RETIRED)
Details | Diff
Make sure to link against the new library (rrdtool-1.4.4-dont-link-system-lib.patch,801 bytes, patch)
2010-11-29 19:20 UTC, Hans de Graaff
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Guy 2010-05-28 01:37:34 UTC
rrdtool-1.4.3 emerge fails in ruby bindings. Failure below.

creating Makefile
make[4]: Entering directory `/var/tmp/portage/net-analyzer/rrdtool-1.4.3/work/rrdtool-1.4.3/bindings/ruby'
x86_64-pc-linux-gnu-gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../../src    -fPIC -march=opteron -O2 -pipe -fno-strict-aliasing  -fPIC   -c main.c
running build_ext
building 'rrdtoolmodule' extension
creating build
creating build/temp.linux-x86_64-2.6
x86_64-pc-linux-gnu-gcc -pthread -march=opteron -O2 -pipe -D_GNU_SOURCE -fno-strict-aliasing -Wall -std=c99 -pedantic -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wold-style-definition -W -D_REENTRANT -I/usr/include/cairo -I/usr/include/libpng14 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -D_REENTRANT -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng14 -I/usr/include/libxml2 -fPIC -I../../src -I/usr/include/python2.6 -c rrdtoolmodule.c -o build/temp.linux-x86_64-2.6/rrdtoolmodule.o
Checking if your kit is complete...
Checking if your kit is complete...
main.c: In function ‘string_arr_new’:
main.c:54: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long int’
main.c:54: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long int’
x86_64-pc-linux-gnu-gcc -shared -o RRD.so main.o -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L../../src/.libs -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -Wl,--no-undefined-Wl,--rpath -Wl,/usr/lib    -Wl,-R -Wl,/usr/lib64 -L/usr/lib64 -lruby18  -lpthread -lrt -ldl -lcrypt -lm   -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: unrecognized option '--no-undefined-Wl'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
make[4]: *** [RRD.so] Error 1
make[4]: Leaving directory `/var/tmp/portage/net-analyzer/rrdtool-1.4.3/work/rrdtool-1.4.3/bindings/ruby'
make[3]: *** [ruby] Error 2
make[3]: *** Waiting for unfinished jobs....

Portage 2.2_rc67 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11.1-r0, 2.6.33.5 x86_64)
=================================================================
System uname: Linux-2.6.33.5-x86_64-AMD_Phenom-tm-_9600_Quad-Core_Processor-with-gentoo-2.0.1
Timestamp of tree: Thu, 27 May 2010 17:00:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.5.4-r4, 2.6.5-r2, 3.1.2-r3
dev-python/pycrypto: 2.1.0
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.7b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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=opteron -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/zugaina /var/lib/layman/x11 /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"

The installed version of ruby is:

*  dev-lang/ruby
      Latest version available: 1.8.7_p249-r2
      Latest version installed: 1.8.7_p249-r2
      Size of files: 4,059 kB
      Homepage:      http://www.ruby-lang.org/
      Description:   An object-oriented scripting language
      License:       || ( Ruby GPL-2 )
Comment 1 Roby 2010-05-28 16:15:02 UTC
This bug occurs to me too on AMD64 and Intel Quad core machines. Disabling ruby use flag is a workaround. I have lua, perl, python, rrdcgi, and tcl use flags turned on and this package compiles fine. I also have ruby-1.8.7_p249-r2 installed with the following use flags enabled:
berkdb examples gdbm ipv6 ncurses readline rubytests socks5 ssl threads tk xemacs
Comment 2 Guy 2010-05-29 04:01:29 UTC
Until I read comment #1, it didn't occur to me to check anything else regarding this issue.

I then bestirred myself and checked to see what locally installed packages depended on rrdtool. Only 'lm_sensors' was listed.

As far as I know, lm_sensors has no requirement for ruby support.

I therefore set USE="-ruby" for rrdtool and tried to update rrdtool again. It worked.

==> .oOo. <==


pyrodyno ~ # emerge -pv rrdtool

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-analyzer/rrdtool-1.4.2  USE="perl python ruby tcl -doc -lua -rrdcgi" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
pyrodyno ~ # equery d rrdtool
 * These packages depend on rrdtool:
sys-apps/lm_sensors-3.1.2 (sensord ? net-analyzer/rrdtool)
pyrodyno ~ # emerge -pv lm_sensors

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-apps/lm_sensors-3.1.2  USE="sensord" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
pyrodyno ~ # echo ">=net-analyzer/rrdtool-1.4.2 -ruby" >> /etc/portage/package.use

pyrodyno ~ # emerge -pv rrdtool

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-analyzer/rrdtool-1.4.2  USE="perl python tcl -doc -lua -rrdcgi -ruby*" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Comment 3 Hans de Graaff gentoo-dev Security 2010-05-29 07:23:37 UTC
This appears to be related to the recent addition of --no-undefined to the ruby link flags. Cc-ing ruby herd to see if we can help.
Comment 4 André-Sebastian Liebe 2010-05-29 07:38:06 UTC
The build fails because GNU ld doesn't reognize the "--no-undefined-Wl" parameter:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld:
unrecognized option '--no-undefined-Wl'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld:
use the --help option for usage information
collect2: ld returned 1 exit status

I pinpointed the problem to a missing space in ruby bindings Makefile
"ldflags  = -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -Wl,--no-undefined-Wl,--rpath -Wl,$(EPREFIX)/lib" which was generated in the configure phase.
So this might be related to bindings/ruby/extconf.rb which appends to $LDFLAGS by appropriate platform.
I fixed it for me by prepending a space for all cases.

Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2010-05-29 16:21:04 UTC
Looks like we have an easy fix.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2010-05-29 16:29:34 UTC
Fixed without a revision bump. Thanks for reporting and for the dead on analysis in comment #4.
Comment 7 Guy 2010-05-30 00:26:02 UTC
Sorry. Still borked. One of the two "unrecognized option '--no-undefined-Wl'" messages is gone, but the second remains. See below:


x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -march=opteron -O2 -pipe -D_GNU_SOURCE -fno-strict-aliasing -Wall -std=c99 -pedantic -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wold-style-definition -W -D_REENTRANT -I/usr/include/cairo -I/usr/include/libpng14 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -D_REENTRANT -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng14 -I/usr/include/libxml2 build/temp.linux-x86_64-2.6/rrdtoolmodule.o -L../../src/.libs -L/usr/lib64 -Wl,-R/usr/lib64 -lrrd -lpython2.6 -o build/lib.linux-x86_64-2.6/rrdtoolmodule.so
main.c: In function ‘string_arr_new’:
main.c:54: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long int’
main.c:54: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long int’
x86_64-pc-linux-gnu-gcc -shared -o RRD.so main.o -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L../../src/.libs -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -Wl,--no-undefined-Wl,--rpath -Wl,/usr/lib    -Wl,-R -Wl,/usr/lib64 -L/usr/lib64 -lruby18  -lpthread -lrt -ldl -lcrypt -lm   -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: unrecognized option '--no-undefined-Wl'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
make[4]: *** [RRD.so] Error 1
make[4]: Leaving directory `/var/tmp/portage/net-analyzer/rrdtool-1.4.2/work/rrdtool-1.4.2/bindings/ruby'
make[3]: *** [ruby] Error 2
make[3]: *** Waiting for unfinished jobs....
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2010-05-31 01:16:04 UTC
Which CVS revision of the ebuild is that? 1.2 ought to be good.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2010-06-01 16:17:35 UTC
(In reply to comment #7)
> Sorry. Still borked. One of the two "unrecognized option '--no-undefined-Wl'"

I don't see where you see a second failure of this kind. The only original one was in linking RRD.so and the one you point out is also in linking RRD.so.

I cannot reproduce it this time and you're not providing _any_ information, so I am closing it again as fixed. Please reopen this bug report when you _do_ have new information.
Comment 10 Guy 2010-06-03 12:45:06 UTC
(In reply to comment #9)
> (In reply to comment #7)
> > Sorry. Still borked. One of the two "unrecognized option '--no-undefined-Wl'"
> 
> I don't see where you see a second failure of this kind. The only original one
> was in linking RRD.so and the one you point out is also in linking RRD.so.
> 
> I cannot reproduce it this time and you're not providing _any_ information, so
> I am closing it again as fixed. Please reopen this bug report when you _do_
> have new information.
> 

(In reply to comment #8)
> Which CVS revision of the ebuild is that? 1.2 ought to be good.
> 

First, I apologize for not answering this question. I didn't understand the question when I first read it and even after re-reading it several times, I believe that I still don't understand it.

When I read the question the first time, I assumed it was directed to a developer and not to me.

Right now, my understanding of this question is that you're asking about rrdtool-1.2 and if that version works for me? If that is what you asked, my answer would be that I have no problem with rrdtool-1.2.

As I pointed out in comment #2, I have no problem emerging rrdtool-1.4.2 with USE="-ruby". Since the only package I have which depends on rrdtool is lm_sensors, I don't believe I need the ruby bindings in rrdtool so I've set:

echo ">=net-analyzer/rrdtool-1.4.2 -ruby" >> /etc/portage/package.use.

Since you originally marked this bug "resolved fix", I have done an "emerge --sync" several times and done "emerge -uND world" twice. I'm pretty sure I'm up to date as far as the portage database goes.

When I originally posted this bugzilla entry, I had two instances of the "unrecognized option '--no-undefined-Wl'" message in my output stream. As I indicated in comment #7, I still have one "unrecognized option '--no-undefined-Wl'" message in my output stream.

Today, I have done another "emerge --sync" and "USE='ruby' emerge rrdtool". I still get the same results as I indicated in comment #7. This is the result from today's test:

make[4]: Entering directory `/var/tmp/portage/net-analyzer/rrdtool-1.4.2/work/rrdtool-1.4.2/bindings/ruby'
x86_64-pc-linux-gnu-gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../../src    -fPIC -march=opteron -O2 -pipe -fno-strict-aliasing  -fPIC  -Wall   -c main.c
building 'rrdtoolmodule' extension
creating build
creating build/temp.linux-x86_64-2.6
x86_64-pc-linux-gnu-gcc -pthread -march=opteron -O2 -pipe -D_GNU_SOURCE -fno-strict-aliasing -Wall -std=c99 -pedantic -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wold-style-definition -W -D_REENTRANT -I/usr/include/cairo -I/usr/include/libpng14 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -D_REENTRANT -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng14 -I/usr/include/libxml2 -fPIC -I../../src -I/usr/include/python2.6 -c rrdtoolmodule.c -o build/temp.linux-x86_64-2.6/rrdtoolmodule.o
Checking if your kit is complete...
Checking if your kit is complete...
main.c: In function ‘string_arr_new’:
main.c:54: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long int’
main.c:54: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long int’
x86_64-pc-linux-gnu-gcc -shared -o RRD.so main.o -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L../../src/.libs -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -Wl,--no-undefined-Wl,--rpath -Wl,/usr/lib    -Wl,-R -Wl,/usr/lib64 -L/usr/lib64 -lruby18  -lpthread -lrt -ldl -lcrypt -lm   -lc
Looks good
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: unrecognized option '--no-undefined-Wl'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
Looks good
make[4]: *** [RRD.so] Error 1
make[4]: Leaving directory `/var/tmp/portage/net-analyzer/rrdtool-1.4.2/work/rrdtool-1.4.2/bindings/ruby'
make[3]: *** [ruby] Error 2
make[3]: *** Waiting for unfinished jobs....
In file included from /usr/include/python2.6/Python.h:8,
                 from rrdtoolmodule.c:44:
/usr/include/python2.6/pyconfig.h:1067:1: warning: "_POSIX_C_SOURCE" redefined
In file included from ../../src/rrd_config_bottom.h:14,
                 from ../../rrd_config.h:592,
                 from rrdtoolmodule.c:41:
/usr/include/features.h:158:1: warning: this is the location of the previous definition
In file included from /usr/include/python2.6/Python.h:8,
                 from rrdtoolmodule.c:44:
/usr/include/python2.6/pyconfig.h:1079:1: warning: "_XOPEN_SOURCE" redefined
In file included from ../../src/rrd_config_bottom.h:14,
                 from ../../rrd_config.h:592,
                 from rrdtoolmodule.c:41:
/usr/include/features.h:160:1: warning: this is the location of the previous definition
creating build/lib.linux-x86_64-2.6
x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -march=opteron -O2 -pipe -D_GNU_SOURCE -fno-strict-aliasing -Wall -std=c99 -pedantic -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wold-style-definition -W -D_REENTRANT -I/usr/include/cairo -I/usr/include/libpng14 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -D_REENTRANT -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng14 -I/usr/include/libxml2 build/temp.linux-x86_64-2.6/rrdtoolmodule.o -L../../src/.libs -L/usr/lib64 -Wl,-R/usr/lib64 -lrrd -lpython2.6 -o build/lib.linux-x86_64-2.6/rrdtoolmodule.so
Writing Makefile for RRDp
Writing Makefile for RRDs
running build
running build_ext
make[3]: Leaving directory `/var/tmp/portage/net-analyzer/rrdtool-1.4.2/work/rrdtool-1.4.2/bindings'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-analyzer/rrdtool-1.4.2/work/rrdtool-1.4.2/bindings'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-analyzer/rrdtool-1.4.2/work/rrdtool-1.4.2'
make: *** [all] Error 2
 * ERROR: net-analyzer/rrdtool-1.4.2 failed:
 *   compilation failed
 * 
 * Call stack:
 *     ebuild.sh, line   48:  Called src_compile
 *   environment, line 3617:  Called perl-module_src_compile
 *   environment, line 3168:  Called die
 * The specific snippet of code:
 *               emake OTHERLDFLAGS="${LDFLAGS}" ${mymake} || die "compilation failed";

My "emerge --info" information has not changed from the opening post.

I try hard to include all pertinent information, but in this case, I don't know/understand what other information to provide you.

Since I've decided {rightly or wrongly} for now that I don't need ruby bindings present for rrdtool {to be honest, I'm just guessing that lm_sensors doesn't need rrdtool to have ruby bindings}, setting /etc/portage/package.use so that USE="-ruby" for rrdtool works for me.

I'm re-opening this for now but feel free to close it if that seems best. I'll be happy to provide you with more information but I need to understand what you're asking for. I'm sorry. I'm not a developer so my understanding will be limited.
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2010-06-03 18:25:31 UTC
(In reply to comment #10)

Please attach the *entire* build log to this bug report.
Comment 12 Guy 2010-06-04 00:01:35 UTC
Created attachment 234053 [details]
Entire build log of "USE='ruby' emerge rrdtool"

If you need anything else or want me run some kind of test case, please let me know. I finally have sound working to my satisfaction and won't be taking my system down for awhile ... at least a week!
Comment 13 Jeroen Roovers (RETIRED) gentoo-dev 2010-06-04 16:30:49 UTC
Thanks. Now it's a lot more obvious. Two libdir paths are inserted in your case but I can't see how and where that's done. I've tested on a no-multilib amd64 system myself now and this second problem is easily triggered there.

Fri Jun  4 16:24:08 Local time zone must be set--see zic manual page 2010
Portage 2.1.6.13 (default/linux/amd64/10.0/no-multilib, gcc-4.3.4, glibc-2.10.1-r0, 2.6.32.9-JeR x86_64)
=================================================================
System uname: Linux-2.6.32.9-JeR-x86_64-AMD_Athlon-tm-_7750_Dual-Core_Processor-with-gentoo-1.12.11.1
Timestamp of tree: Mon, 31 May 2010 03:15:01 +0000
app-shells/bash:     4.0_p28
dev-lang/python:     2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks fixpackages multilib-strict notitles parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/ http://mirror.muntinternet.net/pub/gentoo/ http://mirror.cambrium.nl/pub/os/linux/gentoo/ "
LDFLAGS="-Wl,-O1"
PKGDIR="/var/lib/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl amd64 berkdb gdbm gpm iconv ipv6 mmx ncurses network-cron nls openmp python readline sse sse2 ssl threads unicode xml zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 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, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 14 Jeroen Roovers (RETIRED) gentoo-dev 2010-06-04 16:37:26 UTC
Created attachment 234127 [details, diff]
Add another space
Comment 15 Willard Dawson 2010-07-18 17:46:34 UTC
(In reply to comment #14)
> Created an attachment (id=234127) [details]
> Add another space
> 

I don't normally need help, but can you please suggest or attach an ebuild to use the patch?

Thanks.
Comment 16 Luca Lesinigo 2010-08-22 20:29:31 UTC
FYI, the same problem happens on my gentoo/amd64 system with rrdtool-1.3.8 (the current stable ebuild)
Comment 17 RW 2010-08-25 06:32:45 UTC
I've got into this problem yesterday while upgrading GCC from 4.3.4 > 4.4.3 (emerge -ev world). Setting USE="-ruby" (in portage.use) finally compiles rrdtool-1.3.8. The error message was:

x86_64-pc-linux-gnu-gcc -shared -o RRD.so main.o -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L../../src/.libs -L. -Wl,-O1 -Wl,--as-needed -rdynamic -Wl,-expor
t-dynamic -Wl,--no-undefined-Wl,--rpath -Wl,/usr/lib    -Wl,-R -Wl,/usr/lib64 -L/usr/lib64 -lruby18  -lrt -ldl -lcrypt -lm   -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: unrecognized option '--no-undefined-Wl'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
make[4]: *** [RRD.so] Error 1
make[4]: Leaving directory `/transfer/tmp/portage/portage/net-analyzer/rrdtool-1.3.8/work/rrdtool-1.3.8/bindings/ruby'
make[3]: *** [ruby] Error 2
make[3]: *** Waiting for unfinished jobs....
creating build/lib.linux-x86_64-2.6
x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,--as-needed -march=nocona -O2 -pipe -D_GNU_SOURCE -fno-strict-aliasing -Wall -std=c99 -pedantic 
-Wundef -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wold-style-definition -W -fPIC -DPIC -I/usr/include/cairo -I/usr/include/libpng14 -I/usr/include/pixman-1 -I/usr/include/freetype2 -pthread -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libxml2 build/temp.linux-x86_64-2.6/rrdtoolmodule.o -L../../src/.libs -L/usr/lib64 -Wl,-R/usr/lib64 -lrrd -lpython2.6 -o build/lib.linux-x86_64-2.6/rrdtoolmodule.so
running build
running build_ext
make[3]: Leaving directory `/transfer/tmp/portage/portage/net-analyzer/rrdtool-1.3.8/work/rrdtool-1.3.8/bindings'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/transfer/tmp/portage/portage/net-analyzer/rrdtool-1.3.8/work/rrdtool-1.3.8/bindings'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/transfer/tmp/portage/portage/net-analyzer/rrdtool-1.3.8/work/rrdtool-1.3.8'
make: *** [all] Error 2
Comment 18 RW 2010-08-25 06:33:57 UTC
If it helps here my emerge --info output:

Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r4-x86_64-Intel-R-_Core-TM-2_CPU_6700_@_2.66GHz-with-gentoo-1.12.13
Timestamp of tree: Tue, 24 Aug 2010 04:45:01 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 1.3.7-r1, 2.1.11
dev-lang/python:     2.4.6, 2.5.4-r3, 2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/transfer/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa amd64 apache2 bash-completion berkdb bluetooth bmp bzip2 cairo cdparanoia cdr clamav cli cracklib crypt cups curl cxx dbus dri dv dvb dvd dvdr dvdread eds encode esd ethereal evo exif expat faad fam ffmpeg firefox flac fortran gcj gd gdbm gif glitz gnome gnutls gpm gstreamer gtk hal iconv ieee1394 imagemagick ipv6 jpeg kde kerberos libg++ lirc lm_sensors mad matroska mbox mikmod mjpeg mmx modules mono mp3 mpeg mudflap multilib nas ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png posix postgres pppd python qt3 qt3support quicktime readline reflection ruby samba sasl scanner sdl session spell spl sse sse2 ssl streamzap svg sysfs tcpd theora tidy tiff truetype unicode usb v4l vcd vorbis wifi wmf wxwindows xine xinerama xml xmms xorg xv xvid zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" LIRC_DEVICES="streamzap" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa fbdev v4l vga" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 19 Holger Becker 2010-09-01 08:39:17 UTC
Same here on AMD64 gentoo system with +ruby. This is the respective output of the build log:

make[4]: Entering directory `/var/tmp/portage/net-analyzer/rrdtool-1.3.8/work/rrdtool-1.3.8/bindings/perl-piped'
x86_64-pc-linux-gnu-gcc -shared -o RRD.so main.o -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L../../src/.libs -L. -Wl,-O1 -Wl,--as-needed -rdynamic -Wl,-export-dynamic -Wl,--no-undefined-Wl,--rpath -Wl,/usr/lib    -Wl,-R -Wl,/usr/lib64 -L/usr/lib64 -lruby18  -lpthread -lrt -ldl -lcrypt -lm   -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: unrecognized option '--no-undefined-Wl'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: use the --help option for usage information
collect2: ld gab 1 als Ende-Status zurück
make[4]: *** [RRD.so] Fehler 1
Comment 20 Daniel Santos 2010-09-03 17:03:46 UTC
Can we mark this bug confirmed?  I'm having this with rrdtool-1.3.8 (stable on amd64).



creating Makefile
make[4]: Entering directory `/tmp/portage/net-analyzer/rrdtool-1.3.8/work/rrdtool-1.3.8/bindings/ruby'
x86_64-pc-linux-gnu-gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../../src    -fPIC -march=amdfam10 -O2 -ggdb -fno-strict-aliasing  -fPIC   -c main.c
main.c: In function ‘string_arr_new’:
main.c:48: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long int’
main.c:48: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long int’
main.c: In function ‘rb_rrd_infocall’:
main.c:153: warning: assignment makes pointer from integer without a cast
main.c: In function ‘rb_rrd_info’:
main.c:192: warning: passing argument 1 of ‘rb_rrd_infocall’ from incompatible pointer type
main.c:144: note: expected ‘RRDFUNC’ but argument is of type ‘struct rrd_info_t * (*)(int,  char **)’
main.c: In function ‘rb_rrd_updatev’:
main.c:199: warning: passing argument 1 of ‘rb_rrd_infocall’ from incompatible pointer type
main.c:144: note: expected ‘RRDFUNC’ but argument is of type ‘struct rrd_info_t * (*)(int,  char **)’
main.c: In function ‘rb_rrd_graphv’:
main.c:206: warning: passing argument 1 of ‘rb_rrd_infocall’ from incompatible pointer type
main.c:144: note: expected ‘RRDFUNC’ but argument is of type ‘struct rrd_info_t * (*)(int,  char **)’
x86_64-pc-linux-gnu-gcc -shared -o RRD.so main.o -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L../../src/.libs -L. -Wl,-O1 -Wl,--as-needed -rdynamic -Wl,-export-dynamic -Wl,--no-undefined-Wl,--rpath -Wl,/usr/lib    -Wl,-R -Wl,/usr/lib64 -L/usr/lib64 -lruby18  -lpthread -lrt -ldl -lcrypt -lm   -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: unrecognized option '--no-undefined-Wl'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status






Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r6-x86_64-AMD_Phenom-tm-_9850_Quad-Core_Processor-with-gentoo-1.12.13
Timestamp of tree: Fri, 03 Sep 2010 13:00:22 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm skype-eula googleearth AdobeFlash-10 AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=amdfam10 -O2 -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-j2"
FEATURES="assume-digests buildpkg ccache distlocks fixpackages installsources news parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirrors.cs.wmich.edu/gentoo http://mirror.mcs.anl.gov/pub/gentoo/ http://osmirrors.cerias.purdue.edu/pub/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="bzip2"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude '/lost+found'"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/pro-audio /var/lib/layman/java-overlay /var/lib/layman/kde-sunset /var/lib/layman/zugaina /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 3ds 64bit 7zip X Xaw3d a52 aac aalib acl acpi adns aim aio akode alsa amd64 amr ao aotuv apache2 applet ares arts async audacious audiofile authdaemond authfile autoipd automount bash-completion bazaar berkdb binfilter bittorrent bl bluetooth bonjour boost branding bsf bugzilla bzip2 c3p0 cairo calendar cdaudio cdb cdda cddb cdparanoia cdr cegui cg cgi chm cjk cleartype cli commons-digester console consolekit corefonts cpufreq cpulimit cracklib crypt cscope css cups curl curlwrappers custom-optimization cvs cxx darcs dbus dedicated devil dga dirac directfb divx djbfft djvu dmx dns dolby-record-switch dri dssi dtmf dts dv dvb dvd dvdr editor emboss emoticon encode enscript excel exif expat extraicons faac faad fam fasttrack fax fbcon ffmpeg fftw firefox fits flac flash fltk fluidsynth fmod font-server fontconfig fontforge foomaticdb fortran fping fpx ftp fuse fusion gadu gcj gd gdbm geoip geos ggi gif ginac git glib glitz glut gmedia gmp gmtfull gnokii gnome gnutella gnutls gpg gphoto2 gpm gps graphviz gs gsl gsm gtk gzip h224 h281 h323 hal hddtemp html htmlhandbook hwmixer icecast iceweasel iconv icq icu id3 id3tag idn ieee1394 ilbc imagemagick imap imlib inifile ipv6 irc irda irrlicht jabber jack jackmidi jadetex java java5 java6 javascript jbig jce jingle jmx joystick jpeg jpeg2k kde kdrive kpathsea ladspa lame lash latex lcms ldap libcaca libnotify libsamplerate libvisual libwww lirc live lm_sensors log4j logitech-mouse lua lzma lzo mad maildir maps math md5sum meanwhile mercurial midi mikmod mime mjpeg mmap mmkeys mmx mmxext mng modperl modplug modules motif mouse mozdevelop mozilla mp2 mp3 mp4 mp4live mpeg mpeg2 mplayer msn mtp mudflap multicall multilib multislot multitarget musepack music musicbrainz mysql mysqli mythtv nas ncurses net netjack network njb nls nntp nptl nptlonly nsplugin nss nvidia nvtv ode odk offensive ogg ogm openal openexr opengl openmp oscar otr pam pango pch pcntl pcre pda pdf perl php player plotutils png policykit portaudio posix postproc ppds pppd pulseaudio python qq qt3support qt4 quicktime radio rar raw readline reflection rrdcgi rss rtc ruby samba sametime sasl scanner schroedinger sdl sdl-image sdl-sound semantic-desktop sensord session sharedext silc sip slp smp smtp sndfile snmp soap sockets sound speex spell spl sql sqlite sqlite3 srvdir sse sse2 sse3 ssl startup-notification stream subtitles subversion suexec svg sysfs syslog sysvipc t1lib tagwriting tcl tcpd test tga theora threads thumbnail tidy tiff timidity tk tokenizer tools transcode translator trayicon truetype tse3 twolame type3 udev unicode upnp urandom usb userlocales v4l v4l2 vcd vdpau vdr vhosts videos vim-syntax vim-with-x visualization vorbis vorbis-psy vst vxml wav wavpack webdav wifi wma wmf wxwidgets wxwindows x264 xanim xattr xcb xcomposite xface xforms xft xine xinerama xinetd xml xmlreader xmlrpc xmlwriter xorg xpm xprint xscreensaver xsl xulrunner xv xvid xvmc yaepg yahoo yv12 zeroconf zip zlib" ALSA_CARDS="hdsp emu10k1 hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_alias authn_dbd authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache dumpio env expires ext_filter file_cache filter headers ident imagemap include info log_config log_forensic logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias substitute" ELIBC="glibc" FOO2ZJS_DEVICES="hpp1006" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS

Comment 21 Jérôme Poulin 2010-09-12 12:33:06 UTC
Same bug, same workaround: net-analyzer/rrdtool-1.3.8 amd64
Comment 22 Samuli Suominen (RETIRED) gentoo-dev 2010-09-24 10:48:08 UTC
*** Bug 338538 has been marked as a duplicate of this bug. ***
Comment 23 Hans de Graaff gentoo-dev Security 2010-10-16 13:54:00 UTC
I have applied the patch for 1.4.3 also to the currently stable 1.3.8 version so that it can be built again with USE=ruby.
Comment 24 Hans de Graaff gentoo-dev Security 2010-10-17 15:55:12 UTC
*** Bug 341379 has been marked as a duplicate of this bug. ***
Comment 25 Robert Bradbury 2010-10-17 17:20:09 UTC
It is fine to mark Bug #341379 as a duplicate of this bug #321749 but the proof is in the pudding.  I.e. does rrdtool as distributed by gentoo compile on an x86 machine when building on the bleeding edge (i.e. no restrictions in /etc/portage/package.keywords or package.mask)?

The answer to that question is NO.  Therefore the problem is NOT "RESOLVED".
Comment 26 Robert Bradbury 2010-10-17 17:34:23 UTC
And it should further be pointed out that rrdtool is involve in aspects of the system completely unrelated to ruby (so it isn't a "ruby" problem).

Running a dependency analysis on my system reveals that rrdtool is involved with smokeping, mailgraph and lm_sensors.  None of which involve ruby.

I would suggest that Bug #341379 be unduplicated and allowed to stand on its own until the build/configure/Makefile is patched.
Comment 27 Hans de Graaff gentoo-dev Security 2010-10-17 18:46:50 UTC
(In reply to comment #25)

> The answer to that question is NO.  Therefore the problem is NOT "RESOLVED".

The problem got fixed at pretty much the same time you filed bug 341379. Please sync your tree and try again. The problem you describe in the bug is the exact same one as in this bug.

Comment 28 Jeroen Roovers (RETIRED) gentoo-dev 2010-10-19 02:53:16 UTC
*** Bug 341485 has been marked as a duplicate of this bug. ***
Comment 29 Jeroen Roovers (RETIRED) gentoo-dev 2010-10-19 02:53:46 UTC
# ChangeLog for net-analyzer/rrdtool
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/rrdtool/ChangeLog,v 1.206 2010/10/16 13:52:19 graaff Exp $

  16 Oct 2010; Hans de Graaff <graaff@gentoo.org> rrdtool-1.3.8.ebuild:
  Also apply the patch for bug 321749 to the stable version to fix USE=ruby
  build, as discussed with jer on #gentoo-dev.
Comment 30 Luca Lesinigo 2010-11-26 12:42:53 UTC
I am all too happy to confirm that rrdtool-1.3.8[ruby] emerges fine (with FEATURES=test) on both:
  hardened/linux/amd64/no-multilib
  default/linux/hppa/10.0

back to this bug's subject, rrdtool-1.4.3[ruby] still fails to emerge, erroring during final link:
  main.o: In function `rb_rrd_flushcached':
  main.c:(.text+0xe36): undefined reference to `rrd_flushcached'
  collect2: ld returned 1 exit status
on both the above mentioned archs. I'll add that the same rrdtool-1.4.3 on the same systems will emerge just fine with USE=-ruby, FEATURES=test.

Thank you dev for fixing the stable release, it was quite a problem for us (think of a server running cacti (needs rrdtool) and also ruby stuff (needs +ruby) even if the two are not directly correlated).

But I too can confirm that this bug's subject, rrdtool-1.4.3, still won't emerge when USE=ruby - imho NOT RESOLVED in this morning portage tree.
Comment 31 Hans de Graaff gentoo-dev Security 2010-11-27 12:39:23 UTC
(In reply to comment #30)

> back to this bug's subject, rrdtool-1.4.3[ruby] still fails to emerge, erroring
> during final link:
>   main.o: In function `rb_rrd_flushcached':
>   main.c:(.text+0xe36): undefined reference to `rrd_flushcached'
>   collect2: ld returned 1 exit status
> on both the above mentioned archs. I'll add that the same rrdtool-1.4.3 on the
> same systems will emerge just fine with USE=-ruby, FEATURES=test.

This happens because the Makefile for the ruby bindings links against the currently installed library in /usr/lib first, instead of against the newly-built version.
Comment 32 Hans de Graaff gentoo-dev Security 2010-11-29 19:20:50 UTC
Created attachment 255865 [details, diff]
Make sure to link against the new library

This patch fixes things. It's against rrdtool 1.4.4 since I was working with that locally, but it should also work againt 1.4.3. This is a bit of a hack, perhaps a better solution would be to create a symlink to the newly compiled .so since . is already in the linker flags as the first directory. As far as I can tell there is no other way to shift link directories into the link path before /usr/lib(64) with extconf.rb.
Comment 33 Hans de Graaff gentoo-dev Security 2010-11-29 19:21:32 UTC
(In reply to comment #32)
> Created an attachment (id=255865) [details]
> Make sure to link against the new library

This also requires eautoreconf in the ebuild instead of eautoconf, since we now change a Makefile.am file.
Comment 34 Robert Spencer 2010-12-02 01:33:00 UTC
(In reply to comment #33)
> (In reply to comment #32)
> > Created an attachment (id=255865) [details] [details]
> > Make sure to link against the new library
> 
> This also requires eautoreconf in the ebuild instead of eautoconf, since we now
> change a Makefile.am file.
> 

just wanted to confirm that this patch works. I was having the same build error and then added this patch to 1.4.3 and changed to eautoreconf in the ebuild and it compiled without error. I am running ~x86 system btw. 
Comment 35 Hans de Graaff gentoo-dev Security 2010-12-16 07:14:15 UTC
Fixed in rrdtool-1.4.4 which just got added to CVS.