Hi there,
I see a build error on portable (RHEL6, Fedora 19 amd64) with this snapshot:
----------- < cut here > -----------
make[4]: Entering directory
`/home/mock/rpmbuild/BUILD/opensmtpd-201311181634p1/mk/backends/scheduler-stub'
gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../smtpd
-I../../../openbsd-compat -I/usr/include/libdb4 -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 -c -o log.o `test -f
'../../../smtpd/log.c' || echo './'`../../../smtpd/log.c
gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../smtpd
-I../../../openbsd-compat -I/usr/include/libdb4 -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 -c -o scheduler_api.o `test -f
'../../../smtpd/scheduler_api.c' || echo './'`../../../smtpd/scheduler_api.c
../../../smtpd/scheduler_api.c: In function 'scheduler_msg_dispatch':
../../../smtpd/scheduler_api.c:209:23: error: 'i' undeclared (first use in
this function)
r = handler_release(i, u64, r);
^
../../../smtpd/scheduler_api.c:209:23: note: each undeclared identifier is
reported only once for each function it appears in
../../../smtpd/scheduler_api.c: At top level:
../../../smtpd/scheduler_api.c:392:1: error: conflicting types for
'scheduler_api_on_release'
scheduler_api_on_release(int(*cb)(uint64_t, int))
^
In file included from ../../../smtpd/scheduler_api.c:32:0:
../../../smtpd/smtpd-api.h:289:6: note: previous declaration of
'scheduler_api_on_release' was here
void scheduler_api_on_release(int(*)(int, uint64_t, int));
^
../../../smtpd/scheduler_api.c: In function 'scheduler_api_on_release':
../../../smtpd/scheduler_api.c:394:18: warning: assignment from
incompatible pointer type [enabled by default]
handler_release = cb;
^
make[4]: *** [scheduler_api.o] Error 1
make[4]: Leaving directory
`/home/mock/rpmbuild/BUILD/opensmtpd-201311181634p1/mk/backends/scheduler-stub'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/mock/rpmbuild/BUILD/opensmtpd-201311181634p1/mk/backends'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/mock/rpmbuild/BUILD/opensmtpd-201311181634p1/mk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/mock/rpmbuild/BUILD/opensmtpd-201311181634p1'
make: *** [all] Error 2
----------- < cut here > -----------
There was OK with the versions downloaded from Git, so the regression
introduced recently.
---
wbr, Denis.