[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] ssl and libpng compilation problem on solaris 9
> First problem at the configure (it's the same server where bigbrother 1.9e
> and bbgen 3.4 work perfectly):
> ...
> Checking for OpenSSL ...
> test-ssl.c:1:30: openssl/opensslv.h: No such file or directory
Just so I know what this is, where do you have the OpenSSL
include files (e.g. opensslv.h) ?
> make[1]: Entering directory `/usr/local/hobbit-4.0beta4-sources/hobbitd'
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DHAVE_RPCENT -DMAXMSG=32768
> -DBBDPORTNUMBER=1984 -I. -I/usr/local/hobbit-4.0beta4-sources/include -o
> hobbitd_larrd hobbitd_larrd.o hobbitd_worker.o do_larrd.o
> ../lib/libbbgen.a -L/usr/local/rrdtool-1.0.49/lib -lrrd -L/usr/local/lib
> -lpng -lm -lresolv -lsocket -lnsl
> Undefined first referenced
> symbol in file
> inflate /usr/local/lib/libpng.so
> crc32 /usr/local/lib/libpng.so
OK, so your libpng requires not only libm but also libz. Just for
testing, could you try modifying the top-level Makefile ? There is
a setting for RRDLIBS:
RRDLIBS = -L/usr/local/rrdtoo-1.0.49/lib -lrrd -L/usr/local/lib -lpng -lm
You need to add "-lz" before the "-lm", so it becomes
RRDLIBS = -L/usr/local/rrdtoo-1.0.49/lib -lrrd -L/usr/local/lib -lpng -lz -lm
Henrik