On Sat, 21 May 2016, parchd wrote:

> parchd <parchd+gmane@...> writes:
>
> >
> > >
> > > A new opensmtpd-extras snapshot is available at:
> > >
> > >
> http://www.opensmtpd.org/archives/opensmtpd-extras-201605182041.tar.gz
> > >
> >
> > Should the SIZE_T_MAX in filter_spamassassin.c be SIZE_MAX instead?
> > A quick search around pointed me towards trying that to successfully compile
> > in ArchLinux.
> >
>
>
> Alternatively, adding:
>
> #include "includes.h"
>
> seems to do the trick - I should have tried that first.
>
>

Yes,  I got the same error trying to build on Slackware:

...
filter_spamassassin.c: In function 'main':
filter_spamassassin.c:372:24: warning: implicit declaration of function
'strtonum' [-Wimplicit-function-declaration]
   spamassassin_limit = strtonum(l, 1, SIZE_T_MAX, &errstr);
                        ^
filter_spamassassin.c:372:39: error: 'SIZE_T_MAX' undeclared (first use in
this function)
   spamassassin_limit = strtonum(l, 1, SIZE_T_MAX, &errstr);
                                       ^
filter_spamassassin.c:372:39: note: each undeclared identifier is reported
only once for each function it appears in
Makefile:470: recipe for target 'filter_spamassassin.o' failed
...


And patching filter_spamassassin.c fixes it:

--- extras/wip/filters/filter-spamassassin/filter_spamassassin.c.orig
2016-05-18 11:37:19.000000000 -0700
+++ extras/wip/filters/filter-spamassassin/filter_spamassassin.c
2016-05-21 05:39:36.694205600 -0700
@@ -14,6 +14,8 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */

+#include "includes.h"
+
 #include <sys/types.h>

 #include <inttypes.h>


--
Richard Narron

-- 
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to