Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 548818 - net-analyzer/rrdtool-1.5.3 with sys-cluster/ceph - rrd_restore.c:41:23: fatal error: rrd_rados.h: No such file or directory
Summary: net-analyzer/rrdtool-1.5.3 with sys-cluster/ceph - rrd_restore.c:41:23: fatal...
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: 549516
  Show dependency tree
 
Reported: 2015-05-07 04:16 UTC by Drunkard Zhang
Modified: 2015-05-26 04:57 UTC (History)
0 users

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


Attachments
build.log (build.log,113.91 KB, text/plain)
2015-05-07 04:17 UTC, Drunkard Zhang
Details
rrdtool-1.5.3-r1.ebuild.patch (rrdtool-1.5.3-r1.ebuild.patch,579 bytes, text/plain)
2015-05-25 18:10 UTC, Andrew Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Drunkard Zhang 2015-05-07 04:16:54 UTC
net-analyzer/rrdtool-1.5.2 compile failed, due to missing of rrd_rados.h

Reproducible: Always

Steps to Reproduce:
1. emerge -1avq =net-analyzer/rrdtool-1.5.2




emerge --info =net-analyzer/rrdtool-1.5.2
Portage 2.2.18 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.9.2, glibc-2.20-r2, 3.19.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.19.0-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-2620_v3_@_2.40GHz-with-gentoo-2.2
KiB Mem:   132005288 total, 126987428 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 06 May 2015 22:00:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.25 p1.0) 2.25
app-shells/bash:          4.3_p33-r2::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.2.1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.8.4::gentoo, 4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://gentoo.gwbnsh.net.cn/gentoo-portage
    priority: -1000

drunkard
    location: /var/lib/layman/drunkard
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core-avx2"
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/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=core-avx2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nodoc noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.gwbnsh.net.cn/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j25"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
USE="acl acpi aio amd64 bash-completion berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmap mmx mmxext modules multilib ncurses nls nptl openmp pam pcre readline session smp sse sse2 ssl ssse3 threads unicode vim-syntax zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Drunkard Zhang 2015-05-07 04:17:55 UTC
Created attachment 402802 [details]
build.log

build log
Comment 2 Charlie Gehlin 2015-05-07 15:54:23 UTC
Confirming, ~amd64 here too.
I manually downloaded the header from
https://github.com/oetiker/rrdtool-1.x/blob/master/src/rrd_rados.h
and put in the src-dir, then a manual 'make' continues. For a while..

Next up is:
Making all in doc
make[1]: Entering directory '/var/tmp/portage/net-analyzer/rrdtool-1.5.2/work/rrdtool-1.5.2/doc'
make[1]: *** No rule to make target 'rrdrados.pod', needed by 'all-am'.  Stop.
make[1]: Leaving directory '/var/tmp/portage/net-analyzer/rrdtool-1.5.2/work/rrdtool-1.5.2/doc'
Makefile:568: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

but I suppose that's another report..
Comment 3 Charlie Gehlin 2015-05-07 16:35:05 UTC
Thing is, rrd_rados.h is missing in rrdtool-1.5.3 source-zip as well, but a raw manual download from GIT-hub makes 1.5.3 compile fine all the way.
Comment 4 Andrew Miller 2015-05-07 21:49:34 UTC
I can reproduce this bug, it happens when you have sys-cluster/ceph installed prior to installing rrdtool.

(In reply to Charlie Gehlin from comment #3)
> Thing is, rrd_rados.h is missing in rrdtool-1.5.3 source-zip as well, but a
> raw manual download from GIT-hub makes 1.5.3 compile fine all the way.

I guess rrd_rados.h was provided externally (by ceph) in old versions of rrdtool, and internally in new versions of rrdtool.

We need to look at the CHANGES/README/INSTALL files to see what versions of ceph are needed, then add that as dependency to rrdtool-1.5.2.ebuild, rrdtool-1.5.3.ebuild, etc.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2015-05-15 04:42:23 UTC
All right, then we need a USE=rados and a dependency, and we need to ship the headers that upstream missed. This is not fixed in 1.5.3 but I'll add it to 1.5.3-r1.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2015-05-15 05:51:44 UTC
I can't actually test against sys-cluster/ceph since it injects all kinds of unsupported CFLAGS that break the build later on. Could anyone here do the honours?

USE=rados emerge -v net-analyzer/rrdtool-1.5.3-r1
Comment 7 Andrew Miller 2015-05-25 18:10:59 UTC
Created attachment 403950 [details]
rrdtool-1.5.3-r1.ebuild.patch

(In reply to Jeroen Roovers from comment #6)

You're still missing a file.

Once you have src/rrd_rados.h and doc/rrdrados.pod, it builds.

> echo 'net-analyzer/rrdtool rados' > /etc/portage/package.use/rrdtool
> echo '=net-analyzer/rrdtool-1.5.3-r1 ~amd64' > /etc/portage/package.accept_keywords/rrdtool
> emerge =net-analyzer/rrdtool-1.5.3-r1
[snip]
>>> Installing (1 of 1) net-analyzer/rrdtool-1.5.3-r1::testing

Do you think it's worth commenting in the ebuild this is a temporary fix?
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2015-05-26 04:57:12 UTC
(In reply to Andrew Miller from comment #7)
> Created attachment 403950 [details]
> rrdtool-1.5.3-r1.ebuild.patch
> 
> (In reply to Jeroen Roovers from comment #6)
> 
> You're still missing a file.
> 
> Once you have src/rrd_rados.h and doc/rrdrados.pod, it builds.

Added.

> Do you think it's worth commenting in the ebuild this is a temporary fix?

In "cp ..." I changed ${PN}-1.5.3 to ${P} so that on the next bump, maintainers would look at that bit of failing code and hopefully check whether those files are still needed.