--with-mysql-xdata compilation error

Harper Mann hmann at itgroundwork.com
Tue Sep 7 06:36:35 CEST 2004


xrddefault_save_state_information is in xdata/xrddefault.c.  Is should have
been instantiated with the --with-mysql-xdata switch, but I don't see it in
the gcc ld line below.  It looks like a make from a configure without the
--with-mysql-xdata switch.  If configure is clean, and the config.log says
it will build with mysql, this may be old stuff in the tree from a previous
build.  

Did you run "make distclean" before you re-built the tree?  When you run
"make distclean", you need to re-run ./configure and "make all".

Good luck,

- Harper

Harper Mann
Groundwork Open Source Solutions
510-599-2075 (cell)


-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Tom
Schouteden
Sent: Monday, September 06, 2004 8:18 AM
To: nagios-users at lists.sourceforge.net
Cc: hmann at itgroundwork.com
Subject: [Nagios-users] --with-mysql-xdata compilation error

It's version 3.23.49 on Debian stable.
I haven't found the solution to this yet. And it seems actually nobody does.
Anyone has a solution for this?

thanks!!

tom

---
What version of MySQL? 

MySQL 4.x doesn't work, they changed the API....

mysql-3.23.58-1 works for me.  It's on RHEL V3 WS.

- Harper

Harper Mann
Groundwork Open Source Solutions
510-599-2075 (cell)

-----Original Message-----
From: nagios-users-admin <at> lists.sourceforge.net
[mailto:nagios-users-admin <at> lists.sourceforge.net] On Behalf Of Tom
Schouteden
Sent: Wednesday, September 01, 2004 3:20 PM
To: nagios-users <at> lists.sourceforge.net
Subject: [Nagios-users] --with-mysql-xdata compilation error

hi

i'm trying to compile nagios 1.2 with mysql support using the
--with-mysql-xdata switch.  the configure process works ok, without
any errors.  but when i try to `make all` i get the following error:

gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -lmysqlclient  nagios.c checks.o
config.o commands.o flapping.o logging.o notifications.o sehandlers.o
utils.o sretention.o ../xdata/xrddb.c ../common/comments.c
../xdata/xcddb.c ../common/objects.c ../xdata/xodtemplate.c
../common/statusdata.c ../xdata/xsddb.c perfdata.o
../xdata/xpddefault.c ../common/downtime.c ../xdata/xdddb.c    -lm -o
nagios
sretention.o: In function `save_state_information':
/home/tom/nagios-1.2/base/sretention.c:86: undefined reference to
`xrddefault_save_state_information'
sretention.o: In function `read_initial_state_information':
/home/tom/nagios-1.2/base/sretention.c:122: undefined reference to
`xrddefault_read_state_information'
collect2: ld returned 1 exit status
make[1]: *** [nagios] Error 1
make[1]: Leaving directory `/home/tom/nagios-1.2/base'
make: *** [all] Error 2

i googled for it and looked on the mailing lists but it only pops up
once or twice without ever providing some kind of solution.  anyone
knows what causes it and how it could be fixed

thanks

tom


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
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


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
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


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
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



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
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