>> This application looks great but I can't still compile it. I tryed it on >> OpenBSD 3.7 and 3.5 but without success. There is problem with libpng. >> configure says that I have no libpng but I've compiled libpng 1.2.8. >> >> configure: error: Bandwidthd requires but cannot libpng >> >> config.log >> ------ >> configure:2858: gcc -o >> onftest -g -O2 -I/usr/local/include -L/usr/local/lib c >> onftest.c -lpng -liconv -lm -lresolv >&5 >> /usr/local/lib/libpng.so.4.0: undefined reference to `deflate' >> /usr/local/lib/libpng.so.4.0: undefined reference to `inflate' >> /usr/local/lib/libpng.so.4.0: undefined reference to `inflateInit_' >> /usr/local/lib/libpng.so.4.0: undefined reference to `crc32' >> /usr/local/lib/libpng.so.4.0: undefined reference to `deflateInit2_' >> /usr/local/lib/libpng.so.4.0: undefined reference to `inflateReset' >> /usr/local/lib/libpng.so.4.0: undefined reference to `deflateReset' >> /usr/local/lib/libpng.so.4.0: undefined reference to `inflateEnd' >> /usr/local/lib/libpng.so.4.0: undefined reference to `deflateEnd' >> >> Could you please help me? >> MK > > -lz.
doing this: ./configure CFLAGS=-lz gets me (on my i386/3.7 GENERIC) past the error Miroslav has, but now it's bailing with: checking for gdImageCreate in -lgd... no configure: error: Bandwidthd requires but cannot find libgd Given that I have both p5-GD and gd-1.8.3 installed from ports for other needs, I think I have all the requisite libs. Now the pertinent part of my config.log: <snip> configure:2923: $? = 1 configure: failed program was: #line 2901 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char gdImageCreate (); int main () { gdImageCreate (); ; return 0; } configure:2940: result: no configure:2950: error: Bandwidthd requires but cannot find libgd ------------------------ Lastly, even though this is really a bandwidthd issue and not an OpenBSD issue, I was hoping another hint or two from misc@ and we'd be off to the races with this app.... Thanks much, Kevin -- http://www.ebiinc.com EBI - employee background screening professionals Corporate background checks, globally.