Cannot build with mysql support
Camron W. Fox
cwfox at fujitsu.com
Sat Oct 16 00:30:27 CEST 2004
Alle,
I'm trying to build nagios 1.2 with the "--with-mysql-XXXX" options
and get several unref errors prior to an ld failure during the "make all". A
build without the mysql options is successful. I'm running:
RHEL3U3
Kernel 2.4.21-20.Elsmp
MySQL-bench-4.0.18-0
MySQL-client-4.0.18-0
MySQL-server-4.0.18-0
MySQL-devel-4.0.18-0
Here is the command line configure with options:
[cwfox at hiloII nagios-1.2]$ PERL=/usr/local/bin/perl ./configure
--with-mysql-xdata --with-mysql-status --with-mysql-comments
--with-mysql-extinfo --with-mysql-retention --with-mysql-downtime
--with-mysql-lib=/usr/lib/mysql --with-mysql-inc=/usr/include/mysql
--enable-embedded-perl --with-perlcache
Here is gcc line and the tail of the unref messages prior to the ld
error:
gcc -g -O2 -I/usr/include/mysql -fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm
-I/usr/local/lib/perl5/5.8.3/i686-linux/CORE -DHAVE_CONFIG_H -DNSCORE
-L/usr/lib/mysql -L/usr/lib -L/lib -L/usr/lib/mysql -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 -rdynamic -L/usr/local/lib
/usr/local/lib/perl5/5.8.3/i686-linux/auto/DynaLoader/DynaLoader.a
-L/usr/local/lib/perl5/5.8.3/i686-linux/CORE -lperl -lnsl -ldl -lm -lcrypt
-lutil -lc -lm -o nagios
...
...
...
/tmp/ccSw3C3W.o(.text+0xd95): In function `xdddb_read_service_downtime':
../xdata/xdddb.c:1238: undefined reference to `mysql_store_result'
/tmp/ccSw3C3W.o(.text+0xdb9):../xdata/xdddb.c:1238: undefined reference to
`mysql_fetch_row'
/tmp/ccSw3C3W.o(.text+0xe9f):../xdata/xdddb.c:1247: undefined reference to
`mysql_free_result'
/tmp/ccSw3C3W.o(.text+0xebc):../xdata/xdddb.c:1280: undefined reference to
`mysql_free_result'
collect2: ld returned 1 exit status
make[1]: *** [nagios] Error 1
make[1]: Leaving directory `/home/cwfox/src/nagios-1.2/base'
make: *** [all] Error 2
[cwfox at hiloII nagios-1.2]$
Any help would greatly appreciated.
Best Regards,
Camron
Camron W. Fox
Hilo Office
High Performance Computing Group
Fujitsu America, INC.
E-mail: cwfox at fujitsu.com
Phone: (808) 934-4102
Pager: (808) 934-1290
Cell: (808) 937-5026
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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