Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 442000 - dev-db/mysql-5.5.28 - mysql/sql-common/client_plugin.c:252:5: error: incompatible type for argument 5 of 'add_plugin'
Summary: dev-db/mysql-5.5.28 - mysql/sql-common/client_plugin.c:252:5: error: incompat...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords: PATCH
: 446918 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-11-06 09:28 UTC by johan janez
Modified: 2013-01-20 23:05 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,887.80 KB, text/plain)
2012-11-06 19:47 UTC, Robert Malek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description johan janez 2012-11-06 09:28:32 UTC
dev-db/mysql-5.5.28 fails to compile on arm with the following errors:
/var/tmp/portage/dev-db/mysql-5.5.28/work/mysql/sql-common/client_plugin.c:252:5: error: incompatible type for argument 5 of 'add_plugin'
/var/tmp/portage/dev-db/mysql-5.5.28/work/mysql/sql-common/client_plugin.c:310:5: error: incompatible type for argument 5 of 'add_plugin'
here is the whole build log http://bpaste.net/show/56157/
and my emerge --info http://bpaste.net/show/56158/
it seems to be a similar bug to this one https://bugs.launchpad.net/maria/+bug/700982
and a semi fix from here http://svnweb.mageia.org/packages/cauldron/mysql/branches/SOURCES/mysql_valist_fix.patch?view=markup&pathrev=75111
Comment 1 Piotr Szymaniak 2012-11-06 09:42:14 UTC
Please don't use nopaste services for logs, patches and other things that should be attached to the bugreport.
Comment 2 Robert Malek 2012-11-06 14:53:04 UTC
Can confirm, even it's a god chance that it depends on:
-mfpu=neon -mfloat-abi=hard -ffast-math -funsafe-math-optimizations & GCC-4.7.2

Do you have tried with:
-marm / -mthumb

or with:

-mfpu=vfpv...
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-11-06 14:56:13 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 4 Robert Malek 2012-11-06 19:46:13 UTC
Portage 2.1.11.31 (default/linux/arm/10.0/armv7a/desktop, gcc-4.5.4, glibc-2.16.0, 3.6.5 armv7l)
=================================================================
System uname: Linux-3.6.5-armv7l-ARMv7_Processor_rev_0_-v7l-with-gentoo-2.2
Timestamp of tree: Sun, 04 Nov 2012 12:30:01 +0000
ld GNU ld (Linux/GNU Binutils) 2.23.51.0.3.20120918
app-shells/bash:          4.2_p39
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.2
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.4
sys-devel/binutils:       2.22-r1, 2.23.51.0.3
sys-devel/gcc:            4.5.4, 4.6.3, 4.7.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo own
ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="*"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O3 -pipe -funsafe-math-optimizations -mfloat-abi=hard -march=armv7-a -mtune=cortex-a9 -mfpu=neon -mthumb"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -pipe -funsafe-math-optimizations -mfloat-abi=hard -march=armv7-a -mtune=cortex-a9 -mfpu=neon -mthumb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp"
GENTOO_MIRRORS="ftp://de-mirror.org/gentoo/ http://de-mirror.org/gentoo/ rsync://de-mirror.org/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/own"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alisp alsa arm berkdb bluetooth branding bzip2 cairo cdda cdr cec cleartype cli consolekit cracklib crypt cryptsetup cups cxx dbus drm dts dvdr egl embedded emboss encode exif fam ffmpeg flac fortran g3dvl gbm gdbm gif git gles gles1 gles2 gpm hd hwdb iconv ipv6 jpeg keymap lcms ldap libkms libnotify libv4l libv4l2 lzma mad matroska mng modules mp3 mp4 mpeg mudflap multislot ncurses neon nls nptl ntfs ntfsprogs ntp ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd readline rule_generator sdl session smp sndfile spell ssl startup-notification subversion svg symlink tcpd threads tiff truetype udev udisks udisks2 unicode upower usb uuid v4l vorbis wifi wps wxwidgets xcb xml xorg xrandr xrender xscreensaver xv xvfb xvid xz zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" PHP_TARGETS="php5-3" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev exynos mali omap" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 5 Robert Malek 2012-11-06 19:47:08 UTC
Created attachment 328584 [details]
build.log
Comment 6 Robert Malek 2012-11-06 21:05:24 UTC
In relation to patch from first post "mysql_valist_fix.patch"

