my_compiler.h: No such file or directory

Bug #669893 reported by Sascha Wolf
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MariaDB
Fix Released
Undecided
Unassigned
Gentoo Linux
Fix Released
Medium
Linux From Scratch
Unknown
Unknown

Bug 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

Revision history for this message
In , Jetchko-jekov (jetchko-jekov) wrote :

/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

Revision history for this message
In , Jeroen Roovers (jer-gentoo) wrote :

Please attach the full build log and post your `emerge --info' in a comment.

Revision history for this message
In , Jetchko-jekov (jetchko-jekov) wrote :

Created attachment 251409
failed build.log

Revision history for this message
In , Jetchko-jekov (jetchko-jekov) wrote :
Download full text (6.5 KiB)

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="/" ...

Read more...

Changed in gentoo:
status: Unknown → Confirmed
Revision history for this message
In , zakx (zakx) wrote :

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

Revision history for this message
Kristian Nielsen (knielsen) wrote :

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.

Changed in maria:
milestone: none → 5.1
status: New → Confirmed
Revision history for this message
Michael Widenius (monty) wrote :

I checked the bzr tree and the patch should be in the already released MariaDB 5.1.51 version.

Changed in maria:
status: Confirmed → Fix Released
Revision history for this message
Michael Widenius (monty) wrote :

Fixed in MariaDB 5.1.51 (already released)

Revision history for this message
In , Jorge Manuel B. S. Vicetto (jmbsvicetto) wrote :

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

Revision history for this message
In , Jorge Manuel B. S. Vicetto (jmbsvicetto) wrote :

Added upstream bug link.

Revision history for this message
In , Jorge Manuel B. S. Vicetto (jmbsvicetto) wrote :

*** Bug 353480 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Tampakrap (tampakrap) wrote :

USE="mysqli" emerge -av1 php
this is the useflag that caused this error, i am about to try mariadb from overlay now

Revision history for this message
In , Tampakrap (tampakrap) wrote :

5.1.53 from the mysql overlay fixed the issue, please keep the bug open until this is fixed in tree

Changed in gentoo:
importance: Unknown → Medium
Revision history for this message
In , Jorge Manuel B. S. Vicetto (jmbsvicetto) wrote :

*** Bug 361175 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Ambasta (amit-prakash-ambasta) wrote :

The issue is again present in all ebuilds > 5.1.53 [ 5.1.55 and 5.2 included ]

Changed in gentoo:
status: Confirmed → Unknown
Revision history for this message
In , Sanek (sanek) wrote :

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

Revision history for this message
In , Ambasta (amit-prakash-ambasta) wrote :

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

Revision history for this message
In , Ambasta (amit-prakash-ambasta) wrote :

(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

Revision history for this message
In , Pacho-gentoo (pacho-gentoo) wrote :

*** Bug 375077 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Pacho-gentoo (pacho-gentoo) wrote :

*** Bug 375079 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Pacho-gentoo (pacho-gentoo) wrote :

*** Bug 375103 has been marked as a duplicate of this bug. ***

Revision history for this message
In , |Fred Krogh (fkrogh) wrote :

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.

Revision history for this message
In , Jorge Manuel B. S. Vicetto (jmbsvicetto) wrote :

The recent bug reports marked as dupes of this bug are most likely dupes of bug 375063.

Revision history for this message
In , Pacho-gentoo (pacho-gentoo) wrote :

(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 :)

Revision history for this message
In , Jorge Manuel B. S. Vicetto (jmbsvicetto) wrote :

*** Bug 381479 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Jorge Manuel B. S. Vicetto (jmbsvicetto) wrote :

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.

Changed in gentoo:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.