Subject: Netatalk 2.0.2 configure looking for DB library version in vain
To: None <tech-pkg@netbsd.org>
From: Daniel R. Killoran,Ph.D. <drkilloran@speakeasy.net>
List: tech-pkg
Date: 03/27/2005 10:47:13
Using:

Netatalk 2.0.2
Berkley DB 4.3

NetBSD 2.0

Mac IIvx 68030

I am trying to get netatalk 2.0.2 working on NetBsd (because I couldn't  
get the version in pkgsrc to work with NetBSD 2.0).
I got the source from the Netatalk people on sourceforge,

>     http://marc.theaimsgroup.com/?l=netatalk
>      
> http://netatalk.sourceforge.net/2.0/htmldocs/ 
> installation.html#id2832939

and after figuring out how to get & install the Berkley DB libraries,  
and how to tell Netatalk where they were, I got most of the way through  
configure when it complained

checking for Berkeley DB headers in  
/usr/local/BerkeleyDB.4.3/include/db4... no
checking for Berkeley DB headers in  
/usr/local/BerkeleyDB.4.3/include/... yes
checking /usr/local/BerkeleyDB.4.3/include//db.h version >= 4.1.0...  
4.3.27, yes
checking for Berkeley DB link (-ldb-4.2)... no
checking for Berkeley DB link (-ldb42)... no
checking for Berkeley DB link (-ldb-42)... no
checking for Berkeley DB link (-ldb-4-2)... no
checking for Berkeley DB link (-ldb-4.1)... no
checking for Berkeley DB link (-ldb41)... no
checking for Berkeley DB link (-ldb-41)... no
checking for Berkeley DB link (-ldb-4-1)... no
checking for Berkeley DB link (-ldb-4)... yes
checking Berkeley DB library version >= 4.1.0... no     
<----------------------- the problem!
checking for Berkeley DB headers in /usr/local/BerkeleyDB.4.3/db4.2...  
no
checking for Berkeley DB headers in /usr/local/BerkeleyDB.4.3/db42... no
checking for Berkeley DB headers in /usr/local/BerkeleyDB.4.3/db4.1...  
no
checking for Berkeley DB headers in /usr/local/BerkeleyDB.4.3/db41... no
checking for Berkeley DB headers in /usr/local/BerkeleyDB.4.3/db4... no
checking for Berkeley DB headers in /usr/local/BerkeleyDB.4.3/... no



Ok, the archives told me to:

> $ LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.3/lib ; export  
> LD_LIBRARY_PATH
> $ LDFLAGS=-Wl,-rpath,/usr/local/BerkeleyDB.4.3/lib ; export LDFLAGS   
> <- add

actually I used (I am using csh):

set LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.3/lib
set LDFLAGS=-Wl,-rpath,/usr/local/BerkeleyDB.4.3/lib

which didn't work. Feeling uneasy about the comma after -rpath, I  
omitted it, trying with either a space instead, or with no space.
With a space, the shell naturally complained, and with no space it  
still didn't work.

Further googling yielded the advice:

> Most likely /usr/local/db4/lib is not in the linkers search path, so  
> linking
> to libdb fails.
> I'd suggest adding "/usr/local/db4/lib" to /etc/ld.so.conf, then run
> ldconfig. Configure should work fine then.

but the docs say that the preferred way is NOT to use /etc/ld.so.conf,  
but to specify rpath, which I had already tried.
Anyway, my system has no ld.so.conf file.

I can't find any further suggestions in the docs or archives. Any  
suggestions?

TIA,

Dan Killotan