Re: [Nagios-devel] Troubles building statically - 1.0b6

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Troubles building statically - 1.0b6

Post by Guest »

> >
> > And GDLIBS includes -lpng. Um. Now I'm lost, because I'm
> > a lowly sysadmin and not a developer. ;) I know this is basic
> > stuff, and I googled for a while without much luck, so I'd appreciate
> > any hints/cluebats anyone could give me. :) With my limited
> > experience with code, I don't understand why the above symbols
> > were undefined.

Hey folks,

OK. With some help from a friend, and some divine intervention,
I've figured out the static thing. Upon further thought, I think it's
going to be smoother to run the daemon in userland, and just build
the CGI's statically. The CGI's bulk up quite a bit when built
statically (to be expected), be warned.

The first patch I've worked out, for OpenBSD 3.2 and its
chroot'ed Apache, is the following:

http://www.bennyvision.com/projects/nag ... v0.1.patch

Do the './configure --your-options-here' dance, and then
copy the patch into the directory Nagios unpacked into. A quick
'patch < nagios-1.0b5-static-cgi-v0.1.patch', and 'make all'. The
CGI's should all build statically, providing you've installed libgd,
libpng, and libjpeg. It's really a silly little patch, but it works,
and I learned a few things. :)

More patches to follow... Please, any input is very welcome -
I'm not a developer, so if I'm making any stoopid mistakes, I would
really appreciate a heads-up. :)

Thanks!

Benny


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There's always time for Cheerios...






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: benny@bennyvision.com
Locked