MailScanner / v5

MailScanner v5
GNU General Public License v2.0
185 stars 60 forks source link

DB_File dependency missing during --update #663

Closed RobinR1 closed 10 months ago

RobinR1 commented 1 year ago

I upgraded from Mailscanner 5.4.4-1 to 5.5.1-1 on openSuse Leap 15.4 but during building and testing of DB_File this error is displayed:

FAIL Installing DB_File failed. See /root/.cpanm/work/1684880349.6957/build.log for details. Retry with --force to force install it.

In the build.log I see this error:

"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- DB_File.bs blib/arch/auto/DB_File/DB_File.bs 644
cc -c  -I/usr/local/BerkeleyDB/include -D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -Wall -pipe   -DVERSION=\"1.858\" -DXS_VERSION=\"1.858\" -fPIC "-I/usr/lib/perl5/5.26.1/x86_64-linux-thread-multi/CORE"  -D_NOT_CORE  -DmDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t   version.c
version.c:30:10: fatal error: db.h: No such file or directory
 #include <db.h>
          ^~~~~~
compilation terminated.
make: *** [Makefile:355: version.o] Error 1

After installing libdb-4_8-devel and retrying the update, it worked.

zypper install libdb-4_8-devel

Expected behavior building and testing without errors

Server:

shawniverson commented 10 months ago

libdb-4_8-devel listed in BASEPACKAGES