Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 114925

Summary: dev-perl/DBD-mysql-3.0002_p4 fails to compile
Product: Gentoo Linux Reporter: Jakub Moc (RETIRED) <jakub>
Component: New packagesAssignee: Gentoo Perl team <perl>
Status: RESOLVED FIXED    
Severity: normal CC: aaron123456789, cardoe, gentoo-bugs2, jeffrey, me, mysql-bugs, tschenturs
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch out new datatypes introduced in mysql5 when building against an earlier version
updated ebuild to apply above mentioned patch

Description Jakub Moc (RETIRED) gentoo-dev 2005-12-08 15:43:49 UTC
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
Comment 1 Dan Check 2005-12-09 07:32:42 UTC
ditto here.  mysql version 4.1.15-r1.
Comment 2 Kelly Price 2005-12-09 18:14:35 UTC
Same here, against mysql 4.1.14-log

Comment 3 Malcolm Lashley (RETIRED) gentoo-dev 2005-12-11 04:06:33 UTC
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
Comment 4 Malcolm Lashley (RETIRED) gentoo-dev 2005-12-11 04:07:48 UTC
Created attachment 74485 [details]
updated ebuild to apply above mentioned patch
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-12-11 04:25:10 UTC
The patch works for me. Thanks.
Comment 6 Francesco R. (RETIRED) gentoo-dev 2005-12-12 02:51:36 UTC
checked the patch against mysql 4.1.15-r2. It work nicely.

In CVS, many thanks malc.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2005-12-12 04:50:59 UTC
*** Bug 115291 has been marked as a duplicate of this bug. ***