Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 290814

Summary: dev-libs/apr-util-1.3.9 with mysql use-flag may compile without mysql support
Product: Gentoo Linux Reporter: Viktor Griph <gentoo>
Component: Current packagesAssignee: Apache Team - Bugzilla Reports <apache-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Viktor Griph 2009-10-27 22:39:08 UTC
The configure phase of dev-libs/apr-util-1.3.9 does not fail if mysql is not found even if configured with USE="mysql"

Reproducible: Always

Steps to Reproduce:
1. echo dev-libs/apr-util mysql >> /etc/portage/package.use
2. ebuild /usr/portage/dev-libs/apr-util/apr-util-1.3.9.ebuild configure
3. grep apu_have_mysq /var/tmp/portage/dev-libs/apr-util-1.3.9/work/apr-util-1.3.9/config.status

Actual Results:  
[...]
config.status: executing default commands
>>> Source configured.
S["apu_have_mysql"]="0"


Expected Results:  
either the configure step (or some earlier step) should fail or S["apu_have_mysql"]="1"

Relevant part of config.log:
configure:42622: checking for mysql_config
configure:42640: found /usr/bin/mysql_config
configure:42652: result: /usr/bin/mysql_config
configure:42715: checking for mysql.h
configure:42736: i686-pc-linux-gnu-gcc -c -march=pentium4 -O2 -pipe -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/mysql conftest.c >&5
In file included from conftest.c:18:
/usr/include/mysql/my_global.h:361:24: error: asm/atomic.h: No such file or directory
configure:42743: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <my_global.h>
| 
| #include <mysql.h>
configure:42760: result: no
configure:42850: checking for mysql/mysql.h
configure:42871: i686-pc-linux-gnu-gcc -c -march=pentium4 -O2 -pipe -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/mysql conftest.c >&5
In file included from conftest.c:18:
/usr/include/mysql/my_global.h:361:24: error: asm/atomic.h: No such file or directory
configure:42878: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <mysql/my_global.h>
| 
| #include <mysql/mysql.h>
configure:42895: result: no


 # emerge --info
Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.29.5 i686)
=================================================================
System uname: Linux-2.6.29.5-i686-Intel-R-_Pentium-R-_4_CPU_3.40GHz-with-gentoo-1.12.11.1
Timestamp of tree: Tue, 27 Oct 2009 22:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 1.3.7, 2.1.9-r1
dev-lang/python:     2.4.4-r13, 2.5.2-r5, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
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.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://192.168.1.2 http://192.168.1.3 http://mirror.gentoo.no/ http://ds.thn.htu.se/linux/gentoo http://ftp.port80.se/gentoo"
LANG="sv_SE"
LC_ALL="en_US"
LDFLAGS="-Wl,-O1"
LINGUAS="sv_SE en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 avahi bash/completion bluetooth bmp branding bzip2 cairo cdr cli consolekit cracklib crypt cxx dbus dga divx4linux dri dts dvb dvd dvdr dvdread eds emacs encode evo exif fam firefox flac fortran gcj gdbm gif gimp gpm gtk hal iconv imagemagick ipv6 isdnlog ithreads java javascript jpeg lcms libnotify lirc mad mmx mng modules mp3 mp4 mpeg mudflap ncurses nfs nls nptl nptlonly ogg opengl openmp pam pcre pdf perl php plotutils png ppds pppd python qt3support qt4 quicktime radio readline reflection sdl session sockets socks5 spell spl sse sse2 ssl startup-notification subversion svg sysfs tcpd tetex theora thunar tiff truetype unicode usb userlocales v4l v4l2 vcd videos vorbis win32codecs wmf x264 x86 xface xine xml xml2 xorg xosd xsl xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="sv_SE en" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="radeon vga vesa nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Benedikt Böhm (RETIRED) gentoo-dev 2010-01-11 08:17:17 UTC
why would mysql not be installed? it's in DEPEND ...
Comment 2 Viktor Griph 2010-01-11 10:36:01 UTC
(In reply to comment #1)
> why would mysql not be installed? it's in DEPEND ...
> 

mysql was installed. This was a long time ago, and I don't remember exactly what caused it, but I think it was some version mismatch. See the output from the configure above. The error was

/usr/include/mysql/my_global.h:361:24: error: asm/atomic.h: No such file or directory

which shows that some version of mysql was installed. My gentoo machine is currently packed up, and I can't check this now, but I think I solved it in some way. Please verify the minimum version of mysql that apr-util depends on.