I'm attemtping to build the portable version of OpenSMTPD on SmartOS which uses
the illumos fork of OpenSolaris. I had to build Berkeley DB with
--enable-compat185 and install libevent, but the configure was successful.
Running gmake returns this:make all-recursive
make[1]: Entering directory `/root/opensmtpd-201403051040p1'
Making all in openbsd-compat
make[2]: Entering directory `/root/opensmtpd-201403051040p1/openbsd-compat'
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../openbsd-compat -g -O2 -fPIC
-DPIC -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security
-Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -fno-builtin-memset
-MT fparseln.o -MD -MP -MF .deps/fparseln.Tpo -c -o fparseln.o fparseln.c
fparseln.c:37:23: fatal error: sys/cdefs.h: No such file or directory
compilation terminated.
make[2]: *** [fparseln.o] Error 1
make[2]: Leaving directory `/root/opensmtpd-201403051040p1/openbsd-compat'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/opensmtpd-201403051040p1'
make: *** [all] Error 2
What can I install to get cdefs.h and are there other things I need to build
this on SmartOS?
Thanks