Build problems with 3.2.3p1 under Tru64 UNIX 4.0D

Albert Chin openssh-unix-dev at thewrittenword.com
Wed Jun 5 10:02:23 EST 2002


Tru64 UNIX 4.0D, with the DTK (Desktop Toolkit), includes int64_t in
/usr/include.dtk/stdint.h.

$ gmake
...
(cd openbsd-compat && gmake)
gmake[1]: Entering directory
`/opt/build/openssh-3.2.3p1/openbsd-compat'
cc -O2 -std -I/opt/TWWfsw/tcpwrap/include -I. -I.. -I. -I./..
-I/opt/TWWfsw/libopenssl09s/include -I/opt/TWWfsw/zlib11s/include
-DHAVE_CONFIG_H -c bsd-arc4random.c
cc: Error: ../defines.h, line 151: In this declaration, "uint8_t"
appears to be used as if it named a type, but there is no declared
type of that name visible. (typedefnotdef)
typedef uint8_t u_int8_t;
--------^
cc: Error: ../defines.h, line 152: In this declaration, "uint16_t"
appears to be used as if it named a type, but there is no declared
type of that name visible. (typedefnotdef)
typedef uint16_t u_int16_t;
--------^

The patch below fixes this. This patch was inspired by one from Tim
Mooney:
  http://marc.theaimsgroup.com/?l=openssh-unix-dev&m=99842334021906&w=2

-- 
albert chin (china at thewrittenword.com)

-- snip snip
--- configure.ac.orig	Wed May 29 17:51:40 2002
+++ configure.ac	Tue Jun  4 18:02:20 2002
@@ -1045,7 +1024,20 @@
 	AC_DEFINE(HAVE_INT64_T)
 	have_int64_t=1
 fi
-	
+
+if test -z "$have_int64_t" ; then
+    AC_MSG_CHECKING([for int64_t type in stdint.h])
+	AC_TRY_COMPILE(
+		[ #include <stdint.h> ], 
+		[ int64_t a; a = 1],
+		[
+			AC_DEFINE(HAVE_INT64_T)
+			AC_MSG_RESULT(yes)
+		],
+		[ AC_MSG_RESULT(no) ]
+	)
+fi
+
 if test -z "$have_int64_t" ; then
     AC_MSG_CHECKING([for int64_t type in sys/socket.h])
 	AC_TRY_COMPILE(
--- includes.h.orig	Tue Jun  4 18:38:48 2002
+++ includes.h	Tue Jun  4 18:39:02 2002
@@ -115,6 +115,9 @@
 #ifdef HAVE_SYS_UN_H
 # include <sys/un.h> /* For sockaddr_un */
 #endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
 #ifdef HAVE_SYS_BITYPES_H
 # include <sys/bitypes.h> /* For u_intXX_t */
 #endif



More information about the openssh-unix-dev mailing list