Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 May 2002 21:26:17 +0200
From:      Sven =?iso-8859-1?Q?M=FCller?= <sven@hitnet.rwth-aachen.de>
To:        freebsd-questions@FreeBSD.ORG
Subject:   problems with pop-before-smtp
Message-ID:  <20020527212617.C1458@hitnet.rwth-aachen.de>

next in thread | raw e-mail | index | archive | help
Hello everybody!

I tried to install pop-before-smtp on my FreeBSD Release 4.5 mashine, but I have serveral problems
reading the created db File.

The tool runs an creates the file pop-before-smtp.db which postfix
should read, but it always gives me the error message:

May 27 01:20:00 temptation postfix/smtpd[22199]: fatal: open database
/usr/local/etc/postfix/pop-before-smtp.db: Invalid argument

Of coures the same with postmap:
su-2.05a# /usr/local/sbin/postmap -q 137.226.181.29
hash:/usr/local/etc/postfix/pop-before-smtp
postmap: fatal: open database /usr/local/etc/postfix/pop-before-smtp.db:
Invalid argument

I installed all necessary perl modules from cpan, without problems,
except BerkleyDB:

BerkeleyDB.xs:3222: `DB_VERSION_MAJOR' undeclared (first use in this
function)
BerkeleyDB.xs:3223: `DB_VERSION_MINOR' undeclared (first use in this
function)
BerkeleyDB.xs:3223: `DB_VERSION_PATCH' undeclared (first use in this
function)
BerkeleyDB.xs:3239: `db_recno_t' undeclared (first use in this function)
BerkeleyDB.xs:3240: structure has no member named `flags'
*** Error code 1

Stop in /root/.cpan/build/BerkeleyDB-0.18.
/usr/bin/make  -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible

Does anybody know why?

I checked the list of dynamic object dependencies for postfix and the
perl Modul File_DB
/usr/local/libexec/postfix/smtpd:
libdb3.so.2 => /usr/local/lib/libdb3.so.2 (0x28099000)
libm.so.2 => /usr/lib/libm.so.2 (0x2810d000)
libz.so.2 => /usr/lib/libz.so.2 (0x28129000)
libssl.so.2 => /usr/lib/libssl.so.2 (0x28136000)
libcrypto.so.2 => /usr/lib/libcrypto.so.2 (0x28162000)
libc.so.4 =>/usr/lib/libc.so.4 (0x28219000)

BUT:

su-2.05a# ldd /usr/libdata/perl/5.00503/mach/auto/DB_File/DB_File.so
/usr/libdata/perl/5.00503/mach/auto/DB_File/DB_File.so:
ldd: /usr/libdata/perl/5.00503/mach/auto/DB_File/DB_File.so: Exec format
error
/usr/libdata/perl/5.00503/mach/auto/DB_File/DB_File.so: exit status 1

Why? CPAN tells my the module is correctly installed.

Some more information:

su-2.05a# /usr/local/sbin/postconf -m
static
sdbm
regexp
environ
mysql
btree
unix
hash

I dont know what to do, but I need this tool! Please, can anyone help
me?
 
 Greetings, Sven

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?20020527212617.C1458>