Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 217976
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Heiko Baums <heiko@baums-on-web.de>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
build.log build.log text/plain Heiko Baums 2008-04-20 16:21 0000 297.05 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 217976 depends on: Show dependency tree
Bug 217976 blocks: 217647 224067
Votes: 5    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-04-16 16:16 0000
dev-db/mysql-5.0.56 fails to compile with this error message:

make[3]: Entering directory
`/var/tmp/portage/dev-db/mysql-5.0.56/work/mysql/bdb/build_unix'
/bin/sh ./libtool --mode=compile i686-pc-linux-gnu-gcc -c -I.
-I../../././bdb/dist/.. -I../../././bdb/dist/../dbinc  -D_GNU_SOURCE
-D_REENTRANT  -DDBUG_OFF -march=athlon-xp -O2 -pipe -fomit-frame-pointer
-DHAVE_ERRNO_AS_DEFINE=1   ../../././bdb/dist/../mutex/mut_pthread.c
 i686-pc-linux-gnu-gcc -c -I. -I../../././bdb/dist/..
-I../../././bdb/dist/../dbinc -D_GNU_SOURCE -D_REENTRANT -DDBUG_OFF
-march=athlon-xp -O2 -pipe -fomit-frame-pointer -DHAVE_ERRNO_AS_DEFINE=1
../../././bdb/dist/../mutex/mut_pthread.c -o mut_pthread.o
../../././bdb/dist/../mutex/mut_pthread.c:8:23: error: db_config.h: No such
file or directory
../../././bdb/dist/../mutex/mut_pthread.c:21:20: error: db_int.h: No such file
or directory
../../././bdb/dist/../mutex/mut_pthread.c: In function
�__db_pthread_mutex_init�:
../../././bdb/dist/../mutex/mut_pthread.c:66: error: expected declaration
specifiers before �DB_ENV�
../../././bdb/dist/../mutex/mut_pthread.c:67: error: expected declaration
specifiers before �DB_MUTEX�
../../././bdb/dist/../mutex/mut_pthread.c:82: error: �MUTEX_MPOOL�
undeclared (first use in this function)
../../././bdb/dist/../mutex/mut_pthread.c:82: error: (Each undeclared
identifier is reported only once
../../././bdb/dist/../mutex/mut_pthread.c:82: error: for each function it
appears in.)
../../././bdb/dist/../mutex/mut_pthread.c:83: error: invalid type argument of
�unary *�
../../././bdb/dist/../mutex/mut_pthread.c:83: warning: passing argument 1 of
�memset� makes pointer from integer without a cast
../../././bdb/dist/../mutex/mut_pthread.c:94: error: �MUTEX_THREAD�
undeclared (first use in this function)
../../././bdb/dist/../mutex/mut_pthread.c:94: error: �DB_ENV_PRIVATE�
undeclared (first use in this function)
../../././bdb/dist/../mutex/mut_pthread.c:95: error: �DB_ENV_THREAD�
undeclared (first use in this function)
../../././bdb/dist/../mutex/mut_pthread.c:96: error: �MUTEX_IGNORE�
undeclared (first use in this function)
../../././bdb/dist/../mutex/mut_pthread.c:187: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c:192: error: �MUTEX_INITED�
undeclared (first use in this function)
../../././bdb/dist/../mutex/mut_pthread.c: In function
�__db_pthread_mutex_lock�:
../../././bdb/dist/../mutex/mut_pthread.c:208: error: expected declaration
specifiers before �DB_ENV�
../../././bdb/dist/../mutex/mut_pthread.c:209: error: expected declaration
specifiers before �DB_MUTEX�
../../././bdb/dist/../mutex/mut_pthread.c:214: error: �DB_ENV_NOLOCKING�
undeclared (first use in this function)
../../././bdb/dist/../mutex/mut_pthread.c:214: error: �MUTEX_IGNORE�
undeclared (first use in this function)
../../././bdb/dist/../mutex/mut_pthread.c:218: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c:219: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c:222: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c:225: error: �MUTEX_SELF_BLOCK�
undeclared (first use in this function)
../../././bdb/dist/../mutex/mut_pthread.c:226: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c:227: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c:227: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c:238: error: �EINTR� undeclared
(first use in this function)
../../././bdb/dist/../mutex/mut_pthread.c:242: error: �ETIMEDOUT�
undeclared (first use in this function)
../../././bdb/dist/../mutex/mut_pthread.c:243: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c:249: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c:251: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c:256: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c:269: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c:270: error: �EFAULT� undeclared
(first use in this function)
../../././bdb/dist/../mutex/mut_pthread.c:274: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c:275: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c:277: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c:278: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c:278: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c:280: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c:290: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c: In function
�__db_pthread_mutex_unlock�:
../../././bdb/dist/../mutex/mut_pthread.c:307: error: expected declaration
specifiers before �DB_ENV�
../../././bdb/dist/../mutex/mut_pthread.c:308: error: expected declaration
specifiers before �DB_MUTEX�
../../././bdb/dist/../mutex/mut_pthread.c:312: error: �DB_ENV_NOLOCKING�
undeclared (first use in this function)
../../././bdb/dist/../mutex/mut_pthread.c:312: error: �MUTEX_IGNORE�
undeclared (first use in this function)
../../././bdb/dist/../mutex/mut_pthread.c:320: error: �MUTEX_SELF_BLOCK�
undeclared (first use in this function)
../../././bdb/dist/../mutex/mut_pthread.c:321: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c:324: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c:326: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c:330: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c:335: error: invalid type argument of
�->�
../../././bdb/dist/../mutex/mut_pthread.c:336: error: �EFAULT� undeclared
(first use in this function)
../../././bdb/dist/../mutex/mut_pthread.c: In function
�__db_pthread_mutex_destroy�:
../../././bdb/dist/../mutex/mut_pthread.c:351: error: expected declaration
specifiers before �DB_MUTEX�
../../././bdb/dist/../mutex/mut_pthread.c:355: error: �MUTEX_IGNORE�
undeclared (first use in this function)
../../././bdb/dist/../mutex/mut_pthread.c:358: error: invalid type argument of
�->�
make[3]: *** [mut_pthread.o] Error 1
make[3]: Leaving directory
`/var/tmp/portage/dev-db/mysql-5.0.56/work/mysql/bdb/build_unix'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/var/tmp/portage/dev-db/mysql-5.0.56/work/mysql/bdb'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.56/work/mysql'
make: *** [all] Error 2
 *
 * ERROR: dev-db/mysql-5.0.56 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3542:  Called mysql_src_compile
 *             environment, line 3146:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed";
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if
relevant.
 * A complete build log is located at
