Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 509682 - net-analyzer/smokeping-2.6.9 - configure:4776: checking checking for perl module 'RRDs' -//- /usr/lib64/perl5/vendor_perl/5.16.3/x86_64-linux/auto/RRDs/RRDs.so: undefined symbol: rrd_graph_v
Summary: net-analyzer/smokeping-2.6.9 - configure:4776: checking checking for perl mod...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 517238
  Show dependency tree
 
Reported: 2014-05-06 11:38 UTC by Marcin Mirosław
Modified: 2014-07-17 12:23 UTC (History)
0 users

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


Attachments
config.log (config.log,30.06 KB, text/plain)
2014-05-06 11:45 UTC, Marcin Mirosław
Details
net-analyzer/rrdtool-1.4.8 - build.log (build.log,134.50 KB, text/plain)
2014-07-14 20:17 UTC, Marcin Mirosław
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2014-05-06 11:38:15 UTC
configure can't find RRDs module but it is installed in system.

# equery f rrdtool|grep RRDs
/usr/lib64/perl5/vendor_perl/5.16.3/x86_64-linux/RRDs.pm
/usr/lib64/perl5/vendor_perl/5.16.3/x86_64-linux/auto/RRDs
/usr/lib64/perl5/vendor_perl/5.16.3/x86_64-linux/auto/RRDs/RRDs.so
/usr/share/man/man3/RRDs.3pm.bz2

# equery k rrdtool
* Checking net-analyzer/rrdtool-1.4.8 ...
   96 out of 96 files passed
Comment 1 Marcin Mirosław 2014-05-06 11:40:30 UTC
# emerge --info
emerge --info                                                                                                                       [26/4577]
FEATURES variable contains unknown value(s): Xfail-clean, Xkeepwork, Xprofile, Xsplitdebug, Xtest, Yunknown-features-filter, profile-use
Portage 2.2.8-r1 (hardened/linux/amd64, gcc-4.7.3, glibc-2.17, 3.14.2-hardened-r1 x86_64)
=================================================================
System uname: Linux-3.14.2-hardened-r1-x86_64-Intel-R-_Core-TM-_i7_CPU_930_@_2.80GHz-with-gentoo-2.2
KiB Mem:      762088 total,     93872 free
KiB Swap:     979928 total,    974652 free
Timestamp of tree: Tue, 06 May 2014 07:30:01 +0000
ld GNU gold (GNU Binutils 2.23.2) 1.11
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1, 4.8.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo 
Installed sets: @sheepdog
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fexpensive-optimizations         -fgraphite-identity -floop-interchange -ftree-loop-linear -floop-block -floop-strip-mine -fira-loop-pressu
re         -fpredictive-commoning -freorder-blocks-and-partition -ftracer -ftree-vectorize         -frecord-gcc-switches -fno-unwind-tables -fno-asynchronous-unwind-t
ables -fuse-linker-plugin         --param l2-cache-size=128 --param l1-cache-size=16 --param l1-cache-line-size=32 -pipe -Wdisabled-optimization -Wstack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5
/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -fexpensive-optimizations         -fgraphite-identity -floop-interchange -ftree-loop-linear -floop-block -floop-strip-mine -fira-loop-pres
sure         -fpredictive-commoning -freorder-blocks-and-partition -ftracer -ftree-vectorize         -frecord-gcc-switches -fno-unwind-tables -fno-asynchronous-unwind
-tables -fuse-linker-plugin         --param l2-cache-size=128 --param l1-cache-size=16 --param l1-cache-line-size=32 -pipe -Wdisabled-optimization -Wstack-protector"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=native -O2 -fexpensive-optimizations         -fgraphite-identity -floop-interchange -ftree-loop-linear -floop-block -floop-strip-mine -fira-loop-press
ure         -fpredictive-commoning -freorder-blocks-and-partition -ftracer -ftree-vectorize         -frecord-gcc-switches -fno-unwind-tables -fno-asynchronous-unwind-
tables -fuse-linker-plugin         --param l2-cache-size=128 --param l1-cache-size=16 --param l1-cache-line-size=32 -pipe -Wdisabled-optimization -Wstack-protector"
FEATURES="Xfail-clean Xkeepwork Xprofile Xsplitdebug Xtest Yunknown-features-filter assume-digests binpkg-logs ccache collision-protect config-protect-if-modified dis
tlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs profile-use protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerg
e-orphans userfetch usersandbox usersync xattr"
FFLAGS="-march=native -O2 -fexpensive-optimizations         -fgraphite-identity -floop-interchange -ftree-loop-linear -floop-block -floop-strip-mine -fira-loop-pressu
re         -fpredictive-commoning -freorder-blocks-and-partition -ftracer -ftree-vectorize         -frecord-gcc-switches -fno-unwind-tables -fno-asynchronous-unwind-t
ables -fuse-linker-plugin         --param l2-cache-size=128 --param l1-cache-size=16 --param l1-cache-line-size=32 -pipe -Wdisabled-optimization -Wstack-protector"
GENTOO_MIRRORS="http://gentoo.mneisen.org/"
LANG="pl_PL.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="-O --inplace"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 
--exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="acl acpi amd64 apache2 bash-completion caps hardened idn iproute2 ipv6 mmap mmx mmxext modules nls openmp openssl smp sse sse2 sse3 sse4 sse4a ssse3 syslog threa
ds threadsafe unicode urandom vhosts vim-syntax xattr xtpax" ABI_X86="64" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon auth_digest authn_dbm authn
_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi dav dav_fs dav_lock dir env expires ext_filter filte
r headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif status unique_id usertrack vhost_alias" APACHE2_MPMS="prefork" CURL_SSL
="openssl" ELIBC="glibc" KERNEL="linux" LINGUAS="en" NGINX_MODULES_HTTP="access browser charset gzip map limit_zone proxy rewrite spdy stub_status gzip_static" PHP_TA
RGETS="php5-5" PYTHON_TARGETS="python2_7 python3_3" USERLAND="GNU" XTABLES_ADDONS="fuzzy geoip lscan psd sysrq tarpit"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC, USE_PYTHON
Comment 2 Marcin Mirosław 2014-05-06 11:45:17 UTC
Created attachment 376474 [details]
config.log
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-05-06 14:43:17 UTC
Which version of dev-lang/perl?
Comment 4 Marcin Mirosław 2014-05-06 14:52:48 UTC
dev-lang/perl-5.16.3 was built with the following:
USE="-berkdb -debug -doc -gdbm -ithreads"
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-05-10 19:27:36 UTC
It runs this check:
${PERL} -I$prefix/thirdparty/lib/perl5 -e 'use '$module

