[Pymilter] Problem building on CentOS 5: 'unknown_callback' undeclared
Sean Reifschneider
jafo at tummy.com
Tue Mar 16 18:10:00 EDT 2010
Trying to build pymilter on CentOS 5 with the stock sendmail-devel package,
I get:
miltermodule.c:947: error: 'unknown_callback' undeclared (first use in this function)
If I apply the following patch to move the ifdef down afte rthe declarations,
it builds:
--- pymilter-0.9.3/miltermodule.c 2010-03-16 16:00:22.000000000 -0600
***************
*** 824,833 ****
return generic_noarg_wrapper(ctx,abort_callback);
}
- #ifdef SMFIS_ALL_OPTS
static PyObject *unknown_callback = NULL;
static PyObject *data_callback = NULL;
static PyObject *negotiate_callback = NULL;
static int
milter_wrap_unknown(SMFICTX *ctx, const char *cmd) {
--- 824,833 ----
return generic_noarg_wrapper(ctx,abort_callback);
}
static PyObject *unknown_callback = NULL;
static PyObject *data_callback = NULL;
static PyObject *negotiate_callback = NULL;
+ #ifdef SMFIS_ALL_OPTS
static int
milter_wrap_unknown(SMFICTX *ctx, const char *cmd) {
Thanks,
Sean
--
Do one thing every day that scares you.
-- Mary Schmich
Sean Reifschneider, Member of Technical Staff <jafo at tummy.com>
tummy.com, ltd. - Linux Consulting since 1995: Ask me about High Availability
More information about the Pymilter
mailing list