Bug 184636 - dev-libs/apr-util-1.2.8-r1 build failure
Bug#: 184636 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: critical Priority: P2
Resolution: FIXED Assigned To: apache-bugs@gentoo.org Reported By: rajiv@gentoo.org
Component: Ebuilds
URL: 
Summary: dev-libs/apr-util-1.2.8-r1 build failure
Keywords:  
Status Whiteboard: 
Opened: 2007-07-08 18:38 0000
Description:   Opened: 2007-07-08 18:38 0000
during the build:

/bin/sh /usr/bin/libtool --silent --mode=compile i686-pc-linux-gnu-gcc -pthread
 -march=athlon-xp -O3 -pipe -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT
-D_GNU_SOURCE -D_LARGEFILE64_SOURCE  
-I/var/tmp/portage/dev-libs/apr-util-1.2.8-r1/work/apr-util-1.2.8/include
-I/var/tmp/portage/dev-libs/apr-util-1.2.8-r1/work/apr-util-1.2.8/include/private
 -I/usr/include/apr-1  -I/usr/include/db4.3 -I/usr/include/mysql  -o
dbd/apr_dbd_mysql.lo -c dbd/apr_dbd_mysql.c && touch dbd/apr_dbd_mysql.lo
dbd/apr_dbd_mysql.c:76: error: syntax error before "MYSQL_STMT"
dbd/apr_dbd_mysql.c:76: warning: no semicolon at end of struct or union
dbd/apr_dbd_mysql.c:101: error: syntax error before "MYSQL_STMT"
dbd/apr_dbd_mysql.c:101: warning: no semicolon at end of struct or union
dbd/apr_dbd_mysql.c:102: error: `bind' redeclared as different kind of symbol
/usr/include/sys/socket.h:111: error: previous declaration of `bind'
dbd/apr_dbd_mysql.c:102: warning: data definition has no type or storage class
dbd/apr_dbd_mysql.c:106: error: syntax error before '}' token
dbd/apr_dbd_mysql.c: In function `dbd_mysql_select':
dbd/apr_dbd_mysql.c:272: error: invalid application of `sizeof' to an
incomplete type
dbd/apr_dbd_mysql.c:274: error: dereferencing pointer to incomplete type
dbd/apr_dbd_mysql.c:275: error: dereferencing pointer to incomplete type
[...]

------- Comment #1 From Rajiv Aaron Manglani 2007-07-08 18:40:31 0000 -------
Created an attachment (id=124261) [details]
portage log

------- Comment #2 From Rajiv Aaron Manglani 2007-07-08 18:40:53 0000 -------
Portage 2.1.3_rc6 (default-linux/x86/no-nptl/2.4, gcc-3.3.6, glibc-2.3.6-r5,
2.4.34.4 i686)
=================================================================
System uname: 2.4.34.4 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.12.6
Timestamp of tree: Sun, 08 Jul 2007 01:50:01 +0000
ccache version 2.4 [enabled]
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.4.26-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="[...]"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php4/ext-active/
/etc/php/cgi-php4/ext-active/ /etc/php/cli-php4/ext-active/ /etc/revdep-rebuild
/etc/terminfo"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distlocks metadata-transfer parallel-fetch
sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo/
http://gentoo.mirrors.pair.com/ http://gentoo.osuosl.org/"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/voip"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow X alsa apache2 apm audacious bash-completion berkdb bitmap-fonts
bzip2 caps cli cracklib crypt cups curl eds emacs emboss encode ethereal expat
foomaticdb gd gdbm gif gstreamer gtk gtk2 iconv imap imlib innodb isdnlog jpeg
libg++ libwww live logrotate mad maildir mbox midi mmx motif mp3 mpeg mudflap
mysql ncurses ogg old-linux openmp oss pam pcre perl png pppd python qmail qt3
qt4 quicktime readline reflection sdl server session spell spl sse ssl tiff
tools truetype truetype-fonts type1-fonts unicode vhosts vim-with-x virus-scan
vorbis wxwindows x86 xml xml2 xorg xv xvid zaptel zlib" ALSA_CARDS="intel8x0"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file
hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route
share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text" USERLAND="GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #3 From Christian Heim (RETIRED) 2007-07-08 20:21:58 0000 -------
I'm just committing a fixed ebuild to the tree, which should work-around your
issue. This is basically due to the backend requiring mysql-5, which as you
said on IRC don't have installed.

