Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86437 - DB_File ebuild does not find include
Summary: DB_File ebuild does not find include
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
: 99558 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-23 15:59 UTC by Ole Langbehn
Modified: 2005-07-19 13:23 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ole Langbehn 2005-03-23 15:59:29 UTC
On my system, DB_File ebuilds 1.811 and 1.808 (others untested) fail with the following error message:

gcc -c  -I/usr/local/BerkeleyDB/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=athlon-xp -O2 -pipe -fomit-frame-pointer   -DVERSION=\"1.811\" -DXS_VERSION=\"1.811\" -fPIC "-I/usr/lib/perl5/5.8.6/i686-linux/CORE"  -D_NOT_CORE  -DmDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t   version.c
version.c:30:16: db.h: No such file or directory
make: *** [version.o] Error 1

In the ebuilds, the default location for the db headers ( in the file config.in ) is:

INCLUDE = /usr/local/BerkeleyDB/include

When I change this to

INCLUDE = /usr/include/db4.2

the ebuilds compile.
I also noticed that variable LIB is also set to a wrong directory.

emerge info output:

Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r4 i686)
=================================================================
System uname: 2.6.11-gentoo-r4 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Mar 14 2005, 03:07:18)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/ http://gentoo.math.bme.hu http://gentoo.mirror.sdv.fr http://gentoo.tiscali.nl/gentoo/"
LANG="de_DE@euro"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -s"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X Xaw3d a52 aac aalib acpi acpi4linux alsa apache2 apm arts async avi bash-completion beepmp berkdb bitmap-fonts blender-game bootsplash bzlib cddb cdparanoia cdr crypt cups curl directfb divx4linux dmx dnd dts dv dvd dvdr edl emboss encode esd fam fame fbcon ffmpeg flac font-server foomaticdb foreign-sysvinit fortran ftp gcj gdbm geoip gif gimp gimpprint glut gnome gpm gstreamer gtk gtk2 hal icq imagemagick imlib ipv6 jabber java javascript jbig jp2 jpeg jpeg2k junit kde lcms libcaca libg++ libwww live lynxkeymap lzo lzw-tiff mad mikmod mime mjpeg mmx monkey motif mozdevelop mozilla moznocompose moznoirc mozsvg mp3 mpeg mysql mysqli ncurses network nls noamazon nowin nptl nptlonly nvidia offensive oggvorbis opengl operanom2 oss pam pdflib perl pg-hier php pic pie png posix postgres ppds pvm python qt quicktime readline real recode rtc ruby samba sdl slang sockets spell sse ssl stencil-buffer svg svga tcltk tcpd tetex theora threads tidy tiff transcode truetype truetype-fonts type1-fonts unicode userlocales vim-with-x wmf wxwindows xfs xine xml2 xmms xpm xsl xv xvid xvmc zlib linguas_de"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2005-03-24 01:28:37 UTC
Please provide the output of ls -al /usr/lib/libdb.* and ls -al /usr/include/db.h - they should have symlinks pointing to the same relative versions. The module's attempt to include /usr/local/BerkeleyDB* can be ignored if your system has a properly installed db (it'll locate it in your path). Thanks!
Comment 2 Ole Langbehn 2005-03-24 03:40:34 UTC
neuro ~ # ls -al /usr/lib/libdb.*
lrwxrwxrwx  1 root root 11 Jan  7 17:53 /usr/lib/libdb.a -> libdb-4.2.a
lrwxrwxrwx  1 root root 12 Jan  7 17:53 /usr/lib/libdb.so -> libdb-4.2.so
lrwxrwxrwx  1 root root 11 Jan  7 18:24 /usr/lib/libdb.so.2 -> libdb1.so.2
neuro ~ # ls -al /usr/include/db.h
ls: /usr/include/db.h: No such file or directory

so db.h header file is missing. I reemerged the two versions of DB I have installed. No symlink was created in /usr/include. Here are the lists of installed files:

