Bug 172780 - dev-perl/DBD-mysql-4.00.3 compile fails
|
Bug#:
172780
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: AMD64
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: perl@gentoo.org
|
Reported By: jlp.bugs@gmail.com
|
|
Component: Applications
|
|
|
URL:
|
|
Summary: dev-perl/DBD-mysql-4.00.3 compile fails
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2007-03-30 11:30 0000
|
When I try to emerge dev-perl/DBD-mysql-4.00.3 I get this error:
* checking ebuild checksums ;-) ...
[ ok ]
* checking auxfile checksums ;-) ...
[ ok ]
* checking miscfile checksums ;-) ...
[ ok ]
* checking DBD-mysql-4.003.tar.gz ;-) ...
[ ok ]
>>> Unpacking source...
>>> Unpacking DBD-mysql-4.003.tar.gz to /var/tmp/portage/dev-perl/DBD-mysql-4.00.3/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-perl/DBD-mysql-4.00.3/work/DBD-mysql-4.003 ...
/var/tmp/portage/dev-perl/DBD-mysql-4.00.3/work/DBD-mysql-4.003
* Using ExtUtils::MakeMaker
I will use the following settings for compiling and testing:
cflags (mysql_config) = -I/usr/include/mysql -march=athlon64 -pipe
-fomit-frame-pointer -frename-registers -DHAVE_ERRNO_AS_DEFINE=1
embedded (mysql_config) =
libs (mysql_config) = -L/usr/lib/mysql -lmysqlclient -lz -lcrypt
-lnsl -lm -L/usr/lib64 -lssl -lcrypto
mysql_config (guessed ) = mysql_config
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
ssl (guessed ) = 1
testdb (default ) = test
testhost (default ) =
testpassword (default ) =
testsocket (default ) =
testuser (default ) =
To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.
Checking if your kit is complete...
Looks good
Using DBI 1.54 (for perl 5.008008 on x86_64-linux) installed in
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/auto/DBI/
Writing Makefile for DBD::mysql
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
x86_64-pc-linux-gnu-gcc -c
-I/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/auto/DBI -I/usr/include/mysql
-march=athlon64 -pipe -fomit-frame-pointer -frename-registers
-DHAVE_ERRNO_AS_DEFINE=1 -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_IS_GOOD -g
-fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -march=athlon64 -pipe -O2 -fomit-frame-pointer
-frename-registers -DVERSION=\"4.003\" -DXS_VERSION=\"4.003\" -fPIC
"-I/usr/lib64/perl5/5.8.8/x86_64-linux/CORE" dbdimp.c
dbdimp.c:1269: error: conflicting types for 'mysql_dr_error'
dbdimp.h:288: error: previous declaration of 'mysql_dr_error' was here
dbdimp.c: In function 'mysql_st_fetch':
dbdimp.c:3419: error: too few arguments to function 'mysql_dr_error'
dbdimp.c:3583: error: too few arguments to function 'mysql_dr_error'
dbdimp.c: In function 'mysql_st_FETCH_internal':
dbdimp.c:3915: error: too few arguments to function 'mysql_dr_error'
dbdimp.c:3929: error: too few arguments to function 'mysql_dr_error'
dbdimp.c: In function 'mysql_bind_ph':
dbdimp.c:4244: error: too few arguments to function 'mysql_dr_error'
dbdimp.c:4271: error: too few arguments to function 'mysql_dr_error'
dbdimp.c:4283: error: too few arguments to function 'mysql_dr_error'
dbdimp.c: In function 'mysql_db_reconnect':
dbdimp.c:4445: error: too few arguments to function 'mysql_dr_error'
make: *** [dbdimp.o] Error 1
!!! ERROR: dev-perl/DBD-mysql-4.00.3 failed.
Call stack:
ebuild.sh, line 1614: Called dyn_compile
ebuild.sh, line 971: Called qa_call 'src_compile'
ebuild.sh, line 44: Called src_compile
ebuild.sh, line 1304: Called perl-module_src_compile
perl-module.eclass, line 138: Called die
# emerge --info
Portage 2.1.2.3 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r1,
2.6.18-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.9
Timestamp of tree: Fri, 30 Mar 2007 01:00:07 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python: 2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: 2.4-r6
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.61
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.17
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool: 1.5.23b
virtual/os-headers: 2.6.20-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -pipe -O2 -fomit-frame-pointer -frename-registers"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config
/usr/share/cursors/xorg-x11/default"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /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
/etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -pipe -O2 -fomit-frame-pointer -frename-registers"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo
http://distfiles.gentoo.org/"
LANG="sl_SI"
LINGUAS="en sl"
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
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/root/portageoverlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 arts audiofile avi berkdb
bitmap-fonts bzip2 cairo cdr cli cracklib crypt cups curl dbus dri dts dvd dvdr
eds encode esd exif expat fam fbcon ffmpeg flac foomaticdb fortran freetype ftp
gdbm gif gmp gnome gphoto2 gpm gstreamer gtk gtk2 hal iconv idn imagemagick
ipv6 isdnlog jabber jpeg kde kdehiddenvisibility lcms libg++ lm_sensors mad
matroska midi mng mozilla mp3 mpeg mplayer mysql ncurses nls nptl nptlonly
nvidia ogg opengl oss pam pcre pdf perl php png posix ppds pppd python qt3 qt4
quicktime readline reflection samba scanner sdl session slp speex spell spl
sqlite ssl stream subversion svg tcpd tetex theora tiff truetype truetype-fonts
type1-fonts unicode usb vhosts videos vorbis xcomposite xine xml xml2 xorg xosd
xprint xscreensaver xv xvid zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm
alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa
lfloat linear meter mulaw multi null plug rate route share shm softvol"
ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad
cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en sl"
USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Reproducible: Always
Steps to Reproduce:
1. try to emerge dev-perl/DBD-mysql-4.00.3
Actual Results:
Emerge fails
Expected Results:
Emerge should be successful
Versions:
dev-db/mysql-4.0.27-r1
dev-lang/perl-5.8.8-r2
version in tree bumped (currently ~amd64 since it's about 5 seconds old in
portage-time). Please try this version and if it works for you, feel free to
close this bug. if not, let me know (and obviously don't close this :)
Still get the error with 4.00.4:
>>> Unpacking source...
>>> Unpacking DBD-mysql-4.004.tar.gz to /var/tmp/portage/dev-perl/DBD-mysql-4.00.4/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-perl/DBD-mysql-4.00.4/work/DBD-mysql-4.004 ...
/var/tmp/portage/dev-perl/DBD-mysql-4.00.4/work/DBD-mysql-4.004
* Using ExtUtils::MakeMaker
I will use the following settings for compiling and testing:
cflags (mysql_config) = -I/usr/include/mysql -march=athlon64 -pipe
-fomit-frame-pointer -frename-registers -DHAVE_ERRNO_AS_DEFINE=1
embedded (mysql_config) =
libs (mysql_config) = -L/usr/lib/mysql -lmysqlclient -lz -lcrypt
-lnsl -lm -L/usr/lib64 -lssl -lcrypto
mysql_config (guessed ) = mysql_config
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
ssl (guessed ) = 1
testdb (default ) = test
testhost (default ) =
testpassword (default ) =
testsocket (default ) =
testuser (default ) =
To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.
Checking if your kit is complete...
Looks good
Using DBI 1.54 (for perl 5.008008 on x86_64-linux) installed in
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/auto/DBI/
Writing Makefile for DBD::mysql
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
x86_64-pc-linux-gnu-gcc -c
-I/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/auto/DBI -I/usr/include/mysql
-march=athlon64 -pipe -fomit-frame-pointer -frename-registers
-DHAVE_ERRNO_AS_DEFINE=1 -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_IS_GOOD -g
-fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -march=athlon64 -pipe -O2 -fomit-frame-pointer
-frename-registers -DVERSION=\"4.004\" -DXS_VERSION=\"4.004\" -fPIC
"-I/usr/lib64/perl5/5.8.8/x86_64-linux/CORE" dbdimp.c
dbdimp.c: In function 'mysql_st_fetch':
dbdimp.c:3429: error: too few arguments to function 'mysql_dr_error'
dbdimp.c:3593: error: too few arguments to function 'mysql_dr_error'
dbdimp.c: In function 'mysql_st_FETCH_internal':
dbdimp.c:3931: error: too few arguments to function 'mysql_dr_error'
dbdimp.c:3945: error: too few arguments to function 'mysql_dr_error'
dbdimp.c: In function 'mysql_bind_ph':
dbdimp.c:4264: error: too few arguments to function 'mysql_dr_error'
dbdimp.c:4291: error: too few arguments to function 'mysql_dr_error'
dbdimp.c:4303: error: too few arguments to function 'mysql_dr_error'
dbdimp.c: In function 'mysql_db_reconnect':
dbdimp.c:4465: error: too few arguments to function 'mysql_dr_error'
make: *** [dbdimp.o] Error 1
!!! ERROR: dev-perl/DBD-mysql-4.00.4 failed.
Call stack:
ebuild.sh, line 1614: Called dyn_compile
ebuild.sh, line 971: Called qa_call 'src_compile'
ebuild.sh, line 44: Called src_compile
ebuild.sh, line 1304: Called perl-module_src_compile
perl-module.eclass, line 138: Called die
!!! compilation failed
Created an attachment (id=115017) [details]
patch to finish the fixes to dbdimp.*
please try this patch with the ebuild i just posted. put the patch in the files
dir, the ebuild one dir up from it in dev-perl/DBD-mysql, then run ebuild
DBD-mysql-4.00.4-r1.ebuild digest to generate a digest and update the manifest.
Then you should be able to just emerge DBD-mysql and be all set (sorry for the
directions on how to gen a digest if you're a pro, just covering my bases :).
This patch applies cleanly over here - but i'm not running the older client
either. Following the bug for this in RT, it looks like this patch got missed
in the update. I suspect we'll see a bump of DBD-mysql shortly, but just in
case (and in the interim), here ya go :) If this works out, let me know and
I'll commit it.
The new -r1 ebuild with patch worked just fine. Thank you very much.
all set in the tree, enjoy