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

Reply via email to