[rrd-users] Building an rrdtool rpm on RHEL3

Tom Diehl tdiehl at rogueind.com
Mon Feb 16 06:15:05 MET 2004


Hi all,

I am trying to build an rpm for rrd on an RHEL3 system using the spec file
included in the tarball. I keep getting the following error:
make[2]: Leaving directory `/usr/src/redhat/BUILD/rrdtool-1.0.46/contrib'
Making all in tcl
make[2]: Entering directory `/usr/src/redhat/BUILD/rrdtool-1.0.46/tcl'
Makefile:323: *** missing separator (did you mean TAB instead of 8 spaces?).  Stop.
make[2]: Leaving directory `/usr/src/redhat/BUILD/rrdtool-1.0.46/tcl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/rrdtool-1.0.46'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.22745 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.22745 (%build)

shell returned 1

I tried replacing the 8 spaces with a tab as suggested above but it still
blows up. These are the errors I get:

Making all in tcl
make[2]: Entering directory `/usr/src/redhat/BUILD/rrdtool-1.0.46/tcl'
gcc -O2 -g -march=i386 -mcpu=i686 -Wall -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -fPIC  -c tclrrd.c -DVERSION=\"1.0.46\"
tclrrd.c:16:22: rrd_tool.h: No such file or directory
tclrrd.c:17:24: rrd_format.h: No such file or directory
tclrrd.c: In function `getopt_init':
tclrrd.c:37: `optind' undeclared (first use in this function)
tclrrd.c:37: (Each undeclared identifier is reported only once
tclrrd.c:37: for each function it appears in.)
tclrrd.c:39: warning: implicit declaration of function `calloc'
tclrrd.c:39: warning: assignment makes pointer from integer without a cast
tclrrd.c:41: warning: implicit declaration of function `strdup'
tclrrd.c:41: warning: assignment makes pointer from integer without a cast
tclrrd.c: In function `getopt_cleanup':
tclrrd.c:53: warning: implicit declaration of function `free'
tclrrd.c: In function `Rrd_Create':
tclrrd.c:70: warning: implicit declaration of function `rrd_create'
tclrrd.c:73: warning: implicit declaration of function `rrd_test_error'
tclrrd.c:75: warning: implicit declaration of function `rrd_get_error'
tclrrd.c:76: warning: implicit declaration of function `rrd_clear_error'
tclrrd.c: In function `Rrd_Dump':
tclrrd.c:95: warning: implicit declaration of function `rrd_dump'
tclrrd.c: In function `Rrd_Last':
tclrrd.c:123: warning: implicit declaration of function `rrd_last'
tclrrd.c: In function `Rrd_Update':
tclrrd.c:151: warning: implicit declaration of function `rrd_update'
tclrrd.c: In function `Rrd_Fetch':
tclrrd.c:175: `rrd_value_t' undeclared (first use in this function)
tclrrd.c:175: `data' undeclared (first use in this function)
tclrrd.c:175: `datai' undeclared (first use in this function)
tclrrd.c:175: warning: left-hand operand of comma expression has no effect
tclrrd.c:176: warning: ISO C90 forbids mixed declarations and code
tclrrd.c:182: warning: implicit declaration of function `rrd_fetch'
tclrrd.c:175: warning: statement with no effect
tclrrd.c: In function `Rrd_Graph':
tclrrd.c:226: warning: implicit declaration of function `rrd_graph'
tclrrd.c: In function `Rrd_Tune':
tclrrd.c:266: warning: implicit declaration of function `rrd_tune'
tclrrd.c: In function `Rrd_Resize':
tclrrd.c:291: warning: implicit declaration of function `rrd_resize'
tclrrd.c: In function `Rrd_Restore':
tclrrd.c:316: warning: implicit declaration of function `rrd_restore'
tclrrd.c: At top level:
tclrrd.c:357: warning: no previous prototype for `Tclrrd_Init'
make[2]: *** [tclrrd.o] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/rrdtool-1.0.46/tcl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/rrdtool-1.0.46'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.36971 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.36971 (%build)

shell returned 1

I do not understand how I can have an rrdtool.h when I am trying to build 
rrdtool.

Has anyone seen this problem? Is this spec file supposed to build?? 
Any ideas how to fix this? I searched the archives but did not see an answer
to my problem.

TIA,

Tom

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list