dbdimp.c:263:25: warning: extra tokens at end of #ifdef directive dbdimp.c: In function 'mysql_to_perl_type': dbdimp.c:249: error: 'MYSQL_TYPE_BIT' undeclared (first use in this function) dbdimp.c:249: error: (Each undeclared identifier is reported only once dbdimp.c:249: error: for each function it appears in.) dbdimp.c:259: error: 'MYSQL_TYPE_VARCHAR' undeclared (first use in this function) make: *** [dbdimp.o] Error 1 !!! ERROR: dev-perl/DBD-mysql-3.0002_p4 failed. !!! Function perl-module_src_compile, Line 120, Exitcode 2 !!! compilation failed !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. emerge dev-perl/DBD-mysql-3.0002_p4 Portage 2.0.53 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r1, 2.6.14-gentoo-r4 i686) ================================================================= System uname: 2.6.14-gentoo-r4 i686 AMD Sempron(tm) Gentoo Base System version 1.6.13 ccache version 2.4 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~maint ~overlay" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fforce-addr -ftree-vectorize" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/glftpd/etc /opt/glftpd/ftp-data /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fforce-addr -ftree-vectorize" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache collision-protect confcache distlocks parallel-fetch sandbox sfperms strict test userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo ftp://ftp.fi.muni.cz/pub/linux/gentoo/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--sort-common" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/gentoo-php-overlay/production-ready /usr/local/overlays/gentoo-php-overlay/experimental" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow acpi apache2 apm bash-completion bcmath berkdb bzip2 calendar crypt cscope ctype curl curlwrappers dba dbase dbm dbx exif expat fbcon freetds ftp gd gdbm gif iconv imap innodb jpeg lcms libg++ libwww maildir mcal memlimit mhash mime ming mmx mp3 mpeg mssql mysql mysqli ncurses nls nptl nptlonly odbc offensive pam pcntl pcre pdflib perl php png pnp posix python readline sasl session sharedmem simplexml soap sockets spl sqlite sse ssl sysvipc tcpd tidy tiff tokenizer truetype udev unicode vhosts wddx xml xml2 xmlrpc xsl zlib linguas_en userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL
ditto here. mysql version 4.1.15-r1.
Same here, against mysql 4.1.14-log
Created attachment 74484 [details, diff] Patch out new datatypes introduced in mysql5 when building against an earlier version This works for me, I couldn't find definitive documentation on when the types were introduced. make test passed all the tests. ymmv
Created attachment 74485 [details] updated ebuild to apply above mentioned patch
The patch works for me. Thanks.
checked the patch against mysql 4.1.15-r2. It work nicely. In CVS, many thanks malc.
*** Bug 115291 has been marked as a duplicate of this bug. ***