Heh. Glad I could help. :)
On Wed, 27 Apr 2005, Jonathan Bibeau wrote:
> I just found the problem. I needed to install the package "libkrb5-dev" and
> then I used the other portion of your makefile that builds it with:
>
> all:
> gcc -Wall -g -O2 -o inserter.o inserter.c -shared
> -I/usr/src/nagios-2.0b3/include -I/usr/include/postgresql /usr/lib/libpq.a
> -lssl -lkrb5 -lcrypt
>
> This worked and its now writing to the database properly. Thanks again for
> your help!
>
> Regards,
> Jon
>
> -----Original Message-----
> From: nag...@li...
> [mailto:nag...@li...] On Behalf Of Jonathan
> Bibeau
> Sent: Wednesday, April 27, 2005 3:11 PM
> To: 'Ben'
> Cc: nag...@li...
> Subject: RE: [Nagios-db-devel] Problem with loading the inserter.o NEB
> module
>
> Hi Ben,
>
> Here is the output from that command.
>
> nms:/usr/src/nagios-db-0.91/neb/mysql# ldd
> /usr/local/nagios/modules/inserter.o
> libc.so.6 => /lib/tls/libc.so.6 (0x40023000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
>
> Regards,
> Jon
>
> -----Original Message-----
> From: nag...@li...
> [mailto:nag...@li...] On Behalf Of Ben
> Sent: Wednesday, April 27, 2005 3:04 PM
> To: Jonathan Bibeau
> Cc: nag...@li...
> Subject: Re: [Nagios-db-devel] Problem with loading the inserter.o NEB
> module
>
> What does `ldd /usr/local/nagios/modules/inserter.o` say?
>
> On Wed, 27 Apr 2005, Jonathan Bibeau wrote:
>
> > Greetings.
> >
> > I'm running Debian unstable, compiled and installed Nagios 2.0b3 (with
> > Event Broker support), and was working on setting up nagios-db, but
> > ran into some problems. I've compiled the inserter.o under both your
> > release branch and the version in CVS without any problems, but when
> > Nagios tried to load the module, it throws off this error:
> >
> > Apr 27 14:42:32 localhost nagios: Nagios 2.0b3 starting... (PID=1503)
> > Apr 27 14:42:32 localhost nagios: LOG VERSION: 2.0 Apr 27 14:42:32
> > localhost nagios: Error: Could not load module
> > '/usr/local/nagios/modules/inserter.o' ->
> > /usr/local/nagios/modules/inserter.o: undefined symbol:
> > BIO_new_mem_buf
> >
> > I'm using the PgSQL NEB module just because I couldn't compile the
> > MySQL one. I got the following error when trying to compile the MySQL
> module.
> >
> > nms:/usr/src/nagios-db-0.91/neb/mysql# make gcc -g -O2 -Wall -o
> > inserter.o inserter.c -shared -I/usr/src/nagios-2.0b3/include
> > -I/usr/include/mysql -lmysqlclient -fPIC
> > inserter.c: In function `nebmodule_init':
> > inserter.c:130: error: `CLIENT_MULTI_STATEMENTS' undeclared (first use
> > in this function)
> > inserter.c:130: error: (Each undeclared identifier is reported only
> > once
> > inserter.c:130: error: for each function it appears in.)
> > make: *** [all] Error 1
> >
> > I browsed around your message lists and tried a few things based on
> > what I found. I tried back tracking to Nagios 2.0b1, but that didn't
> > change anything.
> >
> > Any thoughts?
> >
> > Best regards,
> >
> > Jonathan Bibeau < <mailto:jb...@c-...> jb...@c-...> System
> > Administrator, CIS Technical Services
> > 33 Main Street, Suite 302
> > Nashua, NH 03064
> > (603) 889-4684 (Local)
> > (603) 889-0534 (Fax)
> >
> >
>
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Tell us your software development plans!
> Take this survey and enter to win a one-year sub to SourceForge.net Plus
> IDC's 2005 look-ahead and a copy of this survey Click here to start!
> http://www.idcswdc.com/cgi-bin/survey?id=105hix
> _______________________________________________
> Nagios-db-devel mailing list
> Nag...@li...
> https://lists.sourceforge.net/lists/listinfo/nagios-db-devel
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Tell us your software development plans!
> Take this survey and enter to win a one-year sub to SourceForge.net Plus
> IDC's 2005 look-ahead and a copy of this survey Click here to start!
> http://www.idcswdc.com/cgi-bin/survey?id=105hix
> _______________________________________________
> Nagios-db-devel mailing list
> Nag...@li...
> https://lists.sourceforge.net/lists/listinfo/nagios-db-devel
>
>
|