Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jan 2001 00:42:18 -0400 (AST)
From:      The Hermit Hacker <scrappy@hub.org>
To:        "David J. MacKenzie" <djm@web.us.uu.net>
Cc:        <fastresolve-bugs@web.us.uu.net>, <freebsd-questions@freebsd.org>
Subject:   Re: fastresolve 2.8 with DB_File / Berkeley DB3 ...
Message-ID:  <Pine.BSF.4.31.0101200022590.554-100000@thelab.hub.org>
In-Reply-To: <20010120040648.E0F2312686@jenkins.web.us.uu.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 19 Jan 2001, David J. MacKenzie wrote:

> You do need to have a perl DB_File module linked against the
> same version of Berkeley DB that the C program dns-terror
> is using.  At our site, by default DB_File is linked against
> DB 2.x, but we wanted to access old DB 1.x files from perl
> also.  So we made a DB1_File module by copying the sources
> to DB_File and renaming the files and doing a search and
> replace.  And of course we compile and link it against the
> desired version of DB.  You could do the same to make a DB3_File
> module.
>
> It is kind of odd that perl doesn't come with this ability.

Hadn't thought of that, but with your suggestions, just tried it, and am
getting the same results after makign sure that convert-ip-db to use
DB3_File ... but I'm guessing that might have to do with header files, as
when i make it load the proper includes, the DB_File won't even build, as
its missing defines ...

but, it turns out there is a BerkeleyDB perl interface ... what is the
chances of moving fastresolve over to that?

NAME
       BerkeleyDB - Perl extension for Berkeley DB version 2 or 3

I just tried a simple search and replace in convert-ip-db, and it results
in:

thelab# convert-ip-db
Can't locate auto/BerkeleyDB/TIEHASH.al in @INC (@INC contains: /usr/libdata/perl/5.6.0/mach /usr/libdata/perl/5.6.0 /usr/local/lib/perl5/site_perl/5.6.0/mach /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl/5.6.0 .) at /usr/local/bin/convert-ip-db line 48

so it obviously doesn't work "out of the box" ...


Marc G. Fournier                   ICQ#7615664               IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.31.0101200022590.554-100000>