Open jessereynolds opened 10 years ago
By copying in some build options from the nagios example module I was able to get this building on my Mac, it's a bit of a stab in the dark though -- I'll only close this issue if I can test it working properly. (I'm assuming the symbols will resolve properly when the module is loaded into nagios
, I can't see any libraries it's supposed to be linking against or anything.)
(cd src ; gcc -fPIC -g -O2 -DHAVE_CONFIG_H -DNSCORE -o flapjackfeeder.o flapjackfeeder.c -flat_namespace -undefined suppress -shared -fPIC ../../hiredis/libhiredis.a; strip -x flapjackfeeder.o)
The -flat_namespace -undefined suppress
and the -x
option to strip
are the new parts.
No, it shows the following error when loaded into nagios:
Could not load module 'flapjackfeeder.o' -> dlopen(/usr/local/var/lib/nagios/spool/checkresults/nebmod8TJzTl, 10): Symbol not found: _find_host
I've also compiled the helloworld
module that comes with nagios as an example, and that can't be loaded either.
Currently the build instructions in the readme only work for linux I think. Here's what happens when I somewhat naively try building on Mac OS X 10.8.5:
On Mac, hiredis builds a libhiredis.dylib, not libhiredis.a, so changing that name gets a little bit further: