As reported on http://forums.gentoo.org/viewtopic-t-558156.html nagios-plugins-1.4.8 can't find the mysql header files and compile fails with the following message: i586-pc-linux-gnu-gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/usr/include -O3 -march=i686 -msse -mmmx -mfpmath=sse -pipe -fomitc mv -f .deps/negate.Tpo .deps/negate.Po i586-pc-linux-gnu-gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/usr/include -O3 -march=i686 -msse -mmmx -mfpmath=sse -pipe -fomitc check_mysql.c:51:19: mysql.h: No such file or directory check_mysql.c:52:20: errmsg.h: No such file or directory check_mysql.c:58: error: `MYSQL_PORT' undeclared here (not in a function) check_mysql.c: In function `main': check_mysql.c:73: error: `MYSQL' undeclared (first use in this function) check_mysql.c:73: error: (Each undeclared identifier is reported only once check_mysql.c:73: error: for each function it appears in.) check_mysql.c:73: error: syntax error before "mysql" check_mysql.c:74: error: `MYSQL_RES' undeclared (first use in this function) check_mysql.c:74: error: `res' undeclared (first use in this function) check_mysql.c:75: error: `MYSQL_ROW' undeclared (first use in this function) check_mysql.c:75: error: syntax error before "row" check_mysql.c:91: error: `mysql' undeclared (first use in this function) check_mysql.c:93: error: `MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this function) check_mysql.c:97: error: `CR_UNKNOWN_HOST' undeclared (first use in this function) check_mysql.c:99: error: `CR_VERSION_ERROR' undeclared (first use in this function) check_mysql.c:101: error: `CR_OUT_OF_MEMORY' undeclared (first use in this function) check_mysql.c:103: error: `CR_IPSOCK_ERROR' undeclared (first use in this function) check_mysql.c:105: error: `CR_SOCKET_CREATE_ERROR' undeclared (first use in this function) check_mysql.c:112: warning: passing arg 1 of `strlen' makes pointer from integer without a cast check_mysql.c:112: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast check_mysql.c:112: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast check_mysql.c:116: error: `CR_SERVER_GONE_ERROR' undeclared (first use in this function) check_mysql.c:118: error: `CR_SERVER_LOST' undeclared (first use in this function) check_mysql.c:120: error: `CR_UNKNOWN_ERROR' undeclared (first use in this function) check_mysql.c:127: warning: passing arg 1 of `strlen' makes pointer from integer without a cast check_mysql.c:127: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast check_mysql.c:127: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast check_mysql.c:134: warning: passing arg 1 of `strlen' makes pointer from integer without a cast check_mysql.c:134: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast check_mysql.c:134: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast check_mysql.c:146: error: `row' undeclared (first use in this function) check_mysql.c:147: warning: passing arg 1 of `strlen' makes pointer from integer without a cast check_mysql.c:147: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast check_mysql.c:147: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast check_mysql.c:165: error: `MYSQL_FIELD' undeclared (first use in this function) check_mysql.c:165: error: `fields' undeclared (first use in this function) make[2]: *** [check_mysql-check_mysql.o] Error 1 make[2]: *** Waiting for unfinished jobs.... mv -f .deps/urlize.Tpo .deps/urlize.Po make[2]: Leaving directory `/var/tmp/portage/net-analyzer/nagios-plugins-1.4.8/work/nagios-plugins-1.4.8/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-analyzer/nagios-plugins-1.4.8/work/nagios-plugins-1.4.8' make: *** [all] Error 2 !!! ERROR: net-analyzer/nagios-plugins-1.4.8 failed. Call stack: ebuild.sh, line 1614: Called dyn_compile ebuild.sh, line 971: Called qa_call 'src_compile' environment, line 3522: Called src_compile nagios-plugins-1.4.8.ebuild, line 82: Called die !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/tmp/portage/net-analyzer/nagios-plugins-1.4.8/temp/build.log'. emerge --info Portage 2.1.2.2 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r5, 2.6.18-hardened-hostname i686) ================================================================= System uname: 2.6.18-hardened-hostname i686 AMD Geode(tm) Gentoo Base System release 1.12.9 Timestamp of tree: Wed, 09 May 2007 03:00:01 +0000 distcc 2.18.3 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.3.5-r3, 2.4.4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i586-pc-linux-gnu" CFLAGS="-O3 -march=i686 -msse -mmmx -mfpmath=sse -pipe -fomit-frame-pointer" CHOST="i586-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O3 -march=i686 -msse -mmmx -mfpmath=sse -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ http://distfiles.gentoo.org" LC_ALL="en_GB.UTF-8" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages " PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage-hostname" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acpi apache2 bash-completion berkdb clamav crypt gd hardened hardenedphp imap jpeg libwww lm_sensors maildir mailwrapper midi mysql nls nptl pam pam-mysql pic png prelude readline sasl snmp ssl urando" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Fixed in CVS.