Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135320 - net-p2p/dctc doesn't compile w/ >=sys-libs/db-4.2
Summary: net-p2p/dctc doesn't compile w/ >=sys-libs/db-4.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
: 154482 163250 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-02 13:26 UTC by Justin
Modified: 2007-01-22 20:07 UTC (History)
6 users (show)

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


Attachments
my config.log (config.log,41.47 KB, text/plain)
2006-06-02 13:29 UTC, Justin
Details
my emerge -v --info (emerge -v --info,6.85 KB, text/plain)
2006-06-02 13:30 UTC, Justin
Details
diacone_config.log (config.log,39.98 KB, text/plain)
2006-12-17 09:57 UTC, Daniel Svojanovsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin 2006-06-02 13:26:56 UTC
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for x86_64-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /bin/install -c
checking GCC version... 3.4.6
checking for libgcrypt-config... yes
checking gcrypt version... 1.2.2
checking for pkg-config... /usr/bin/pkg-config
checking for x86_64-pc-linux-gnu-pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking Berkeley Database library version... 4.3
checking for  in -ldb-4.3... no
checking for  in -ldb4... no
configure: error: db.h reports Berkeley DB version is 4.3 but no db-4.3 library                                             
exists

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/dctc-0.85.9/work/dctc-0.85.9/config.log

!!! ERROR: net-p2p/dctc-0.85.9 failed.
Call stack:
  ebuild.sh, line 1531:   Called dyn_compile
  ebuild.sh, line 931:   Called src_compile
  ebuild.sh, line 598:   Called econf
  ebuild.sh, line 533:   Called die

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if rel                                             
evant.
Comment 1 Justin 2006-06-02 13:29:12 UTC
Created attachment 88211 [details]
my config.log

My config.log
Comment 2 Justin 2006-06-02 13:30:39 UTC
Created attachment 88212 [details]
my emerge -v --info
Comment 3 Pavel 2006-06-05 22:12:45 UTC
same bugs on 4.4
Comment 4 Karol Wojtaszek (RETIRED) gentoo-dev 2006-06-06 13:43:18 UTC
Should be fixed now.
Comment 5 Justin 2006-06-06 14:04:26 UTC
Still getting the same error. Whatever Karol did to try and solve it did not work.
Comment 6 Karol Wojtaszek (RETIRED) gentoo-dev 2006-06-06 14:53:13 UTC
Thanks for fast response :) but wait for about 1h for ebuild propagate on rsync servers :)
Comment 7 Jon Hood (RETIRED) gentoo-dev 2006-06-20 09:04:43 UTC
still a problem, reopening
Comment 8 Jon Hood (RETIRED) gentoo-dev 2006-06-20 09:16:49 UTC
Someone will need to write a new configure.in file. It can't find the libraries correctly, even though they are there.

checking for db_env_create in -ldb-4.2... no

