Further problems with NDO Utils

Andreas Ericsson ae at op5.se
Thu Sep 13 13:25:25 CEST 2007


tom.welsh at bt.com wrote:
>  Hi Andreas, Ton
> 
>> Hmm. I was curious to see if it would fix the problems when
>> libmysqlclient.so.15 was *not* in the configured path.
> 
> But to cut a long story short, it didn't work if I removed the entry
> from ld.so.conf. I have no problems spending time trying to assist in
> fixing this if you guys want to tell me what to try. Unfortunately not
> being a programmer my gcc / make knowledge is minimal.
> 
> So here's what I tried and what the output was.
> 
> 
> 1. Edit ld.so.conf 
>    
>    Remove the entry for /usr/local/mysql/lib/mysql
> 

[ middle-steps cut out for brevity ]

> 6. Run ldd on resultant ndo2db binary
> 
> ldd src/ndo2db-2x
> linux-gate.so.1 =>  (0xffffe000)
> libnsl.so.1 => /lib/libnsl.so.1 (0x4001f000)
> libmysqlclient.so.15 => not found
> libz.so.1 => /lib/libz.so.1 (0x40034000)
> libcrypt.so.1 => /lib/libcrypt.so.1 (0x40045000)
> libm.so.6 => /lib/tls/libm.so.6 (0x40076000)
> libc.so.6 => /lib/tls/libc.so.6 (0x40099000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> 
> Bummer, didn't pick up libmysqlclient.so.15
> 

Well, it's good to know anyways. Now the altinity patch has had some
serious review and a minor flaw, which is probably trivial to fix,
has been found in it. Once it's fixed it can be resubmitted to Ethan
and this particular problem shouldn't bother users in the future.

Again, thanks for testing this. It was most valuable :)


> 7. OK try with some CPPFLAGS
> 
> make CPPFLAGS=-I/usr/local/mysql/include
> 

The CPPFLAGS variable only works for altering preprocessor options,
and only if they're honored by the Makefile while creating the
various targets. When the binary is produced but has lost a path to
one of the libraries it's linked to, it won't do any good.

I'll see if I can amend the ndoutils Makefile with the few extra
lines required to make it honor CPPFLAGS.

Again, thanks.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list