'/var/tmp/portage/dev-db/mysql-5.0.56/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/dev-db/mysql-5.0.56/temp/environment'.
 *


emerge --info:

Portage 2.1.5_rc4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.7-r1,
2.6.24-gentoo-r5 i686)
=================================================================
System uname: 2.6.24-gentoo-r5 i686 AMD Athlon(tm) XP 1600+
Timestamp of tree: Wed, 16 Apr 2008 14:00:03 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.5.1-r5
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/applications/kde
/usr/kde/3.5/share/config /usr/kde/3.5/share/services/searchproviders
/usr/kde/3.5/shutdown /usr/share/applications /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /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/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict
unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS=""
LINGUAS="de"
PKGDIR="/usr/portage/packages"
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/portage/local/layman/sunrise /usr/portage/local/private"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib accessibility acl aften alsa apache2 apm
arts asf audiofile authfile avi berkdb bluetooth bzip2 cairo caps cdda cddb
cdparanoia cdr chardet clamav cli cracklib crypt css ctype cups curl d dbus dga
divx dri dv dvb dvd dvdnav dvdr dvdread eds emboss encode espeak expat
extrafilters fam fame fbcon fbcondecor festival ffmpeg firefox flac fltk
fontconfig foomaticdb fortran ftp gcj gd gdbm gif gimp glib glitz gmedia gmp
gnutls gpm graphviz gs gstreamer gtk gtkhtml gucharmap hddtemp iconv idn ilbc
imagemagick imlib inkjar ipv6 irmc isdnlog jack jack-tmpfs jackmidi jce jpeg
kde ladspa lame lcms libffi libnotify libsamplerate lirc live lm_sensors
logrotate loop-aes lzo mad mbox mbrola md5sum midi mikmod mjpeg mmx mmxext mng
modplug motif mozilla mp2 mp3 mp4 mpeg mplayer mudflap musepack musicbrainz
mysql mysqli nas ncurses network nls nptl nptlonly nsplugin objc objc++ objc-gc
offensive ofx ogg opengl openmp osc oss pam pcre pdf perl php plugin png
portaudio ppds pppd print pulseaudio python qt3 qt3support qt4 quicktime quotes
rar readline real realmedia reflection rtc rtsp scanner sdl session shout
sndfile speex spell spl sqlite sse ssl svg tcl tcltk tcpd tetex themes theora
threads threadsafe tidy tiff tk tokenizer tools truetype unicode usb utempter
v4l v4l2 vcd vdr vidix visualization vlm vorbis win32codecs wma wmf wmp x264
x86 xcomposite xine xiph xml xorg xpm xv xvid xvmc yv12 zip zlib"
ALSA_CARDS="ice1712" 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" APACHE2_MODULES="actions alias
auth_basic authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache
filter headers include info log_config logio mem_cache mime mime_magic
negotiation rewrite setenvif speling status unique_id userdir usertrack
vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text" LINGUAS="de" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="nvidia
v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #1 From Jeroen Roovers 2008-04-16 16:23:52 0000 -------
What is the output of `emerge -vp =dev-db/mysql-5.0.56`?

