Groups | Search | Server Info | Login | Register
Groups > comp.mail.sendmail > #8259
| From | kalevi@kolttonen.fi (Kalevi Kolttonen) |
|---|---|
| Newsgroups | comp.mail.sendmail |
| Subject | Re: sendmail snapshot 8.19.0.0 |
| Date | 2026-03-10 14:46 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <10oparp$arep$1@dont-email.me> (permalink) |
| References | <10ootuc$5r7$1@news.misty.com> |
Claus Aßmann <INVALID_NO_CC_REMOVE_IF_YOU_DO_NOT_POST_ml+sendmail(-no-copies-please)@esmtp.org> wrote:
> sendmail snapshot 8.19.0.0 is available for testing. The sendmail
> code base has been converted to ANSI C. Please test this on different
> operating systems with different compilers and report any errors
> (and unusual warnings).
On Fedora Linux 43 with:
libdb-5.3.28-66.fc43.x86_64
gcc-15.2.1-5.fc43.x86_64
compilation fails like this using NEWDB:
---------------------------------------------------------------
smdb2.c: In function ‘smdb_db_open_internal’:
smdb2.c:464:33: error: passing argument 2 of ‘(*db)->set_errcall’ from incompatible pointer type [-Wincompatible-pointer-types]
464 | (*db)->set_errcall(*db, db_err_cb);
| ^~~~~~~~~
| |
| void (*)(const char *, char *)
smdb2.c:464:33: note: expected ‘void (*)(const DB_ENV *, const char *, const char *)’ {aka ‘void (*)(const struct __db_env *, const char *, const char *)’} but argument is of type ‘void (*)(const char *, char *)’
smdb2.c:442:1: note: ‘db_err_cb’ declared here
442 | db_err_cb(
| ^~~~~~~~~
---------------------------------------------------------------
The error is caused by the following:
---------------------------------------------------------------
static void
db_err_cb(
# if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3
const DB_ENV *dbenv, const char *errpfx, const char *msg
# else
const char *errpfx, char *msg
# endif
)
{
/* do not print/log any errors... */
return;
}
---------------------------------------------------------------
I retried after a small change:
# if DB_VERSION_MAJOR >= 4 && DB_VERSION_MINOR >= 3
and the compilation succeeded.
br,
KK
Back to comp.mail.sendmail | Previous | Next — Previous in thread | Next in thread | Find similar
sendmail snapshot 8.19.0.0 Claus Aßmann <INVALID_NO_CC_REMOVE_IF_YOU_DO_NOT_POST_ml+sendmail(-no-copies-please)@esmtp.org> - 2026-03-10 07:05 -0400
Re: sendmail snapshot 8.19.0.0 kalevi@kolttonen.fi (Kalevi Kolttonen) - 2026-03-10 14:46 +0000
Re: sendmail snapshot 8.19.0.0 Claus Aßmann <INVALID_NO_CC_REMOVE_IF_YOU_DO_NOT_POST_ml+sendmail(-no-copies-please)@esmtp.org> - 2026-03-10 13:11 -0400
Re: sendmail snapshot 8.19.0.0 kalevi@kolttonen.fi (Kalevi Kolttonen) - 2026-03-10 19:37 +0000
Re: sendmail snapshot 8.19.0.0 Claus Aßmann <INVALID_NO_CC_REMOVE_IF_YOU_DO_NOT_POST_ml+sendmail(-no-copies-please)@esmtp.org> - 2026-03-11 01:37 -0400
csiph-web