The "solution" is, install a newer version of mysql or don't activate the USE
for  it. 

------- Comment #4 From Mark Wagner 2007-07-11 17:46:58 0000 -------
Are you sure mysql-5 is needed? I can compile it with mysql-4. I'll attach a
log of my build. Here is it compiling:

/bin/sh /usr/bin/libtool --silent --mode=compile i686-pc-linux-gnu-gcc -pthread
 -march=athlon-tbird -O2 -pipe -fomit-frame-pointer -DHAVE_CONFIG_H -DLINUX=2
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE  
-I/var/tmp/portage/dev-libs/apr-util-1.2.8-r1/work/apr-util-1.2.8/include
-I/var/tmp/portage/dev-libs/apr-util-1.2.8-r1/work/apr-util-1.2.8/include/private
 -I/usr/include/apr-1  -I/usr/include/db4.5 -I/usr/include/mysql  -o
dbd/apr_dbd_mysql.lo -c dbd/apr_dbd_mysql.c && touch dbd/apr_dbd_mysql.lo
i686-pc-linux-gnu-gcc -E -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE  
-I/var/tmp/portage/dev-libs/apr-util-1.2.8-r1/work/apr-util-1.2.8/include
-I/var/tmp/portage/dev-libs/apr-util-1.2.8-r1/work/apr-util-1.2.8/include/private
 -I/usr/include/apr-1  -I/usr/include/db4.5 -I/usr/include/mysql  exports.c |
grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$/\1/' >> aprutil.exp

------- Comment #5 From Mark Wagner 2007-07-11 17:47:27 0000 -------
Portage 2.1.3_rc7 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r4,
2.6.21-gentoo-r3 i686)
=================================================================
System uname: 2.6.21-gentoo-r3 i686 AMD Athlon(tm) Processor
Gentoo Base System release 1.12.10
Timestamp of tree: Wed, 11 Jul 2007 16:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
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
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo
/etc/texmf/web2c"
CXXFLAGS="-march=athlon-tbird -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer sandbox sfperms strict
unmerge-orphans userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X Xaw3d a52 aac aalib acl acpi aim alsa apache apache2
audiofile bash-completion berkdb bitmap-fonts bzip2 bzlib cairo cdparanoia cdr
cgi cli cracklib crypt cups curl dbus dga divx4linux dri dts dv dvb dvd dvdr
dvdread dynagraph edl emacs emboss encode esd ethereal exif ffmpeg fftw firefox
flac font-server fontconfig fpx gd gdbm geoip gif gimp gimpprint glibc-omitfp
gmp gnutls gpgme graphviz gs gstreamer gtk gtkhtml hal iconv icq idea
imagemagick imap innodb isdnlog java jbig jikes jpeg lcms ldap libcaca libg++
live lm_sensors logrotate lua lzw-tiff mad maildrop mailwrapper matroska mbox
midi mikmod milter mmap mmx mng mozdevelop mozilla moznocompose moznoirc
moznomail mozsvg mp3 mp4 mpeg mudflap musepack mysql ncurses nethack netpbm nls
nptl nptlonly nsplugin offensive ogg openal opengl openmp oss pam pam_chroot
pam_console pam_timestamp pcre pda pdf perl perlsuid pic plotutils png postgres
ppds pppd python qt3 qt4 quicktime readline real reflection rtc samba sdl
sensord session silc slp smime sndfile snmp speex spell spl sqlite ssl svg
syslog tcltk tcpd tga theora tiff truetype truetype-fonts trusted type1-fonts
unicode usb userlocales vhosts videos vorbis vorbis-psy win32codecs wmf x264
x86 xanim xml xorg xpm xprint xrandr xv xvid zip 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc"
INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz
cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en"
USERLAND="GNU" VIDEO_CARDS="nv vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS,
PORTDIR_OVERLAY

------- Comment #6 From Mark Wagner 2007-07-11 17:49:41 0000 -------
Created an attachment (id=124586) [details]
portage log

------- Comment #7 From Jeroen Roovers 2007-08-08 04:01:15 0000 -------
*** Bug 188033 has been marked as a duplicate of this bug. ***