Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 231186 - net-analyzer/bmon-2.1.0-r3: fails to compile
Summary: net-analyzer/bmon-2.1.0-r3: fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-08 15:06 UTC by Jan Paesmans
Modified: 2008-07-26 18:13 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Paesmans 2008-07-08 15:06:45 UTC
bmon-2.1.0-r3 fails to compile with the use-flags dbi and rrdtool active. The problem is a missing '=' in the source code, file out_db.c line 682

Reproducible: Always

Steps to Reproduce:
1.emerge -v bmon (USE="dbi rrdtool")
2.
3.

Actual Results:  
  CC out_db.c
out_db.c:682: error: expected '=' before 'db_shutdown'
make[1]: *** [out_db.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2
 * 
 * ERROR: net-analyzer/bmon-2.1.0-r3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2048:  Called die
 * The specific snippet of code:
 *       emake CPPFLAGS="${CXXFLAGS} -I${WORKDIR}/libnl-${NLVER}/include" || die "emake failed"
 *  The die message:
 *   emake failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-analyzer/bmon-2.1.0-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/bmon-2.1.0-r3/temp/environment'.
 * 



Fix:

--- out_db.c    2005-04-05 17:01:33.000000000 +0200
+++ out_db.c.new        2008-07-08 16:21:13.000000000 +0200
@@ -679,7 +679,7 @@ static struct output_module db_ops = {
        .om_draw = db_draw,
        .om_set_opts = db_set_opts,
        .om_probe = db_probe,
-       .om_shutdown db_shutdown,
+       .om_shutdown = db_shutdown,
 };

Already tried to warn one of the upstream maintainers.
Comment 1 Cédric Krier gentoo-dev 2008-07-26 18:13:09 UTC
Fix in cvs