[Slackbuilds-users] OpenSMTPd build failure

Richard richard at aaazen.com
Mon Oct 5 15:46:18 UTC 2015


On Sat, 3 Oct 2015, Andrew wrote:

> opensmtpd 5.7.2 fails to build here.
>
> ...
> /bin/sh ../../ylwrap ../../smtpd/parse.y y.tab.c ../../smtpd/parse.c y.tab.h `echo ../../smtpd/parse.c | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/` y.output ../../smtpd/parse.output -- bison -y
> gcc -DHAVE_CONFIG_H -I. -I../..  -I../../smtpd -I../../openbsd-compat -I. -I/usr/include  -DSMTPD_CONFDIR=\"/etc/opensmtpd\" -DPATH_CHROOT=\"/var/empty\" -DPATH_SMTPCTL=\"/usr/sbin/smtpctl\" -DPATH_MAILLOCAL=\"/usr/libexec/opensmtpd/mail.local\" -DPATH_LIBEXEC=\"/usr/libexec/opensmtpd\" -DHAVE_CONFIG_H -DIO_SSL -DCA_FILE=\"/etc/ssl/certs/ca-certificates.crt\" -O2 -march=i486 -mtune=i686 -fstack-protector  -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_GNU_SOURCE -DNEED_EVENT_ASR_RUN -c -o ../../smtpd/smtpd-parse.o `test -f '../../smtpd/parse.c' || echo './'`../../smtpd/parse.c
> ../../smtpd/parse.c:291:6: error: redeclaration of enumerator 'ERROR'
>       ERROR = 293,
>       ^
> In file included from /usr/include/util.h:56:0,
>                  from ../../smtpd/parse.y:58:
> /usr/include/define.h:69:8: note: previous definition of 'ERROR' was here
>  enum { ERROR = -1, AOK = 0 };
>         ^
> make[3]: *** [../../smtpd/smtpd-parse.o] Error 1
> make[3]: Leaving directory `/tmp/AndDT/opensmtpd-5.7.2p1/mk/smtpd'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/tmp/AndDT/opensmtpd-5.7.2p1/mk'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/tmp/AndDT/opensmtpd-5.7.2p1'
> make: *** [all] Error 2
>

This is resolved.

It was caused by the /usr/include/util.h file from the iat
package from Alien Bob. (/usr/include/util.h is an OpenBSD system file...)

Alien Bob updated the iat package to not install any include files:

http://www.slackware.com/~alien/slackbuilds/iat/

Thanks again Alien Bob!

Richard Narron


More information about the SlackBuilds-users mailing list