which should translate to this:
perl    -Idoes/not/exist               -e 'use RRDs'
Comment 6 Marcin Mirosław 2014-07-11 17:52:20 UTC
I did `emerge --sync` and tried to install smokeping, it fails in the same way.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-11 18:44:37 UTC
(In reply to Marcin Mirosław from comment #6)
> I did `emerge --sync` and tried to install smokeping, it fails in the same
> way.

Nothing changed so synching your tree isn't going to help. An answer to comment #5 might help.
Comment 8 Marcin Mirosław 2014-07-11 19:28:57 UTC
I didn't understood you correctly. Ok, I'm getting:
$ perl    -Idoes/not/exist               -e 'use RRDs'
Can't load '/usr/lib64/perl5/vendor_perl/5.16.3/x86_64-linux/auto/RRDs/RRDs.so' for module RRDs: /usr/lib64/perl5/vendor_perl/5.16.3/x86_64-linux/auto/RRDs/RRDs.so: undefined symbol: rrd_graph_v at /usr/lib64/perl5/5.16.3/x86_64-linux/DynaLoader.pm line 190.
 at -e line 1.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

I tried with no opt (-O0), with bfd linker and it didn't help.
Comment 9 Marcin Mirosław 2014-07-11 19:47:59 UTC
I mean I recompiled net-analyzer/rrdtool.
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-12 11:39:15 UTC
(In reply to Marcin Mirosław from comment #9)
> I mean I recompiled net-analyzer/rrdtool.

Could you attach that build log?
Comment 11 Marcin Mirosław 2014-07-12 18:02:02 UTC
When I looked at build.log I found that rrdtool is build without graph support. I rebuild rrdtool with USE=graph and then I didn't experience problem with compiling smokeping. But it means slave of smokeping has to install more dependencies, can we avoid it?
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-13 12:49:57 UTC
  13 Jul 2014; Jeroen Roovers <jer@gentoo.org> smokeping-2.6.9.ebuild:
  Depend on net-analyzer/rrdtool[graph] (bug #509682 by Marcin Mirosław).
Comment 13 Marcin Mirosław 2014-07-14 09:51:01 UTC
Isn't a wider problem that perl module build by rrdtool can't be loaded by perl if rrdtool is build without graph support?
Comment 14 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-14 11:59:12 UTC
(In reply to Marcin Mirosław from comment #13)

Maybe you should attach that build log, then.
Comment 15 Marcin Mirosław 2014-07-14 20:17:55 UTC
Created attachment 380726 [details]
net-analyzer/rrdtool-1.4.8 - build.log
Comment 16 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-15 12:34:57 UTC
(In reply to Marcin Mirosław from comment #15)
> Created attachment 380726 [details]
> net-analyzer/rrdtool-1.4.8 - build.log

Thanks. It's now becoming clear that in order to even build rrdtool with USE=-graph, a lot of other stuff should be disabled as well, like USE="-rrdcgi -perl".
Comment 17 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-15 13:23:27 UTC
(In reply to Marcin Mirosław from comment #13)
> Isn't a wider problem that perl module build by rrdtool can't be loaded by
> perl if rrdtool is build without graph support?

net-analyzer/smokeping specifically calls RRDs::graph in various places, so the USE dependency will have to stay.

I have a patch that should disable definitions of rdd_graph{,v} in various bindings and in the CGI module.
Comment 18 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-17 12:23:08 UTC
I dropped the USE=+graph default after sorting out most of the reverse dependencies.