i686-pc-linux-gnu-gcc -O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.8.8/i686-linux/CORE -DHAVE_CONFIG_H -DNSCORE -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,--as-needed -Wl,-hashvals -Wl,-zdynsort -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/xpdfile.c ../common/downtime.c ../xdata/xdddb.c -rdynamic -L/usr/local/lib /usr/lib/perl5/5.8.8/i686-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.8/i686-linux/CORE -lperl -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc -lm -o nagios /var/tmp/portage/nagios-core-1.3/temp/cc8ZfKc5.o: In function `xrddb_query':xrddb.c:(.text+0xf3): undefined reference to `mysql_query' /var/tmp/portage/nagios-core-1.3/temp/cc8ZfKc5.o: In function `xrddb_disconnect':xrddb.c:(.text+0x11b): undefined reference to `mysql_close' /var/tmp/portage/nagios-core-1.3/temp/cc8ZfKc5.o: In function `xrddb_connect':xrddb.c:(.text+0x178): undefined reference to `mysql_real_connect' :xrddb.c:(.text+0x199): undefined reference to `mysql_close' /var/tmp/portage/nagios-core-1.3/temp/cc8ZfKc5.o: In function `xrddb_initialize':xrddb.c:(.text+0x21f): undefined reference to `mysql_init' /var/tmp/portage/nagios-core-1.3/temp/cc8ZfKc5.o: In function `xrddb_read_host_information':xrddb.c:(.text+0x6b6): undefined reference to `mysql_query' :xrddb.c:(.text+0x6ca): undefined reference to `mysql_store_result' :xrddb.c:(.text+0x984): undefined reference to `mysql_fetch_row' :xrddb.c:(.text+0x99a): undefined reference to `mysql_free_result' /var/tmp/portage/nagios-core-1.3/temp/cc8ZfKc5.o: In function `xrddb_read_program_information':xrddb.c:(.text+0xa6e): undefined reference to `mysql_query' :xrddb.c:(.text+0xa7e): undefined reference to `mysql_store_result' :xrddb.c:(.text+0xb03): undefined reference to `mysql_fetch_row' :xrddb.c:(.text+0xc2e): undefined reference to `mysql_free_result' /var/tmp/portage/nagios-core-1.3/temp/cc8ZfKc5.o: In function `xrddb_read_service_information':xrddb.c:(.text+0xcc9): undefined reference to `mysql_query' :xrddb.c:(.text+0xcdd): undefined reference to `mysql_store_result' :xrddb.c:(.text+0x1087): undefined reference to `mysql_fetch_row' :xrddb.c:(.text+0x109d): undefined reference to `mysql_free_result' /var/tmp/portage/nagios-core-1.3/temp/cc8ZfKc5.o: In function `xrddb_commit_transaction':xrddb.c:(.text+0x112d): undefined reference to `mysql_query' /var/tmp/portage/nagios-core-1.3/temp/cc8ZfKc5.o: In function `xrddb_rollback_transaction':xrddb.c:(.text+0x115d): undefined reference to `mysql_query' /var/tmp/portage/nagios-core-1.3/temp/cc8ZfKc5.o: In function `xrddb_begin_transaction':xrddb.c:(.text+0x118d): undefined reference to `mysql_query' ....lots of mysql references missed :xdddb.c:(.text+0x1bef): undefined reference to `mysql_query' :xdddb.c:(.text+0x1c0a): undefined reference to `mysql_insert_id' :xdddb.c:(.text+0x1c1f): undefined reference to `mysql_close' :xdddb.c:(.text+0x1ca6): undefined reference to `mysql_close' :xdddb.c:(.text+0x1ccb): undefined reference to `mysql_close' collect2: ld returned 1 exit status make[1]: *** [nagios] Error 1 make[1]: Leaving directory `/var/tmp/portage/nagios-core-1.3/work/nagios-1.3/base' make: *** [nagios] Error 2 !!! ERROR: net-analyzer/nagios-core-1.3 failed. Call stack: ebuild.sh, line 1532: Called dyn_compile ebuild.sh, line 929: Called src_compile nagios-core-1.3.ebuild, line 131: Called die !!! make failed !!! If you need support, post the topmost build error, and the call stack if relevant.
I have a fix locally, I'll check it covers all the versions we carry.
probably only need to cover the latest stable due to bug 132159
I'll wait until the security bug is closed to fix this.
on second thought, it's non intrusive and I've tested this enough. in CVS.