Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194336 - sys-cluster/ganglia-3.0.3 fails to compile if check is installed
Summary: sys-cluster/ganglia-3.0.3 fails to compile if check is installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 172206
  Show dependency tree
 
Reported: 2007-10-01 02:46 UTC by Carlo Marcelo Arenas Belon
Modified: 2010-09-10 19:01 UTC (History)
0 users

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


Attachments
fixes build of check_confuse and removes it from the all target (ganglia-3.0.3-check-confuse.patch,655 bytes, patch)
2007-10-01 06:38 UTC, Carlo Marcelo Arenas Belon
Details | Diff
adds a HAVE_CHECK conditional to be used for make check if FEATURE="test" (ganglia-3.0.3-have-check.patch,1.03 KB, patch)
2007-10-01 06:44 UTC, Carlo Marcelo Arenas Belon
Details | Diff
ebuild for ganglia 3.0.3 that includes fixes (ganglia-3.0.3-r1.ebuild,1.33 KB, text/plain)
2007-10-01 06:54 UTC, Carlo Marcelo Arenas Belon
Details
ebuild for ganglia 3.0.3 that includes fixes (ganglia-3.0.3-r1.ebuild,1.33 KB, text/plain)
2007-10-01 07:22 UTC, Carlo Marcelo Arenas Belon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carlo Marcelo Arenas Belon 2007-10-01 02:46:38 UTC
during configuration of libconfuse (included as part of ganglia), if check version 0.8.2 or higher is found as shown by :

checking for check - version >= 0.8.2... yes

then the "tests" directory is also built, leading to this failure :

Making all in tests
make[5]: Entering directory `/var/tmp/portage/sys-cluster/ganglia-3.0.3/work/gan
glia-3.0.3/srclib/confuse/tests'
if gcc -DHAVE_CONFIG_H -I. -I. -I..     -march=athlon64 -pipe -O2 -MT check_conf
use.o -MD -MP -MF ".deps/check_confuse.Tpo" -c -o check_confuse.o check_confuse.
c; \
        then mv -f ".deps/check_confuse.Tpo" ".deps/check_confuse.Po"; else rm -
f ".deps/check_confuse.Tpo"; exit 1; fi
check_confuse.c:2:21: error: confuse.h: No such file or directory
check_confuse.c:10: error: expected ')' before '*' token
make[5]: *** [check_confuse.o] Error 1
make[5]: Leaving directory `/var/tmp/portage/sys-cluster/ganglia-3.0.3/work/gang
lia-3.0.3/srclib/confuse/tests'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/sys-cluster/ganglia-3.0.3/work/gang
lia-3.0.3/srclib/confuse'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/sys-cluster/ganglia-3.0.3/work/gang
lia-3.0.3/srclib/confuse'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-cluster/ganglia-3.0.3/work/gang
lia-3.0.3/srclib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-cluster/ganglia-3.0.3/work/gang
lia-3.0.3'
make: *** [all] Error 2
 *
 * ERROR: sys-cluster/ganglia-3.0.3 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   ganglia-3.0.3.ebuild, line 27:   Called die
 *
 * (no error message)
 * If you need support, post the topmost build error, and the call stack if rele
vant.
 * A complete build log is located at '/var/tmp/portage/sys-cluster/ganglia-3.0.
3/temp/build.log'.

Reproducible: Always

Steps to Reproduce:
1. emerge -Dv check
2. echo "sys-cluster/ganglia ~amd64" >> /etc/portage/package.keywords
3. emerge -Duv ganglia

Actual Results:  
compilation failure if following conditions are met (as per the example, otherwise tune)

1. running "amd64", otherwise change step 2 and confirm you have a recent enough check
2. ganglia-3.0.3 is not already installed otherwise change -Duv with -Dv in step 3.

Expected Results:  
ganglia merged

regardless of the fact that check should had been listed as a build dependency (most likely only if FEATURE="test") and selectable at configuration time, the check compilation error was fixed upstream and will be released with ganglia-3.0.5 as shown by :

http://ganglia.svn.sourceforge.net/viewvc/ganglia/trunk/monitor-core/srclib/confuse/tests/Makefile.am?r1=440&r2=701
Comment 1 Carlo Marcelo Arenas Belon 2007-10-01 06:38:07 UTC
Created attachment 132289 [details, diff]
fixes build of check_confuse and removes it from the all target

as shown in the linked upstream commit and backported for ganglia-3.0.3.
Comment 2 Carlo Marcelo Arenas Belon 2007-10-01 06:44:34 UTC
Created attachment 132290 [details, diff]
adds a HAVE_CHECK conditional to be used for make check if FEATURE="test"

backported from SVN for ganglia-3.0.3, will require an intrusive autoreconf which also fixes a back in the generated aclocal that shows an script error at build
Comment 3 Carlo Marcelo Arenas Belon 2007-10-01 06:54:52 UTC
Created attachment 132291 [details]
ebuild for ganglia 3.0.3 that includes fixes

adds the following functionalities when compared with =sys-cluster/ganglia-3.0.3 which was used as a base :

* inherit eutils for epatch
* inherit autotools for eautoreconf
* WANT_AUTOMAKE=1.8 and DEPEND >=sys-devel/automake-1.7.2 for eautomake
* add IUSE="test" and DEPEND >=dev-libs/checl-0.8.2 for FEATURE="test"
Comment 4 Carlo Marcelo Arenas Belon 2007-10-01 07:22:42 UTC
Created attachment 132292 [details]
ebuild for ganglia 3.0.3 that includes fixes

tested in ~amd64 and ~x86
Comment 5 Carlo Marcelo Arenas Belon 2007-12-17 16:11:35 UTC
this bug shouldn't block BUG 172206 because the problem reported here was fixed upstream for that release.

upgrading to 3.0.6 is recommended as it includes security fixes that won't be available in this version unless backported.

a working ebuild for 3.0.3-r1 and all needed patches is available in the following external overlay :

  layman -f -o http://tapir.sajinet.com.pe/gentoo/layman.xml -a sajinet
Comment 6 Justin Bronder (RETIRED) gentoo-dev 2008-01-05 02:25:30 UTC
I've put ganglia-3.0.6 in the tree.  As you mentioned, this is fixed in that release and as 3.0.3 never went stable I'm going to close this bug.  Please reopen if you feel this is the wrong decision.