Tested on:

Portage 2.1.11.31 (default/linux/arm/10.0/armv7a/desktop, gcc-4.7.2, glibc-2.16.0, 3.6.5 armv7l)
=================================================================
System uname: Linux-3.6.5-armv7l-ARMv7_Processor_rev_0_-v7l-with-gentoo-2.2
Timestamp of tree: Sun, 04 Nov 2012 12:30:01 +0000
ld GNU ld (Linux/GNU Binutils) 2.23.51.0.3.20120918
app-shells/bash:          4.2_p39
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.2
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.4
sys-devel/binutils:       2.22-r1, 2.23.51.0.3
sys-devel/gcc:            4.5.4, 4.6.3, 4.7.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo own
ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="*"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O3 -pipe -funsafe-math-optimizations -mfloat-abi=hard -march=armv7-a -mtune=cortex-a9 -mfpu=neon -mthumb"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -pipe -funsafe-math-optimizations -mfloat-abi=hard -march=armv7-a -mtune=cortex-a9 -mfpu=neon -mthumb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp"
GENTOO_MIRRORS="ftp://de-mirror.org/gentoo/ http://de-mirror.org/gentoo/ rsync://de-mirror.org/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/own"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alisp alsa arm berkdb bluetooth branding bzip2 cairo cdda cdr cec cleartype cli consolekit cracklib crypt cryptsetup cups cxx dbus drm dts dvdr egl embedded emboss encode exif fam ffmpeg flac fortran g3dvl gbm gdbm gif git gles gles1 gles2 gpm hd hwdb iconv ipv6 jpeg keymap lcms ldap libkms libnotify libv4l libv4l2 lzma mad matroska mng modules mp3 mp4 mpeg mudflap multislot ncurses neon nls nptl ntfs ntfsprogs ntp ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd readline rule_generator sdl session smp sndfile spell ssl startup-notification subversion svg symlink tcpd threads tiff truetype udev udisks udisks2 unicode upower usb uuid v4l vorbis wifi wps wxwidgets xcb xml xorg xrandr xrender xscreensaver xv xvfb xvid xz zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" PHP_TARGETS="php5-3" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev exynos mali omap" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


It works for me:

# eix -e dev-db/mysql
[I] dev-db/mysql
     Available versions:  [M]4.0.27-r1 [M]4.1.22-r1 [M]5.0.91 [M](~)5.0.92 [M](~)5.0.96 [M]5.1.51 [M](~)5.1.52 [M](~)5.1.52-r1 [M](~)5.1.53 5.1.56 (~)5.1.56-r1 (~)5.1.57 (~)5.1.58-r1 (~)5.1.59 5.1.61 (~)5.1.62 5.1.62-r1 (~)5.1.66 (~)5.5.19 (~)5.5.20 (~)5.5.21 (~)5.5.22 (~)5.5.22-r1 (~)5.5.28 {{berkdb big-tables cluster +community debug embedded extraengine jemalloc latin1 max-idx-128 minimal pbxt (+)perl profiling raid selinux ssl static systemtap tcmalloc test xtradb}}
     Installed versions:  5.5.28(22:01:11 06.11.2012)(berkdb community embedded perl ssl -cluster -debug -extraengine -jemalloc -latin1 -max-idx-128 -minimal -profiling -selinux -static -systemtap -tcmalloc -test)
     Homepage:            http://www.mysql.com/
     Description:         A fast, multi-threaded, multi-user SQL database server.
Comment 7 Brian Evans (RETIRED) gentoo-dev 2012-11-06 21:47:27 UTC
Upstream bug http://bugs.mysql.com/bug.php?id=62769
Comment 8 johan janez 2012-11-07 18:04:49 UTC
(In reply to comment #7)
> Upstream bug http://bugs.mysql.com/bug.php?id=62769

Thanks for the info, i thought a quick patch could be implemented into portage/ebuild system.
Im sorry for using paste services instead of attaching files directly, it wont happen again.
It does compile for me with the patch as well.
Comment 9 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2012-12-12 13:55:48 UTC
*** Bug 446918 has been marked as a duplicate of this bug. ***
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2013-01-20 02:32:18 UTC
brian:
+1 to include this
Comment 11 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2013-01-20 23:05:26 UTC
Fixed in 5.5.29-r1, thanks Brian.