Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 341853 - dev-db/mariadb-5.1.50: missing /usr/include/mysql/my_global.h causes php-5.3.3-r1, sci-libs/gdal and others to fail to compile
Summary: dev-db/mariadb-5.1.50: missing /usr/include/mysql/my_global.h causes php-5.3....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL: https://bugs.launchpad.net/maria/+bug...
Whiteboard:
Keywords:
: 353480 361175 381479 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-10-20 08:28 UTC by Jetchko Jekov
Modified: 2012-04-04 20:41 UTC (History)
13 users (show)

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


Attachments
failed build.log (build.log,472.28 KB, text/plain)
2010-10-21 05:59 UTC, Jetchko Jekov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jetchko Jekov 2010-10-20 08:28:55 UTC
/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
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-10-20 16:15:53 UTC
Please attach the full build log and post your `emerge --info' in a comment.
Comment 2 Jetchko Jekov 2010-10-21 05:59:59 UTC
Created attachment 251409 [details]
failed build.log
Comment 3 Jetchko Jekov 2010-10-21 06:00:23 UTC
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
Comment 4 Sven Gebhardt 2010-11-12 16:03:57 UTC
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
Comment 5 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2010-12-15 15:50:50 UTC
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
Comment 6 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2011-01-10 17:53:31 UTC
Added upstream bug link.
Comment 7 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2011-02-03 02:40:24 UTC
*** Bug 353480 has been marked as a duplicate of this bug. ***
Comment 8 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2011-02-03 09:33:09 UTC
USE="mysqli" emerge -av1 php
this is the useflag that caused this error, i am about to try mariadb from overlay now
Comment 9 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2011-02-03 10:01:58 UTC
5.1.53 from the mysql overlay fixed the issue, please keep the bug open until this is fixed in tree
Comment 10 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2011-04-04 16:41:52 UTC
*** Bug 361175 has been marked as a duplicate of this bug. ***
Comment 11 Amit Prakash Ambasta 2011-05-02 12:45:21 UTC
The issue is again present in all ebuilds > 5.1.53 [ 5.1.55 and 5.2 included ]
Comment 12 Aleksandr Dobdin 2011-05-06 20:08:00 UTC
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
Comment 13 Amit Prakash Ambasta 2011-05-17 04:52:00 UTC
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
Comment 14 Amit Prakash Ambasta 2011-05-17 06:48:01 UTC
(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
Comment 15 Pacho Ramos gentoo-dev 2011-07-13 13:57:36 UTC
*** Bug 375077 has been marked as a duplicate of this bug. ***
Comment 16 Pacho Ramos gentoo-dev 2011-07-13 13:58:19 UTC
*** Bug 375079 has been marked as a duplicate of this bug. ***
Comment 17 Pacho Ramos gentoo-dev 2011-07-14 09:52:39 UTC
*** Bug 375103 has been marked as a duplicate of this bug. ***
Comment 18 Fred Krogh 2011-07-14 13:21:15 UTC
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.
Comment 19 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2011-07-14 13:46:21 UTC
The recent bug reports marked as dupes of this bug are most likely dupes of bug 375063.
Comment 20 Pacho Ramos gentoo-dev 2011-07-15 09:50:46 UTC
(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 :)
Comment 21 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2011-09-06 11:07:37 UTC
*** Bug 381479 has been marked as a duplicate of this bug. ***
Comment 22 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2011-10-07 03:11:29 UTC
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.
Comment 23 David Parrish 2012-04-04 20:41:00 UTC
I just wanted to add, that I had compile errors with PHP when I had mariadb version 5.1.50 installed.  Updating to version 5.1.55 fixed my compile errors.