portable build failure

2019-01-16 Thread edgar
diff --git a/smtpd/table.c b/smtpd/table.c
index c18256a3..12f2e0e6 100644
--- a/smtpd/table.c
+++ b/smtpd/table.c
@@ -63,7 +63,9 @@ static unsigned int last_table_id = 0;
 
 static struct table_backend *backends[] = {
_backend_static,
+#ifdef HAVE_DB_API
_backend_db,
+#endif
_backend_getpwnam,
_backend_proc,
NULL

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



portable build failure

2015-07-29 Thread Luis
Hi,

I've cloned the opensmtpd git repository and after checking out the
portable branch, I've got a build error (Debian system):

../../openbsd-compat/err.h:25:19: note: in definition of macro b
   fprintf(stderr, format \n, ## args)
   ^
../../openbsd-compat/err.h:16:3: note: in expansion of macro b
   errx(exitcode, format : %s, ## args, strerror(errno))
   ^
../../smtpd/delivery_lmtp.c:207:8: note: in expansion of macro b
err(1, NULL);
^
../../openbsd-compat/err.h:16:25: warning: null argument where non-null 
required (argument 2) [-Wnonnull]
   errx(exitcode, format : %s, ## args, strerror(errno))
 ^
../../openbsd-compat/err.h:25:19: note: in definition of macro b
   fprintf(stderr, format \n, ## args)
   ^
../../openbsd-compat/err.h:16:3: note: in expansion of macro b
   errx(exitcode, format : %s, ## args, strerror(errno))
   ^
../../smtpd/delivery_lmtp.c:207:8: note: in expansion of macro b
err(1, NULL);
^


If i revert the following commits I am able to build again:

5401ab7332ae include err.h if there's no err.h on the system
178e3f54f58d add openbsd-compat/err.h from 
https://raw.githubusercontent.com/libressl-portable/portable/master/include/err.h

Are these commits really necessary?

Cheers,
--
Luis

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org