I'm having trouble building rrdtool 1.4.5 on SuSE Linux 10.2. Looks like the
Makefile for rrdtool can't find glib.h.
The critical part of the make output seems to be:
CC rrdcached-rrd_daemon.o
rrd_daemon.c:116:27: error: glib-2.0/glib.h: No such file or directory
rrd_daemon.c:254: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â
before â*â token
Noticing the special characters, I wonder if I have a $LANG problem.
I installed glib-2 from source into the (hoped-for!) install dir for rrdtool
and I think I have all the environmental vars set as laid out in the rrdtool
build instructions.
export INSTALL_DIR=/usr/local/nagios/rrdtool-1.4.5
export LDFLAGS="-Wl,--rpath -Wl,${INSTALL_DIR}/lib"
export PKG_CONFIG_PATH=${INSTALL_DIR}/lib/pkgconfig
glib built and installed with no apparent problems using
./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC" && make && make install
Here's the complete make output for rrdtool:
make all-recursive
make[1]: Entering directory `/opt/nagios/src/rrdtool-1.4.5'
Making all in po
make[2]: Entering directory `/opt/nagios/src/rrdtool-1.4.5/po'
make[2]: Leaving directory `/opt/nagios/src/rrdtool-1.4.5/po'
Making all in src
make[2]: Entering directory `/opt/nagios/src/rrdtool-1.4.5/src'
CC hash_32.lo
CC pngsize.lo
CC rrd_create.lo
CC rrd_graph.lo
CC rrd_graph_helper.lo
CC rrd_version.lo
CC rrd_last.lo
CC rrd_lastupdate.lo
CC rrd_first.lo
CC rrd_restore.lo
CC rrd_xport.lo
CC rrd_gfx.lo
CC rrd_dump.lo
CC rrd_flushcached.lo
CC rrd_fetch.lo
CC rrd_resize.lo
CC rrd_tune.lo
CC rrd_parsetime.lo
CC rrd_hw.lo
CC rrd_hw_math.lo
CC rrd_hw_update.lo
CC rrd_diff.lo
CC rrd_format.lo
CC rrd_info.lo
CC rrd_error.lo
CC rrd_open.lo
CC rrd_client.lo
CC rrd_nan_inf.lo
CC rrd_rpncalc.lo
CC rrd_utils.lo
CC rrd_update.lo
CC rrd_not_thread_safe.lo
CCLD librrdupd.la
CCLD librrd.la
CC librrd_th_la-rrd_parsetime.lo
CC librrd_th_la-rrd_hw.lo
CC librrd_th_la-rrd_hw_math.lo
CC librrd_th_la-rrd_hw_update.lo
CC librrd_th_la-rrd_diff.lo
CC librrd_th_la-rrd_format.lo
CC librrd_th_la-rrd_info.lo
CC librrd_th_la-rrd_error.lo
CC librrd_th_la-rrd_open.lo
CC librrd_th_la-rrd_client.lo
CC librrd_th_la-rrd_nan_inf.lo
CC librrd_th_la-rrd_rpncalc.lo
CC librrd_th_la-rrd_utils.lo
CC librrd_th_la-rrd_update.lo
CC librrd_th_la-hash_32.lo
CC librrd_th_la-pngsize.lo
CC librrd_th_la-rrd_create.lo
CC librrd_th_la-rrd_graph.lo
CC librrd_th_la-rrd_graph_helper.lo
CC librrd_th_la-rrd_version.lo
CC librrd_th_la-rrd_last.lo
CC librrd_th_la-rrd_lastupdate.lo
CC librrd_th_la-rrd_first.lo
CC librrd_th_la-rrd_restore.lo
CC librrd_th_la-rrd_xport.lo
CC librrd_th_la-rrd_gfx.lo
CC librrd_th_la-rrd_dump.lo
CC librrd_th_la-rrd_flushcached.lo
CC librrd_th_la-rrd_fetch.lo
CC librrd_th_la-rrd_resize.lo
CC librrd_th_la-rrd_tune.lo
CC librrd_th_la-rrd_thread_safe.lo
CCLD librrd_th.la
CC rrd_tool.o
In file included from rrd_i18n.h:18,
from rrd_tool.c:19:
gettext.h:176:6: warning: "__STRICT_ANSI__" is not defined
gettext.h:200:5: warning: "__STRICT_ANSI__" is not defined
gettext.h:215:6: warning: "__STRICT_ANSI__" is not defined
gettext.h:246:5: warning: "__STRICT_ANSI__" is not defined
gettext.h:261:6: warning: "__STRICT_ANSI__" is not defined
CCLD rrdtool
CC rrdupdate.o
CCLD rrdupdate
CC rrdcached-rrd_daemon.o
rrd_daemon.c:116:27: error: glib-2.0/glib.h: No such file or directory
rrd_daemon.c:254: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â
before â*â token
rrd_daemon.c: In function âadd_response_infoâ:
rrd_daemon.c:548: warning: implicit declaration of function âva_startâ
rrd_daemon.c:548: warning: nested extern declaration of âva_startâ
rrd_daemon.c:554: warning: implicit declaration of function âva_endâ
rrd_daemon.c:554: warning: nested extern declaration of âva_endâ
rrd_daemon.c: At top level:
rrd_daemon.c:777: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â
before âtree_callback_flushâ
rrd_daemon.c: In function âflush_old_valuesâ:
rrd_daemon.c:829: warning: implicit declaration of function âg_tree_foreachâ
rrd_daemon.c:829: warning: nested extern declaration of âg_tree_foreachâ
rrd_daemon.c:829: error: âcache_treeâ undeclared (first use in this function)
rrd_daemon.c:829: error: (Each undeclared identifier is reported only once
rrd_daemon.c:829: error: for each function it appears in.)
rrd_daemon.c:829: error: âtree_callback_flushâ undeclared (first use in this
function)
rrd_daemon.c:829: error: âgpointerâ undeclared (first use in this function)
rrd_daemon.c:833: error: âgbooleanâ undeclared (first use in this function)
rrd_daemon.c:833: error: expected â;â before âstatusâ
rrd_daemon.c:836: error: âstatusâ undeclared (first use in this function)
rrd_daemon.c:836: error: âTRUEâ undeclared (first use in this function)
rrd_daemon.c: In function âqueue_thread_mainâ:
rrd_daemon.c:966: warning: implicit declaration of function âg_tree_lookupâ
rrd_daemon.c:966: warning: nested extern declaration of âg_tree_lookupâ
rrd_daemon.c:966: error: âcache_treeâ undeclared (first use in this function)
rrd_daemon.c:966: warning: cast to pointer from integer of different size
rrd_daemon.c: In function âflush_fileâ:
rrd_daemon.c:1110: error: âcache_treeâ undeclared (first use in this function)
rrd_daemon.c:1110: warning: cast to pointer from integer of different size
rrd_daemon.c: In function âhandle_request_statsâ:
rrd_daemon.c:1166: warning: implicit declaration of function âg_tree_nnodesâ
rrd_daemon.c:1166: warning: nested extern declaration of âg_tree_nnodesâ
rrd_daemon.c:1166: error: âcache_treeâ undeclared (first use in this function)
rrd_daemon.c:1167: warning: implicit declaration of function âg_tree_heightâ
rrd_daemon.c:1167: warning: nested extern declaration of âg_tree_heightâ
rrd_daemon.c: In function âhandle_request_pendingâ:
rrd_daemon.c:1257: error: âcache_treeâ undeclared (first use in this function)
rrd_daemon.c:1257: warning: assignment makes pointer from integer without a cast
rrd_daemon.c: In function âhandle_request_forgetâ:
rrd_daemon.c:1274: error: âgbooleanâ undeclared (first use in this function)
rrd_daemon.c:1274: error: expected â;â before âfoundâ
rrd_daemon.c:1285: error: âfoundâ undeclared (first use in this function)
rrd_daemon.c:1285: warning: implicit declaration of function âg_tree_removeâ
rrd_daemon.c:1285: warning: nested extern declaration of âg_tree_removeâ
rrd_daemon.c:1285: error: âcache_treeâ undeclared (first use in this function)
rrd_daemon.c:1288: error: âTRUEâ undeclared (first use in this function)
rrd_daemon.c: In function âhandle_request_updateâ:
rrd_daemon.c:1345: error: âcache_treeâ undeclared (first use in this function)
rrd_daemon.c:1345: warning: assignment makes pointer from integer without a cast
rrd_daemon.c:1400: warning: assignment makes pointer from integer without a cast
rrd_daemon.c:1402: warning: implicit declaration of function âg_tree_replaceâ
rrd_daemon.c:1402: warning: nested extern declaration of âg_tree_replaceâ
rrd_daemon.c: In function âhandle_request_wroteâ:
rrd_daemon.c:1490: error: âcache_treeâ undeclared (first use in this function)
rrd_daemon.c:1490: warning: assignment makes pointer from integer without a cast
rrd_daemon.c: In function âdaemonizeâ:
rrd_daemon.c:2767: error: âcache_treeâ undeclared (first use in this function)
rrd_daemon.c:2767: warning: implicit declaration of function âg_tree_new_fullâ
rrd_daemon.c:2767: warning: nested extern declaration of âg_tree_new_fullâ
rrd_daemon.c:2767: error: âGCompareDataFuncâ undeclared (first use in this
function)
rrd_daemon.c:2767: error: expected â)â before âstrcmpâ
rrd_daemon.c: In function âcleanupâ:
rrd_daemon.c:2801: warning: implicit declaration of function âg_tree_destroyâ
rrd_daemon.c:2801: warning: nested extern declaration of âg_tree_destroyâ
rrd_daemon.c:2801: error: âcache_treeâ undeclared (first use in this function)
make[2]: *** [rrdcached-rrd_daemon.o] Error 1
make[2]: Leaving directory `/opt/nagios/src/rrdtool-1.4.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/nagios/src/rrdtool-1.4.5'
make: *** [all] Error 2
Andy Ford
Network Security Engineer | Solutions Design & Automation| Information Security
Technology
314-348-4937
[email protected]
_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users