>>> Merging sys-libs/db-1.85-r2 to /
--- /usr/
--- /usr/bin/
>>> /usr/bin/db1_dump185
--- /usr/lib/
>>> /usr/lib/libndbm.a -> libdb1.a
>>> /usr/lib/libndbm.so -> libdb1.so.2
>>> /usr/lib/libdb.so.2 -> libdb1.so.2
>>> /usr/lib/libdb1.a
>>> /usr/lib/libdb1.so -> libdb1.so.2
>>> /usr/lib/libdb1.so.2
--- /usr/share/
--- /usr/share/doc/
--- /usr/share/doc/db-1.85-r2/
--- /usr/share/doc/db-1.85-r2/ps/
>>> /usr/share/doc/db-1.85-r2/ps/dbopen.3.ps.gz
>>> /usr/share/doc/db-1.85-r2/ps/mpool.3.ps.gz
>>> /usr/share/doc/db-1.85-r2/ps/recno.3.ps.gz
>>> /usr/share/doc/db-1.85-r2/ps/btree.3.ps.gz
>>> /usr/share/doc/db-1.85-r2/ps/libtp.usenix.ps.gz
>>> /usr/share/doc/db-1.85-r2/ps/hash.usenix.ps.gz
>>> /usr/share/doc/db-1.85-r2/ps/hash.3.ps.gz
--- /usr/share/doc/db-1.85-r2/hash/
>>> /usr/share/doc/db-1.85-r2/hash/README.gz
>>> /usr/share/doc/db-1.85-r2/README.gz
>>> /usr/share/doc/db-1.85-r2/changelog.gz
--- /usr/include/
--- /usr/include/db1/
>>> /usr/include/db1/db.h
>>> /usr/include/db1/mpool.h
>>> /usr/include/db1/ndbm.h
>>> /usr/include/ndbm.h -> db1/ndbm.h
>>> Safely unmerging already-installed instance...

>>> Merging sys-libs/db-4.2.52_p2 to /
--- /usr/
--- /usr/bin/
>>> /usr/bin/db4.2_checkpoint
>>> /usr/bin/db4.2_deadlock
>>> /usr/bin/db4.2_upgrade
>>> /usr/bin/db4.2_archive
>>> /usr/bin/db4.2_dump
>>> /usr/bin/db4.2_load
>>> /usr/bin/db4.2_stat
>>> /usr/bin/db4.2_printlog
>>> /usr/bin/db4.2_recover
>>> /usr/bin/db4.2_verify
--- /usr/lib/
>>> /usr/lib/libdb_cxx-4.2.a
>>> /usr/lib/libdb_java-4.2.la
>>> /usr/lib/libdb_java-4.2.so
>>> /usr/lib/libdb-4.2.la
>>> /usr/lib/libdb-4.2.so
>>> /usr/lib/libdb.a
>>> /usr/lib/libdb_tcl-4.2.a
>>> /usr/lib/libdb_java-4.2.a
>>> /usr/lib/libdb_cxx-4.2.la
>>> /usr/lib/libdb_cxx-4.2.so
>>> /usr/lib/libdb_tcl-4.2.la
>>> /usr/lib/libdb_tcl-4.2.so
>>> /usr/lib/libdb_cxx.a
>>> /usr/lib/libdb-4.2.a
>>> /usr/lib/db-4.2.jar
--- /usr/sbin/
>>> /usr/sbin/berkeley_db42_svc
--- /usr/share/
--- /usr/share/db/
>>> /usr/share/db/package.env
--- /usr/include/
--- /usr/include/db4.2/
>>> /usr/include/db4.2/db.h
>>> /usr/include/db4.2/db_185.h
>>> /usr/include/db4.2/db_cxx.h
>>> Safely unmerging already-installed instance...
Comment 3 Michael Cummings (RETIRED) gentoo-dev 2005-03-24 03:53:23 UTC
Paul,

Are you still maintainer/stuckee for db? Any ideas why db-4.2.52_p2 wouldn't have included the /usr/include/db.h symlink?
Comment 4 Paul de Vrieze (RETIRED) gentoo-dev 2005-03-24 04:34:27 UTC
Yeah, I'm still stuckee for db. I've just added some informational messages to the db.eclass. Could you try to emerge the 4.2 version of db again and post the last part of the output?
Comment 5 Ole Langbehn 2005-03-24 09:45:50 UTC
The symlinks have been created using the new eclass:

lrwxrwxrwx  1 root root  14 M 24 18:40 /usr/include/db_185.h -> db4.2/db_185.h
lrwxrwxrwx  1 root root  10 M 24 18:40 /usr/include/db.h -> db4.2/db.h

here's the output you requested anyways:

