I'm trying to setup mrtg to monitor my postfix statistics using the
postfix-stats-get.c found on
http://www.packetmischief.ca/network/monitoring/postfix/
When I do 'gcc -DLINUX -ldb -o postfix-stats-get postfix-stats-get.c' I
get the following errors:
[root@moe bin]# gcc -DLINUX -ldb -o postfix-stats-get postfix-stats-get.c
postfix-stats-get.c:17:20: error: db_185.h: No such file or directory
postfix-stats-get.c: In function ‘main’:
postfix-stats-get.c:26: error: ‘DB’ undeclared (first use in this function)
postfix-stats-get.c:26: error: (Each undeclared identifier is reported
only once
postfix-stats-get.c:26: error: for each function it appears in.)
postfix-stats-get.c:26: error: ‘db’ undeclared (first use in this function)
postfix-stats-get.c:27: error: ‘DBT’ undeclared (first use in this function)
postfix-stats-get.c:27: error: expected ‘;’ before ‘key’
postfix-stats-get.c:30: warning: incompatible implicit declaration of
built-in function ‘exit’
postfix-stats-get.c:33: error: ‘DB_HASH’ undeclared (first use in this
function)
postfix-stats-get.c:38: warning: incompatible implicit declaration of
built-in function ‘memset’
postfix-stats-get.c:38: error: ‘key’ undeclared (first use in this function)
postfix-stats-get.c:39: error: ‘value’ undeclared (first use in this
function)
postfix-stats-get.c:41: warning: incompatible implicit declaration of
built-in function ‘strlen’
[root@moe bin]#
It seems that I'm apparently missing at least the file db_185.h and
perhaps something else as well. Knowing less than nothing about C, what
do I need to do to resolve this?
Thanks for any tips / assistance!
M
--
As far as we know, our computer has never had an undetected error. -
Weisert
16:10:01 up 4 days, 1:13, 9 users, load average: 0.51, 0.28, 0.15
Linux Registered User #241685 http://counter.li.org