Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57654 - sys-libs/db-4.2.52_p2 (berkdb) ebuild fails to emerge on amd64
Summary: sys-libs/db-4.2.52_p2 (berkdb) ebuild fails to emerge on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High enhancement (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-19 16:07 UTC by Matt Philips
Modified: 2005-10-25 19:06 UTC (History)
1 user (show)

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


Attachments
Emerge output from failed ebuild (berkdb ebuild.txt,109.09 KB, text/plain)
2004-07-19 16:11 UTC, Matt Philips
Details
Config, make, make install output - successful (berkdb make.txt,82.46 KB, text/plain)
2004-07-19 16:11 UTC, Matt Philips
Details
Proposed fix (db.patch,1.43 KB, patch)
2004-09-22 23:40 UTC, Andy Lutomirski
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Philips 2004-07-19 16:07:39 UTC
Berkdb sys-libs/db-4.2.52_p2 ebuild fails to emerge.
Manually config/make/make install'ing from source works.
Sys-libs/db-4.1.25_p1-r4 ebuild works.

I'm not capable of troubleshooting more than that, this is a request for a developer to take a look at it and see if it's easily fixable. If so, fix and add "~amd64" keyword.

Reproducible: Always
Steps to Reproduce:
1. emerge sys-libs/db
2.
3.

Actual Results:  
See attached output from emerge.

Expected Results:  
See attached output from make.

Portage 2.0.50-r9 (gcc34-amd64-2004.1, gcc-3.4.1, glibc-2.3.4.20040619-r0,
2.6.7-gentoo-r11)
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="amd64"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="-march=k8 -O2 -pipe"
FEATURES="buildpkg ccache fixpackages sandbox strict"
USE="acpi amd64 apache2 berkdb curl gd gdbm gif jpeg libwww mysql ncurses nogcj
nptl pam perl png python readline ssl threads truetype unicode xml2 zlib"
Comment 1 Matt Philips 2004-07-19 16:11:01 UTC
Created attachment 35776 [details]
Emerge output from failed ebuild
Comment 2 Matt Philips 2004-07-19 16:11:53 UTC
Created attachment 35777 [details]
Config, make, make install output - successful
Comment 3 Matt Philips 2004-07-22 16:43:39 UTC
I built it manually using default configure parameters, and it worked (see attachement). Then I built it again using the configure parameters from the ebuild, and it caught the same error. Then I removed the --enable-cxx from the parameters and rebuilt it, and it worked, so it seems that is the culprit. I assume this is related to recent trouble with libstdc++-v3 and/or libtool?
Comment 4 Matt Philips 2004-07-23 08:26:51 UTC
I found a post on BerkDB newsgroup that seems to be the same issue:
http://groups.google.com/groups?dq=&start=50&hl=en&lr=lang_en&ie=UTF-8&group=comp.databases.berkeley-db&safe=off&selm=1f3029c6.0405251420.4b8e432a%40posting.google.com
 "This is a known libtool bug; see
 http://mail.gnu.org/archive/html/libtool-patches/2003-06/msg00056.html.
 for a tiny patch to libtool.m4 that fixes this."
There's also a patch for berkdb that works around the libtool bug.

I haven't applied either patch yet to test it out, I'll get to it at some point.
Comment 5 Tom Martin (RETIRED) gentoo-dev 2004-08-12 15:38:36 UTC
C.F. bug #57654
Comment 6 Tom Martin (RETIRED) gentoo-dev 2004-08-12 15:39:32 UTC
Err.. no. C.F. bug #57987 - identical error.
Comment 7 Gary Schulte 2004-09-08 10:45:50 UTC
Also fails on Sparc64 with similar errors.  Similar errors reported on other architectures have been chalked up to libtool errors:

http://www.talkaboutdatabases.com/group/comp.databases.berkeley-db/messages/1063.html

Comment 8 Gary Schulte 2004-09-08 10:46:42 UTC
Also fails on Sparc64 with similar errors.  Similar errors reported on other architectures have been chalked up to libtool errors:

http://www.talkaboutdatabases.com/group/comp.databases.berkeley-db/messages/1063.html

Comment 9 Andy Lutomirski 2004-09-22 23:40:49 UTC
Created attachment 40197 [details, diff]
Proposed fix

I've hacked up a patch to configure based on the message here.	Works for me --
tested with Subversion.

At some point, I imagine this'll be fixed upstream and the patch can go away. 
It'll be loud and clear, because the fix should end up being exactly this. 
Someone should check that this doesn't break some other arch.

<rant>Why can't Portage figure out everything else that needs to rebuild to
switch to db4.2?  I wanted to test it with subversion -- little did I know that
the incomprehensible error I got was because I hadn't rebuilt apache
first.</rant>

This patch sneakily adds ~amd64 ;)
Comment 10 Andy Lutomirski 2004-09-22 23:43:07 UTC
...where by "the message here" I mean the post about the libtool bug: http://mail.gnu.org/archive/html/libtool-patches/2003-06/msg00056.html
Comment 11 Simon Stelling (RETIRED) gentoo-dev 2004-12-08 07:46:44 UTC
fixed in cvs now, sorry for the big delay
Comment 12 Josh Nichols (RETIRED) gentoo-dev 2005-10-25 19:06:36 UTC
I'm getting this same exact error nowadays. Emerge info as follows:
Portage 2.0.53_rc6 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2,
2.6.13-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.13-gentoo-r3 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
Gentoo Base System version 1.12.0_pre9
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/development/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://mirrors.acm.cs.rpi.edu/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/local/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/development/overlays/java-experimental
/development/overlays/free-java-overlay /development/overlays/chewi-overlay
/development/overlays/axxo-overlay"
SYNC="rsync://acm.cs.rpi.edu/gentoo-portage"
USE="amd64 X aac adns alsa apache2 automount avi bash-completion berkdb
bitmap-fonts cairo cdr crypt cscope cups curl dbus devmap dvd dvdr dvi eds
emboss encode faad ffmpeg firefox flac foomaticdb fortran gif gimpprint glitz
gnome gpm gstreamer gtk gtk2 hal howl imagemagick imlib ipv6 java javamail jpeg
libclamav libwww lzw lzw-tiff mad mozilla mp3 mpeg nautilus ncurses nls nptl
nsplugin nvidia offensive ogg oggvorbis opengl pam pcre pda pdflib perl png
python qt quicktime readline samba sdl spell ssl subversion syslog tcpd tetex
theora tiff truetype-fonts type1-fonts udev usb userlocales vorbis xine xml2 xpm
xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS