[....... cgilib-0.5]# make install
cc -I. -Wall -O2 -g -c -o cgitest.o cgitest.c
cgitest.c: In function `main':
cgitest.c:108: warning: implicit declaration of function `strcmp'
cgitest.c:116: error: syntax error before "Library"
cgitest.c:129: warning: implicit declaration of function `strlen'
make: *** [cgitest.o] Error 1
icepick said:Hi,
I'd like to get this working, however I guess we need the mailgraph-exim that was originally posted, does anyone have it?
print "<P><IMG BORDER=\"0\" SRC=\"$scriptname/mailgraph_${n}.png\" ALT=\"mailgraph\">\n";
print "<P><IMG BORDER=\"0\" SRC=\"$scriptname/mailgraph_${n}_err.png\" ALT=\"mailgraph\">\n";
2005-11-24 00:12:41 H=69-171-206-52.sbtnvt.adelphia.net [69.171.206.52] F=<[email protected]> rejected RCPT <webmaster@****>: SPAM Sorry but you're blacklisted at cbl.abuseat.org! to unblock 69-171-206-52.sbtnvt.adelphia.net see http://*****/
2005-11-24 00:12:41 H=69-171-206-52.sbtnvt.adelphia.net [69.171.206.52] F=<[email protected]> rejected RCPT <admin@****>: SPAM Sorry but you're blacklisted at cbl.abuseat.org! to unblock 69-171-206-52.sbtnvt.adelphia.net see http://*****/
20
use lib qw( /usr/local/rrdtool/lib/perl ../lib/perl );
[root@server mailgraph]# ./mailgraph.cgi
Can't locate RRDs.pm in @INC (@INC contains: /usr/local/rrdtool/lib/perl ../lib/perl /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-mult.
BEGIN failed--compilation aborted at ./mailgraph.cgi line 7.
rocketcity said:when editing mailgraph.cgi, do you remove the line use RRDs;?
[2005-12-12 16:31:50]: info: (target/actual) uid: (admin/admin) gid: (admin/admin) cmd: mailgraph.cgi
[2005-12-12 16:31:50]: error: target uid/gid (501/502) mismatch with directory (501/502) or program (0/0)
However I keep receiving this error whenever I run mailgraph.cgi:* Edit mailgraph.cgi and mailgraph.pl
* Add this after the comments: use lib qw( /usr/local/rrdtool/lib/perl ../lib/perl );
* Fire it up from shell:
- ./mailgraph.cgi
Can't locate object method "bootstrap" via package "RRDs" at /usr/local/rrdtool/lib/perl/5.8.7/i686-linux/RRDs.pm line 12.
Compilation failed in require at ./mailgraph.cgi line 8.
BEGIN failed--compilation aborted at ./mailgraph.cgi line 8.
Findr 3rd-Party Libraries
checking for art_vpath_add_point in -lart_lgpl_2... yes
checking libart_lgpl/libart.h usability... no
checking libart_lgpl/libart.h presence... no
checking for libart_lgpl/libart.h... no
checking for pkg-config... no
configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of libart-2.0. Check config.log for hints on why
this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
so that compiler and the linker can find libart_lgpl_2 and its header files. If
you have not installed libart-2.0, you can get it either from its original home on
ftp://ftp.gnome.org/pub/GNOME/sources/libart_lgpl/2.3/
You can find also find an archive copy on
http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/libs
The last tested version of libart-2.0 is 2.3.17.
LIBS=-lm
LDFLAGS=
CPPFLAGS= -I/usr/include/libart-2.0
----------------------------------------------------------------------------
checking for zlibVersion in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for png_access_version_number in -lpng... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for FT_Init_FreeType in -lfreetype... yes
checking ft2build.h usability... no
checking ft2build.h presence... no
checking for ft2build.h... no
checking for pkg-config... no
configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of freetype2. Check config.log for hints on why
this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
so that compiler and the linker can find libfreetype and its header files. If
you have not installed freetype2, you can get it either from its original home on
http://prdownloads.sourceforge.net/freetype/
You can find also find an archive copy on
http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/libs
The last tested version of freetype2 is 2.1.9.
LIBS=-lpng -lz -lm
LDFLAGS=
CPPFLAGS= -I/usr/include/freetype2
----------------------------------------------------------------------------
configure: error: Please fix the library issues listed above and try again.
/rrdtool-1.2.12#
Chrysalis said:exim is unknown type, I am wondering how the OP got it working if exim isnt a syslog type.