I have tested the current github portable branch on Cucumber Linux 1.1
(i686 and x86_64 architectures). You'll be happy to know that OpenSMTPD
builds and runs fine there.

Unfortunately though, the latest stable version of OpenSMTPD-extras
(5.7.1) doesn't work properly with github's -portable branch. It appears
that the PROC_TABLE_API_VERSION (in smtpd/smtpd-api.h) has been bumped
from 1 to 2 in OpenSMTPD 6.0.3. However, the PROC_TABLE_API_VERSION in
extras 5.7.1 is still at 1. This causes me to get the following error
when I attempt to run OpenSMTPD:

info: OpenSMTPD 6.0.3-portable starting ... warn: table-api: bad API
version fatal: table-api: terminating warn: table-proc: pipe closed
lookup: table-proc: exiting

Version 5.7.1 of OpenSMTPD-extras worked with OpenSMTPD 6.0.2, so it
looks like we need a new version of OpenSMTPD-extras for OpenSMTPD
6.0.3. That brings me to my next issue: I tried cloning the current
github version of OpenSMTPD-extras and building with that. It worked for
the most part; however, table-ldap fails to build now:

make[4]: Entering directory
'/tmp/opensmtpd-20180109p1-x86_64-1/src/opensmtpd-extras-20171229/extras/tables/table-ldap'
gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../api
-I../../../openbsd-compat -I/usr/include -g -O2 -fPIC -DPIC -Wall
-Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security
-Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result
-fno-strict-aliasing -fno-builtin-memset -D_BSD_SOURCE -fPIE -c -o
../../../api/table_api.o ../../../api/table_api.c In file included from
/usr/include/sys/types.h:25:0, from
../../../openbsd-compat/includes.h:25, from ../../../api/table_api.c:19:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and
_SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning
"_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^ gcc
-DHAVE_CONFIG_H -I. -I../../.. -I../../../api -I../../../openbsd-compat
-I/usr/include -g -O2 -fPIC -DPIC -Wall -Wpointer-arith -Wuninitialized
-Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess
-Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing
-fno-builtin-memset -D_BSD_SOURCE -fPIE -c -o table_ldap.o table_ldap.c
In file included from /usr/include/sys/types.h:25:0, from
../../../openbsd-compat/includes.h:25, from table_ldap.c:17:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and
_SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning
"_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^
table_ldap.c: In function 'table_ldap_check': table_ldap.c:92:15:
warning: implicit declaration of function 'ldap_open'
[-Wimplicit-function-declaration] if (!(ret = ldap_open())) { ^
table_ldap.c: At top level: table_ldap.c:314:1: error: static
declaration of 'ldap_open' follows non-static declaration
ldap_open(void) ^ table_ldap.c:92:15: note: previous implicit
declaration of 'ldap_open' was here if (!(ret = ldap_open())) { ^
Makefile:439: recipe for target 'table_ldap.o' failed make[4]: ***
[table_ldap.o] Error 1 make[4]: Leaving directory
'/tmp/opensmtpd-20180109p1-x86_64-1/src/opensmtpd-extras-20171229/extras/tables/table-ldap'
Makefile:378: recipe for target 'all-recursive' failed make[3]: ***
[all-recursive] Error 1 make[3]: Leaving directory
'/tmp/opensmtpd-20180109p1-x86_64-1/src/opensmtpd-extras-20171229/extras/tables'
Makefile:365: recipe for target 'all-recursive' failed make[2]: ***
[all-recursive] Error 1 make[2]: Leaving directory
'/tmp/opensmtpd-20180109p1-x86_64-1/src/opensmtpd-extras-20171229/extras'
Makefile:411: recipe for target 'all-recursive' failed make[1]: ***
[all-recursive] Error 1 make[1]: Leaving directory
'/tmp/opensmtpd-20180109p1-x86_64-1/src/opensmtpd-extras-20171229'
Makefile:343: recipe for target 'all' failed make: *** [all] Error 2

For now, I've worked around this by disabling table-ldap, but I thought
you might want to know about this. If I have a chance in the next couple
of days, I will try to write a patch for this.

    - Scott


On 01/09/18 04:51, Gilles Chehade wrote:
> ohai,
>
> we've synchronized the code in github's -portable branch with the code
> that's shipped with OpenBSD and it would be great if some of you could
> help us by building and installing from the portable branch at:
>
>      https://github.com/OpenSMTPD/OpenSMTPD.git
>
> and sending a mail to this list with a mention of what system / distro
> you tested, the more reports come flowing the sooner I can tag release
> so we can move forward with the next major release.
>
> this is for portable only & i'm not interested in reports from OpenBSD
> users, we know it builds and installs there ;-)
>
> Gilles
>

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to