-ldb-4.2 exists on my system.
Comment 9 Martin Scherer 2006-07-24 05:50:28 UTC
(In reply to comment #8)
> Someone will need to write a new configure.in file. It can't find the libraries
> correctly, even though they are there.
> 
> checking for db_env_create in -ldb-4.2... no
> 
> -ldb-4.2 exists on my system.
> 

it misses the following binaries:

checking Berkeley Database library version... 4.2
checking for db_env_create in -ldb-4.2... no <-- missing
checking for db_env_create in -ldb4... no
configure: error: db.h reports Berkeley DB version is 4.2 but no db-4.2 library exists

(stable db on x86)
Comment 10 Jiri 2006-08-02 15:21:44 UTC
Hi! I have very similar problem on x86 with db 4.2.

I briefly looked at configure script of this package and it seems, db 4.2 (nor 4.3) is not supported. The highest supported version is 4.1. It seems, this package is quite obsolete.
Comment 11 Ryan Hill (RETIRED) gentoo-dev 2006-08-13 18:37:05 UTC
there was a sed line in the ebuild that let it work fine with <=db-4.2.  removing that sed broke this package for everyone on stable.


--- /usr/portage/net-p2p/dctc/dctc-0.85.9.ebuild        2006-06-06 15:06:24.000000000 -0600
+++ dctc-0.85.9.ebuild  2006-08-13 19:36:24.000000000 -0600
@@ -26,6 +26,12 @@
        epatch "${FILESDIR}"/dctc-0.85.9-gcc41.patch

        eautoreconf
+
+       # fix for #26708 (db4 support)
+       local dbfunc="`grep '^#define.*db_env_create' /usr/include/db.h | awk '{print $NF}'`"
+       if [ "${dbfunc}" != "db_env_create" ] ; then
+               sed -i "s:db_env_create:${dbfunc}:g" configure
+       fi
 }

 src_install() {
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2006-11-08 09:01:42 UTC
*** Bug 154482 has been marked as a duplicate of this bug. ***
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2006-12-13 09:54:41 UTC
Dunno folks, it compiles just fine here even w/ sys-libs/db-4.3.29-r2

<snip>
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking Berkeley Database library version... 4.3
checking for db_env_create in -ldb-4.3... yes
</snip>
Comment 14 Ryan Hill (RETIRED) gentoo-dev 2006-12-15 19:50:51 UTC
you're right, it's working for me now too.  i tried different combos of stable and testing db versions and it didn't break.

if anyone here is still hitting this bug, speak up now. ;d
Comment 15 Daniel Svojanovsky 2006-12-17 09:55:12 UTC
Yes, I have the very same problem. Here is my emerge --info:


Portage 2.1.1-r2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.17-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.6
Last Sync: Sun, 17 Dec 2006 01:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="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/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo "
LANG="cs_CZ.utf8"
LC_ALL="cs_CZ.utf8"
LINGUAS="cs"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acpi alsa apache2 bash-completion berkdb bitmap-fonts bzip2 cdr cli cracklib crypt cups directfb dlloader dri dvd dvdr dvdread elibc_glibc emul-linux-x86 ffmpeg firefox fortran gdbm gif gpm hal iconv imagemagick imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kernel_linux libg++ linguas_cs lirc_devices_all lm_sensors mad mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre pdf perl png ppds pppd python qt qt3 readline reflection samba sdl session spl ssl startup-notification svg tcpd truetype-fonts type1-fonts udev unicode usb userland_GNU vcd video_cards_nvidia vorbis xinerama xml xorg xosd xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


The error message is:


checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking Berkeley Database library version... 4.2
checking for db_env_create in -ldb-4.2... no
checking for db_env_create in -ldb4... no
configure: error: db.h reports Berkeley DB version is 4.2 but no db-4.2 library exists

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/dctc-0.85.9/work/dctc-0.85.9/config.log

!!! ERROR: net-p2p/dctc-0.85.9 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 605:   Called econf
  ebuild.sh, line 540:   Called die

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

Comment 16 Daniel Svojanovsky 2006-12-17 09:57:41 UTC
Created attachment 104224 [details]
diacone_config.log
Comment 17 Nick Hofstede 2006-12-17 23:56:23 UTC
Had the same problem, patch in comment #11 fixed it.
Comment 18 Raúl Porcel (RETIRED) gentoo-dev 2007-01-11 19:51:10 UTC
In CVS, thanks.
Comment 19 Jakub Moc (RETIRED) gentoo-dev 2007-01-22 14:37:50 UTC
*** Bug 163250 has been marked as a duplicate of this bug. ***
Comment 20 Pavel Shirov 2007-01-22 14:59:00 UTC
Last Sync: Mon, 22 Jan 2007 01:47:01 +0000

The ebuild seems to have workaround according to comment #11 but still it doesn't works for me with db-4.3 and db-4.2 installed.
Comment 21 Raúl Porcel (RETIRED) gentoo-dev 2007-01-22 19:13:51 UTC
*** Bug 163250 has been marked as a duplicate of this bug. ***
Comment 22 Raúl Porcel (RETIRED) gentoo-dev 2007-01-22 19:15:16 UTC
Okay, here's the thing. That fix only works if db-4.2 is installed, if db-4.3 in installed, the configure script fails.
Comment 23 Raúl Porcel (RETIRED) gentoo-dev 2007-01-22 20:07:05 UTC
Okay, i guess it's fixed now.