Details
-
Bug
-
Status: Closed (View Workflow)
-
Resolution: Fixed
-
None
-
None
-
None
Description
MariaDB has the same bug as MySQL 5.1.50.
With MariaDB 5.1.50 is it not possible to compile php
compilelog:
/usr/include/mysql/my_config.h:1285:1: warning: "PACKAGE_VERSION" redefined
In file included from /var/tmp/portage/dev-lang/php-5.3.3-r1/work/sapis-build/cli/TSRM/tsrm_config.h:1,
from /var/tmp/portage/dev-lang/php-5.3.3-r1/work/sapis-build/cli/TSRM/tsrm_config_common.h:13,
from /var/tmp/portage/dev-lang/php-5.3.3-r1/work/sapis-build/cli/TSRM/tsrm_virtual_cwd.h:26,
from /var/tmp/portage/dev-lang/php-5.3.3-r1/work/sapis-build/cli/main/php.h:410,
from /var/tmp/portage/dev-lang/php-5.3.3-r1/work/sapis-build/cli/ext/mysqli/mysqli_api.c:29:
/var/tmp/portage/dev-lang/php-5.3.3-r1/work/sapis-build/cli/include/../main/php_config.h:2099:1: warning: this is the location of the previous definition
In file included from /var/tmp/portage/dev-lang/php-5.3.3-r1/work/sapis-build/cli/ext/mysqli/php_mysqli_structs.h:57,
from /var/tmp/portage/dev-lang/php-5.3.3-r1/work/sapis-build/cli/ext/mysqli/mysqli_api.c:33:
/usr/include/mysql/my_global.h:650:25: error: my_compiler.h: No such file or directory
make: *** [ext/mysqli/mysqli.lo] Fehler 1
here the MySQL bug:
http://bugs.mysql.com/bug.php?id=55846
report for Gentoo:
http://bugs.gentoo.org/show_bug.cgi?id=341853
Attachments
Activity
Please attach the full build log and post your `emerge --info' in a comment.
Portage 2.2_rc98 (default/linux/x86/10.0/desktop/kde, gcc-4.4.3, glibc-2.11.2-r0, 2.6.35-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.35-gentoo-r5-i686-Intel-R-Core-TM-2_Quad_CPU_Q9300@_2.50GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 21 Oct 2010 00:00:01 +0000
app-shells/bash: 4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python: 2.6.5-r3
dev-util/cmake: 2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc: 0.6.3
sys-apps/sandbox: 2.3-r1
sys-devel/autoconf: 2.13, 2.65-r1
sys-devel/automake: 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.20.1-r1
sys-devel/gcc: 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.10
sys-devel/make: 3.81-r2
virtual/os-headers: 2.6.30-r1 (sys-kernel/linux-headers)
Repositories: gentoo sunrise personal graaff qting-edge kde
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -mtune=pentium4 -pipe -O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=i686 -mtune=pentium4 -pipe -O2"
DISTDIR="/opt/gentoo-rsync/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.bg"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="Wl,-O1 -Wl,-as-needed"
LINGUAS="en bg"
MAKEOPTS="-j9"
PKGDIR="/opt/gentoo-rsync/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--prune-empty-dirs"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/repos/layman/sunrise /var/repos/personal /var/repos/layman/graaff /var/repos/layman/qting-edge /var/repos/layman/kde"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac acl acpi alsa amd audiofile avahi bash-completion berkdb branding bzip2 bzlib cairo cddb cdparanoia cdr clamav consolekit cracklib crypt css cups curl curlwrappers cxx dbus dga divx4linux dmx dnd dri dts dv dvd dvdr dvdread emboss encode ethereal evo exif exiscan-acl fam fame fbcon ffmpeg firefox flac flash font-server fpx gdbm gif gpm graphviz gtk hal iconv idn ieee1394 imap innodb ipv6 ithreads jbig jikes jpeg jpeg2k kde kdehiddenvisibility kerberos lcms ldap leim libgda lm_sensors logrotate lzma lzo mad maildir maxoptimization md5sum memlimit mikmod mime mjpeg mmap mmx mng modules mozdevelop moznoirc mozsvg mozxmlterm mp3 mp4 mpeg mpi mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp orathreads pam pango pcre pdf perl pic png ppds pppd pwdb python qt3support qt4 quotas randr rdesktop readline ruby18 sasl sdl slp sndfile spell sqlite3 sse sse2 ssl startup-notification subversion svg sysfs tcpd threads thumbnail tiff truetype unicode usb userlocales v4l v4l2 vcd vhosts vidix vim-pager vim-syntax vorbis win32codecs x264 x86 xattr xcb xcomposite xface xfs xine xml xorg xosd xrandr xscreensaver xulrunner xv xvid xvmc yv12 zeo zeroconf zlib" ALSA_CARDS="hda-intel" 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="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias asis log_forensic proxy_ftp version authn_alias cgi" 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" LINGUAS="en bg" PHP_TARGETS="php-5.2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa dummy vga nv nvidia" 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
I can confirm this bug. It has also been filed in the upstream bugtrackers, where a patch is available: http://bugs.mysql.com/bug.php?id=55846, https://bugs.launchpad.net/maria/+bug/669893
Re: my_compiler.h: No such file or directory
Thanks for bringing this problem to our attention!
According to http://bugs.mysql.com/bug.php?id=55846, a fix for this should be in MySQL 5.1.52. So MariaDB 5.1.52 should have the fix too.
Re: my_compiler.h: No such file or directory
I checked the bzr tree and the patch should be in the already released MariaDB 5.1.51 version.
Re: my_compiler.h: No such file or directory
Fixed in MariaDB 5.1.51 (already released)
If you can, please test the dev-db/mariadb-5.1.53 in the mysql overlay[1]. IIRC, this new release is supposed to include the fix for the php include issue.
[1] - http://git.overlays.gentoo.org/gitweb/?p=proj/mysql.git;a=tree;f=dev-db/mariadb
-
-
- Bug 353480 has been marked as a duplicate of this bug. ***
-
USE="mysqli" emerge -av1 php
this is the useflag that caused this error, i am about to try mariadb from overlay now
5.1.53 from the mysql overlay fixed the issue, please keep the bug open until this is fixed in tree
-
-
- Bug 361175 has been marked as a duplicate of this bug. ***
-
The issue is again present in all ebuilds > 5.1.53 [ 5.1.55 and 5.2 included ]
in layman repository mysql
eclass directory
diff -u ../eclass ../eclass.orig -r
Only in ../eclass: include.patch
diff -u -r ../eclass/mysql.eclass ../eclass.orig/mysql.eclass
— ../eclass/mysql.eclass 2011-05-06 23:52:19.000000000 +0400
+++ ../eclass.orig/mysql.eclass 2011-05-06 23:47:09.000000000 +0400
@@ -364,7 +364,7 @@
MY_LIBDIR=${MY_LIBDIR="/usr/$(get_libdir)/mysql"}
MY_LOCALSTATEDIR=${MY_LOCALSTATEDIR="/var/lib/mysql"}
MY_LOGDIR=${MY_LOGDIR="/var/log/mysql"}
- MY_INCLUDEDIR=${MY_INCLUDEDIR="/usr/include/"}
+ MY_INCLUDEDIR=${MY_INCLUDEDIR="/usr/include/mysql"}
if [[ -z "${MY_DATADIR}" ]] ; then
MY_DATADIR=""
Only in ../eclass: mysql.eclass.orig
diff -u -r ../eclass/mysql_fx.eclass ../eclass.orig/mysql_fx.eclass
— ../eclass/mysql_fx.eclass 2011-05-06 23:52:38.000000000 +0400
+++ ../eclass.orig/mysql_fx.eclass 2011-05-06 23:47:20.000000000 +0400
@@ -230,7 +230,7 @@
MY_LIBDIR=${MY_LIBDIR="/usr/$(get_libdir)/mysql"}
MY_LOCALSTATEDIR=${MY_LOCALSTATEDIR="/var/lib/mysql"}
MY_LOGDIR=${MY_LOGDIR="/var/log/mysql"}
- MY_INCLUDEDIR=${MY_INCLUDEDIR="/usr/include/"}
+ MY_INCLUDEDIR=${MY_INCLUDEDIR="/usr/include/mysql"}
if [[ -z "${MY_DATADIR}" ]] ; then
MY_DATADIR=""
Only in ../eclass: mysql_fx.eclass.orig
The latest patches in the overlay seem to have resolved the issue.. tested on 5.1.55 .. will test on the 5.2 series as well
(In reply to comment #13)
> The latest patches in the overlay seem to have resolved the issue.. tested on
> 5.1.55 .. will test on the 5.2 series as well
Verified for mariadb-5.2.6 as well
-
-
- Bug 375077 has been marked as a duplicate of this bug. ***
-
-
-
- Bug 375079 has been marked as a duplicate of this bug. ***
-
-
-
- Bug 375103 has been marked as a duplicate of this bug. ***
-
I just encountered this problem in 5.1.58. Given that was working in 5.1.56 it isn't clear to me that reports marked as duplicates of this bug are in fact duplicates.
The recent bug reports marked as dupes of this bug are most likely dupes of bug 375063.
(In reply to comment #19)
> The recent bug reports marked as dupes of this bug are most likely dupes of bug
> 375063.
Thanks for your help
-
-
- Bug 381479 has been marked as a duplicate of this bug. ***
-
As the 5.1.55 and 5.2.7 versions have been put in the tree for a few months, I'm going to close this bug.
/usr/include/mysql/my_global.h:650:25: error: my_compiler.h: No such file or directory
corresponding gentoo portage mysql bug #333923
Reproducible: Always