After emerging the latest mysql-4.0.12, I've tried to emerge mysqlnavigator-1.4.1. I got following error during compilation : [...] Making install in mainwindow make[3]: Entering directory `/var/tmp/portage/mysqlnavigator-1.4.1/work/mysqlnavigator-1.4.1/src/mysql/mainwindow' /bin/sh ../../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../pics -I../../../include -I/usr/include/mysql -I/usr/qt/3/include -O2 -Wall -c mainwindowslotschema.cxx rm -f .libs/mainwindowslotschema.lo g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../pics -I../../../include -I/usr/include/mysql -I/usr/qt/3/include -O2 -Wall -Wp,-MD,.deps/mainwindowslotschema.pp -c mainwindowslotschema.cxx -fPIC -DPIC -o .libs/mainwindowslotschema.lo In file included from mainwindow.h:22, from mainwindowslotschema.cxx:10: ../../../include/loglistview.h:20:7: warning: no newline at end of file In file included from mainwindowslotschema.cxx:15: ../../../include/loglistviewitem.h:18:7: warning: no newline at end of file mainwindowslotschema.cxx: In member function `void MainWindow::slot_create_database(int)': mainwindowslotschema.cxx:518: `mysql_create_db' undeclared (first use this function) mainwindowslotschema.cxx:518: (Each undeclared identifier is reported only once for each function it appears in.) mainwindowslotschema.cxx: In member function `void MainWindow::slot_delete_database(int)': mainwindowslotschema.cxx:608: `mysql_drop_db' undeclared (first use this function) [...cut...] make: *** [install-recursive] Erreur 1 !!! ERROR: dev-db/mysqlnavigator-1.4.1 failed. !!! Function einstall, Line 287, Exitcode 2 !!! einstall failed The two involved functions (`mysql_create_db' and `mysql_drop_db') are declared roughly at the end of /usr/include/mysql/mysql.h. but they are somehow "masked" by the preprocess directive #ifdef USE_OLD_FUNCTIONS. I was not able to figure out where to put a suitable #define USE_OLD_FUNCTIONS in the code. The only "quick 'n dirty" trick I found was to temporarily comment the "#ifdef" in mysql.h Doing so let the package emerge successfully. Reproducible: Always Steps to Reproduce: emerge info Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r1) ================================================================= System uname: 2.4.20-gentoo-r1 i686 Celeron (Coppermine) GENTOO_MIRRORS="ftp://ftp.skynet.be/pub/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.easynet.nl/mirror/gentoo//" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 apm avi crypt encode gif java jpeg gnome libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime spell xml2 xmms xv zlib alsa gdbm slang readline arts tetex svga tcltk guile mysql postgres X sdl tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt kde motif opengl mozilla cdr scanner -3dnow cups dga doc dvd gpm -gtk2 -berkdb -innodb odbc oss sse truetype xfs" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer " CXXFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer " ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.skynet.be/gentoo-portage" FEATURES="sandbox ccache buildpkg"
maybe 1.4.2 solves this
*** Bug 19715 has been marked as a duplicate of this bug. ***
Workaround in place for MySQLv4 also upgraded to v1.4.2 and put in another fix for a bug that was noted where it ignores CXXFLAGS!