>>> Merging sys-libs/db-4.2.52_p2 to /
--- /usr/
--- /usr/bin/
>>> /usr/bin/db4.2_checkpoint
>>> /usr/bin/db4.2_deadlock
>>> /usr/bin/db4.2_upgrade
>>> /usr/bin/db4.2_archive
>>> /usr/bin/db4.2_dump
>>> /usr/bin/db4.2_load
>>> /usr/bin/db4.2_stat
>>> /usr/bin/db4.2_printlog
>>> /usr/bin/db4.2_recover
>>> /usr/bin/db4.2_verify
--- /usr/lib/
>>> /usr/lib/libdb_cxx-4.2.a
>>> /usr/lib/libdb_java-4.2.la
>>> /usr/lib/libdb_java-4.2.so
>>> /usr/lib/libdb-4.2.la
>>> /usr/lib/libdb-4.2.so
>>> /usr/lib/libdb.a
>>> /usr/lib/libdb_tcl-4.2.a
>>> /usr/lib/libdb_java-4.2.a
>>> /usr/lib/libdb_cxx-4.2.la
>>> /usr/lib/libdb_cxx-4.2.so
>>> /usr/lib/libdb_tcl-4.2.la
>>> /usr/lib/libdb_tcl-4.2.so
>>> /usr/lib/libdb_cxx.a
>>> /usr/lib/libdb-4.2.a
>>> /usr/lib/db-4.2.jar
--- /usr/sbin/
>>> /usr/sbin/berkeley_db42_svc
--- /usr/share/
--- /usr/share/db/
>>> /usr/share/db/package.env
--- /usr/include/
--- /usr/include/db4.2/
>>> /usr/include/db4.2/db.h
>>> /usr/include/db4.2/db_185.h
>>> /usr/include/db4.2/db_cxx.h
>>> Safely unmerging already-installed instance...
--- !mtime obj /usr/share/db/package.env
--- !mtime obj /usr/sbin/berkeley_db42_svc
--- !mtime obj /usr/lib/libdb_tcl-4.2.so
--- !mtime obj /usr/lib/libdb_tcl-4.2.la
--- !mtime obj /usr/lib/libdb_tcl-4.2.a
--- !mtime obj /usr/lib/libdb_java-4.2.so
--- !mtime obj /usr/lib/libdb_java-4.2.la
--- !mtime obj /usr/lib/libdb_java-4.2.a
--- !mtime obj /usr/lib/libdb_cxx.a
--- !mtime obj /usr/lib/libdb_cxx-4.2.so
--- !mtime obj /usr/lib/libdb_cxx-4.2.la
--- !mtime obj /usr/lib/libdb_cxx-4.2.a
--- !mtime obj /usr/lib/libdb.a
--- !mtime obj /usr/lib/libdb-4.2.so
--- !mtime obj /usr/lib/libdb-4.2.la
--- !mtime obj /usr/lib/libdb-4.2.a
--- !mtime obj /usr/lib/db-4.2.jar
--- !mtime obj /usr/include/db4.2/db_cxx.h
--- !mtime obj /usr/include/db4.2/db_185.h
--- !mtime obj /usr/include/db4.2/db.h
--- !mtime obj /usr/bin/db4.2_verify
--- !mtime obj /usr/bin/db4.2_upgrade
--- !mtime obj /usr/bin/db4.2_stat
--- !mtime obj /usr/bin/db4.2_recover
--- !mtime obj /usr/bin/db4.2_printlog
--- !mtime obj /usr/bin/db4.2_load
--- !mtime obj /usr/bin/db4.2_dump
--- !mtime obj /usr/bin/db4.2_deadlock
--- !mtime obj /usr/bin/db4.2_checkpoint
--- !mtime obj /usr/bin/db4.2_archive
--- !empty dir /usr/share/db
--- !empty dir /usr/share
--- !empty dir /usr/sbin
--- !empty dir /usr/lib
--- !empty dir /usr/include/db4.2
--- !empty dir /usr/include
--- !empty dir /usr/bin
--- !empty dir /usr
find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

 * Creating db.h symlinks to db4.2
>>> original instance of package unmerged safely.
find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

 * Creating db.h symlinks to db4.2
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies ...                                                                                                                                                                        [ ok ]
>>> sys-libs/db-4.2.52_p2 merged.
Comment 6 Ole Langbehn 2005-03-24 09:49:26 UTC
In order to get rid of the annoying find messages put the maxdepth option before the type option in the find calls of the eclass
Comment 7 Michael Cummings (RETIRED) gentoo-dev 2005-04-02 06:13:02 UTC
Ole - can I assume since there's been no further posting that dev-perl/DB_File emerged fine and this bug can be closed?
Comment 8 Ole Langbehn 2005-04-07 12:55:04 UTC
Yep, if you reread the first lines of my second to last comment you will see that it emerged fine. Sorry if I wasn't clear enough.
Comment 9 Michael Cummings (RETIRED) gentoo-dev 2005-04-08 02:48:52 UTC
Just didn't want to close the bug prematurely :) Thanks,

Mike
Comment 10 Michael Cummings (RETIRED) gentoo-dev 2005-07-19 13:23:35 UTC
*** Bug 99558 has been marked as a duplicate of this bug. ***