Anyone has been able to use mrtg on openbsd 3.3 ? I've some trouble which could be a mrtg problem or a gd problem.
I've installed gd and dependencies from openbsd ports: freetype-1.3.1 free and portable TrueType font rendering engine freetype-doc-1.3.1 documentation for FreeType png-1.2.5p1 library for manipulating PNG images jpeg-6b IJG's JPEG compression utilities gd-1.8.3 graphics library for fast PNG creation p5-GD-1.41p1 module to interface with the GD graphics library GD from perl does seem to work OK, at least this does produce a correct black 32x32 png with a blue line: use GD; $im = new GD::Image(32,32); $c0=$im->colorAllocate(0,0,0); $im->fill(0,0,$c0); $c1=$im->colorAllocate(30,150,240); $im->line(0,0,31,31,$c1); open O,">out.png" or die; print O $im->png; close O; However, with mrtg: Untar/gz mrtg 2.9.29 . #./configure --with-gd-inc=/usr/local/include --with-png-inc=/usr/local/include --with-gd-lib=/usr/local/lib --with-png-lib=/usr/local/lib #make gcc -I/usr/local/include -I/usr/local/include -DGFORM_GD=gdImagePng -g -O2 -Wall -Wpointer-arith -Wcast-align -Wmissing-declarations -Wnested-externs -Winline -W -DHAVE_CONFIG_H -c ./src/rateup.c -o bin/rateup.o LD_RUN_PATH=/usr/local/lib:/usr/local/lib gcc bin/rateup.o -o bin/rateup -L/usr/local/lib -L/usr/local/lib -lm -Wl,-Bstatic -lgd -lpng -lz -Wl,-Bdynamic gd_png.o: Undefined symbol `_gdGetBuf' referenced from text segment gd_png.o: Undefined symbol `_gdPutBuf' referenced from text segment gd_png.o: Undefined symbol `_gdNewFileCtx' referenced from text segment gd_png.o: Undefined symbol `_gdGetBuf' referenced from text segment gd_png.o: Undefined symbol `_gdNewFileCtx' referenced from text segment gd_png.o: Undefined symbol `_gdNewDynamicCtx' referenced from text segment gd_png.o: Undefined symbol `_gdDPExtractData' referenced from text segment collect2: ld returned 1 exit status *** Error code 1 Stop in /usr/local/src/mrtg-2.9.29 (line 29 of Makefile). #strings /usr/local/lib/libgd.so.18.3 |grep _gdGetBuf _gdGetBuf However, if I move the -lgd before -lm linking does work, but then rateup still won't work: #LD_RUN_PATH=/usr/local/lib:/usr/local/lib gcc bin/rateup.o -o bin/rateup -L/usr/local/lib -L/usr/local/lib -lgd -lm -Wl,-Bstatic -lpng -lz -Wl,-Bdynamic #make /usr/bin/perl -0777 -p -i~ -e '[EMAIL PROTECTED]/[EMAIL PROTECTED] /usr/bin/perl@' ./bin/cfgmaker ./bin/indexmaker ./bin/mrtg /usr/bin/perl -0777 -p -i~ -e '[EMAIL PROTECTED]"...";@GRAPHFMT="png";@' ./bin/mrtg ./bin/indexmaker #bin/rateup /usr/libexec/ld.so: Undefined symbol "_jpeg_resync_to_restart" in rateup:/usr/local/lib/libgd.so.18.3 This seems a gd problem, on the other hand as showed before I can use gd from perl without problems. Any idea ? Heiko -- -- PREVINET S.p.A. www.previnet.it -- Heiko Herold [EMAIL PROTECTED] -- +39-041-5907073 ph -- +39-041-5907472 fax -- Unsubscribe mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/mrtg FAQ http://faq.mrtg.org Homepage http://www.mrtg.org WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
