Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26772 - netatalk-1.6.x does not compile with db4
Summary: netatalk-1.6.x does not compile with db4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Paul de Vrieze (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: db4
  Show dependency tree
 
Reported: 2003-08-16 22:16 UTC by Brandy Westcott (RETIRED)
Modified: 2003-08-21 03:07 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 Brandy Westcott (RETIRED) gentoo-dev 2003-08-16 22:16:08 UTC
Netatalk does not compile if db4 is installed. The configure script looks like it is 
searching for db3: 
 
..... 
for bdbdir in "" "$trybdbdir" "$trybdbdir/include" "$trybdbdir/include/db3" 
"/usr/local/BerkeleyDB.3.3/include" "/usr/local/include/db3" "/usr/local/include" 
"/usr/include/db3" "/usr/include" ; do 
		if test -f "$bdbdir/db.h" ; then 
..... 
 
However the compile is linked against db4: 
 
gcc -I../../include -march=pentium4 -O3 -pipe -fomit-frame-pointer -I../../sys -o afpd 
unix.o ofork.o main.o switch.o auth.o volume.o directory.o file.o enumerate.o 
desktop.o filedir.o fork.o appl.o gettok.o mangle.o status.o afp_options.o afp_asp.o 
afp_dsi.o messages.o afp_config.o nfsquota.o codepage.o quota.o uam.o afs.o uid.o 
afp_util.o catsearch.o -Wl,--export-dynamic  ../../libatalk/.libs/libatalk.a 
-L/var/tmp/portage/netatalk-1.6.3/work/netatalk-1.6.3/libatalk -ldb -L//lib -lpam -lwrap 
-lrpcsvc -lcrypto -lnsl -ldl -lcrypt 
file.o(.text+0x289c): In function `afp_exchangefiles': 
: the use of `mktemp' is dangerous, better use `mkstemp' 
../../libatalk/.libs/libatalk.a(cnid_delete.lo)(.text+0x18e): In function `cnid_delete': 
: undefined reference to `db_strerror' 
../../libatalk/.libs/libatalk.a(cnid_delete.lo)(.text+0x238): In function `cnid_delete': 
: undefined reference to `db_strerror' 
../../libatalk/.libs/libatalk.a(cnid_lookup.lo)(.text+0x229): In function `cnid_lookup': 
: undefined reference to `db_strerror' 
../../libatalk/.libs/libatalk.a(cnid_lookup.lo)(.text+0x2a4): In function `cnid_lookup': 
: undefined reference to `db_strerror' 
../../libatalk/.libs/libatalk.a(cnid_open.lo)(.text+0x150): In function `cnid_open': 
: undefined reference to `db_env_create' 
../../libatalk/.libs/libatalk.a(cnid_open.lo)(.text+0x15c): In function `cnid_open': 
: undefined reference to `db_strerror' 
../../libatalk/.libs/libatalk.a(cnid_open.lo)(.text+0x29d): In function `cnid_open': 
: undefined reference to `db_create' 
../../libatalk/.libs/libatalk.a(cnid_open.lo)(.text+0x2ad): In function `cnid_open': 
: undefined reference to `db_strerror' 
../../libatalk/.libs/libatalk.a(cnid_open.lo)(.text+0x3c0): In function `cnid_open': 
: undefined reference to `db_strerror' 
../../libatalk/.libs/libatalk.a(cnid_open.lo)(.text+0x4dd): In function `cnid_open': 
: undefined reference to `db_create' 
../../libatalk/.libs/libatalk.a(cnid_open.lo)(.text+0x4e9): In function `cnid_open': 
: undefined reference to `db_strerror' 
../../libatalk/.libs/libatalk.a(cnid_open.lo)(.text+0x554): In function `cnid_open': 
: undefined reference to `db_strerror' 
../../libatalk/.libs/libatalk.a(cnid_open.lo)(.text+0x593): In function `cnid_open': 
: undefined reference to `db_create' 
../../libatalk/.libs/libatalk.a(cnid_open.lo)(.text+0x59f): In function `cnid_open': 
: undefined reference to `db_strerror' 
../../libatalk/.libs/libatalk.a(cnid_open.lo)(.text+0x602): In function `cnid_open': 
: undefined reference to `db_strerror' 
../../libatalk/.libs/libatalk.a(cnid_open.lo)(.text+0x643): In function `cnid_open': 
: undefined reference to `db_version' 
../../libatalk/.libs/libatalk.a(cnid_open.lo)(.text+0x687): In function `cnid_open': 
: undefined reference to `db_strerror' 
../../libatalk/.libs/libatalk.a(cnid_open.lo)(.text+0x6b4): In function `cnid_open': 
: undefined reference to `db_strerror' 
../../libatalk/.libs/libatalk.a(cnid_update.lo)(.text+0x183): In function `cnid_update': 
: undefined reference to `db_strerror' 
../../libatalk/.libs/libatalk.a(cnid_resolve.lo)(.text+0xea): In function `cnid_resolve': 
: undefined reference to `db_strerror' 
../../libatalk/.libs/libatalk.a(cnid_add.lo)(.text+0x17c): In function `cnid_add': 
: undefined reference to `db_strerror' 
../../libatalk/.libs/libatalk.a(cnid_add.lo)(.text+0x216): more undefined references to 
`db_strerror' follow 
collect2: ld returned 1 exit status 
make[4]: *** [afpd] Error 1 
make[4]: Leaving directory 
`/var/tmp/portage/netatalk-1.6.3/work/netatalk-1.6.3/etc/afpd' 
make[3]: *** [all-recursive] Error 1 
make[3]: Leaving directory 
`/var/tmp/portage/netatalk-1.6.3/work/netatalk-1.6.3/etc/afpd' 
make[2]: *** [all-recursive] Error 1 
make[2]: Leaving directory `/var/tmp/portage/netatalk-1.6.3/work/netatalk-1.6.3/etc' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/var/tmp/portage/netatalk-1.6.3/work/netatalk-1.6.3' 
make: *** [all] Error 2 
 
!!! ERROR: net-fs/netatalk-1.6.3 failed. 
!!! Function src_compile, Line 32, Exitcode 2 
!!! netatalk emake failed 
 

Reproducible: Always
Steps to Reproduce:
1. emerge db-4 
2. emerge netatalk-1.6.x 
3. 
Actual Results:  
Compile failed 

Expected Results:  
Compile successfully 

Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) 
================================================================= 
System uname: 2.4.20-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz 
GENTOO_MIRRORS="ftp://ftp.citylink.co.nz/gentoo http://gentoo.oregonstate.edu/ 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config 
/usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
PORTDIR="/usr/portage" 
DISTDIR="/usr/portage/distfiles" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR_OVERLAY="" 
USE="x86 oss apm avi crypt cups encode foomaticdb gif gpm jpeg gnome libg++ 
mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms 
xv zlib gtkhtml gdbm berkdb slang readline arts bonobo svga java X sdl tcpd pam 
libwww ssl perl python esd imlib oggvorbis gtk qt kde motif opengl 3dfx cdr doc dvd 
sse tcltk tetex -3dnow" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" 
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" 
ACCEPT_KEYWORDS="x86" 
MAKEOPTS="-j2" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
FEATURES="sandbox ccache"
Comment 1 Brandy Westcott (RETIRED) gentoo-dev 2003-08-18 20:59:00 UTC
There was an incorrect configure option given in the ebuilds. Instead of --with-db3 
there should be --with-bdb=/usr 
 
        econf \ 
                --enable-fhs \ 
                --with-shadow \ 
                --with-bdb=/usr \ 
                ${myconf} || die "netatalk configure failed" 
 
With this change I can confirm that both netatalk-1.6.2 and netatalk-1.6.3 compile with 
either db3 or db4. 
 
This will also close http://bugs.gentoo.org/show_bug.cgi?id=26771 
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-08-19 10:12:55 UTC
I'll try to fix this today if I get a chance (once CVS is back up).
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-08-21 01:25:16 UTC
fixes it with db4.0 for definate.
doesn't work with db4.1 yet, i'm investigating that still.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-08-21 03:07:41 UTC
fixed in CVS.
works with 4.1 too it seems.