configure warning on SunOS 4.1.4

Darren Tucker dtucker at zip.com.au
Fri Feb 5 13:38:24 AEDT 2016


On Mon, Feb 01, 2016 at 12:52:35AM +0100, Klaus Ziegler - owner of sunfreeware.de wrote:
[...]
> "/usr/include/sys/audit.h", line 189: syntax error before or at: blabel_t
> "/usr/include/sys/audit.h", line 189: cannot recover from previous errors

Does sys/types.h pull in the required headers?  The configure tests do
this kind of thing:

| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif

however right now the AC_CHECK_FUNCS are in alphabetical order so things
like sys/types.h don't get checked until quite late.  If we check these
things first it's probably a bit more likely to avoid this class of
problems across the board.

Does this patch help?  You will need to run "autoreconf" to rebuild
configure after applying.

> let's see how the build goes, when the new openssl has finshed testing the
> build went
> fine so far - shared library support is still missing - but we'll see -:)

In general, as long as a) someone is willing to do the work and b) it
does not compromise support of modern platforms I'm happy to accept
patches to support retrocomputing systems :-)

diff --git a/configure.ac b/configure.ac
index 0b399ce..e97565a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -365,6 +365,16 @@ AC_ARG_WITH([Werror],
 	]
 )
 
+# Standard system headers used by AC_CHECK_FUNCS, sys ones first.
+AC_CHECK_HEADERS([ \
+	sys/types.h \
+	sys/stat.h \
+	stdint.h \
+	string.h \
+	strings.h \
+	unistd.h \
+])
+
 AC_CHECK_HEADERS([ \
 	blf.h \
 	bstring.h \
@@ -399,7 +409,6 @@ AC_CHECK_HEADERS([ \
 	sha2.h \
 	shadow.h \
 	stddef.h \
-	stdint.h \
 	string.h \
 	strings.h \
 	sys/audit.h \
@@ -414,7 +423,6 @@ AC_CHECK_HEADERS([ \
 	sys/prctl.h \
 	sys/pstat.h \
 	sys/select.h \
-	sys/stat.h \
 	sys/stream.h \
 	sys/stropts.h \
 	sys/strtio.h \
@@ -426,7 +434,6 @@ AC_CHECK_HEADERS([ \
 	tmpdir.h \
 	ttyent.h \
 	ucred.h \
-	unistd.h \
 	usersec.h \
 	util.h \
 	utime.h \

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.


More information about the openssh-unix-dev mailing list