------- Comment #2 From Heiko Baums 2008-04-17 00:47:11 0000 -------
# emerge -vp =dev-db/mysql-5.0.56

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] dev-db/mysql-5.0.56 [5.0.54] USE="berkdb perl ssl -big-tables
-cluster -debug -embedded -extraengine -latin1 -max-idx-128 -minimal (-selinux)
-static" 27,105 kB

Total: 1 package (1 upgrade), Size of downloads: 27,105 kB

------- Comment #3 From SpanKY 2008-04-20 03:02:22 0000 -------
please post full build logs as attachments instead of just the tail snippets. 
often times the tail snippets are irrelevant.

seems to be an autoconf-2.62 bug

the important part here is from much earlier:
configure: creating ./config.status
./config.status: line 827: db_cxx.h:../../././bdb/dist/../dbinc/db_cxx.in: No
such file or directory
./config.status: line 828: db_int.h:../../././bdb/dist/../dbinc/db_int.in: No
such file or directory
./config.status: line 829: include.tcl:../../././bdb/dist/../test/include.tcl:
No such file or directory
./config.status: line 830:
db.h:../../././bdb/dist/../dbinc/db.in:../../././bdb/dist/../dbinc_auto/rpc_defs.in:../../././bdb/dist/../dbinc_auto/ext_prot.in:
No such file or directory
config.status: creating Makefile
END OF BERKELEY DB CONFIGURATION

------- Comment #4 From SpanKY 2008-04-20 04:02:52 0000 -------
mandriva seems to have a fix:
http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/autoconf/current/SOURCES/autoconf-2.62-fix-multiline-string.patch?view=log

------- Comment #5 From Heiko Baums 2008-04-20 16:21:53 0000 -------
Created an attachment (id=150422) [details]
build.log

------- Comment #6 From Fabio Coatti 2008-04-20 16:45:52 0000 -------
(In reply to comment #4)
> mandriva seems to have a fix:
> http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/autoconf/current/SOURCES/autoconf-2.62-fix-multiline-string.patch?view=log
> 

Just tested it: it fixes the issue.

------- Comment #7 From Dan Coats 2008-04-22 14:15:32 0000 -------
same here.. Is there still a need of more info?

------- Comment #8 From SpanKY 2008-04-22 19:07:31 0000 -------
no ... we're waiting for autoconf to find out the right fix and once they merge
that, i'll add it to our autoconf

------- Comment #9 From Massimiliano Pizzola 2008-04-23 12:48:21 0000 -------
e

------- Comment #10 From Massimiliano Pizzola 2008-04-23 12:57:14 0000 -------
Remove berkdb 
(Berkeley DB support is deprecated and will be removed in future versions!)

# /etc/portage/package.use
dev-db/mysql -berkdb 

emerge -avD dev-db/mysql
emerge --config =dev-db/mysql-5.0.56

------- Comment #11 From Kliakhandler Kosta 2008-04-24 09:14:15 0000 -------
(In reply to comment #10)
> Remove berkdb 
> (Berkeley DB support is deprecated and will be removed in future versions!)
> 
> # /etc/portage/package.use
> dev-db/mysql -berkdb 
> 
> emerge -avD dev-db/mysql
> emerge --config =dev-db/mysql-5.0.56
> 

I can confirm that this happens with mysql-5.0.54 as well, and that
USE="-berkdb" is a working workaround.

------- Comment #12 From SpanKY 2008-06-29 23:10:34 0000 -------
autoconf-2.62-r1 should fix things for you ... but it isnt the final/correct
fix, so we'll leave the bug open

------- Comment #13 From Rafał Mużyło 2008-08-17 12:59:21 0000 -------
Well, in case you care:
recently autoconf's git got following fix for this problem
http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commit;h=22efb81e0aaad363d4b0f9fb6cfef80aa6e46f85

------- Comment #14 From SpanKY 2008-09-21 06:20:17 0000 -------
should be fixed with autoconf-2.63 in the tree

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug