openssh 5.2p1 fails to build on IRIX 5.3

Tim Rice tim at multitalents.net
Tue Mar 17 09:33:40 EST 2009


On Mon, 16 Mar 2009, Tom Christensen wrote:

> Hello,
> 
> I ran into a few problems when trying to build openssh 5.2p1 on IRIX 5.3.
> 
> First one is new to 5.2p1:
[snip]
> cfe: Error: channels.c, line 2472: 'in_port_t' undefined; reoccurrences 
> will not be reported.
>          in_port_t *lport_p;
>          ^
[snip]

Please try the attached in_port_t.patch and report back.
You'll need to run autoreconf with version 2.61 or better.
If you don't have an up to date autoconf, apply the 
attached optional-part2.patch.

I haven't looked at the second probelm yet.

-- 
Tim Rice				Multitalents	(707) 887-1469
tim at multitalents.net
-------------- next part --------------
--- openssh/configure.ac.old	2009-02-16 09:47:37.628109004 -0800
+++ openssh/configure.ac	2009-03-16 14:36:27.020757062 -0700
@@ -2694,7 +2694,7 @@
 #endif
 ])
 
-AC_CHECK_TYPES(in_addr_t,,,
+AC_CHECK_TYPES([in_addr_t, in_port_t],,,
 [#include <sys/types.h>
 #include <netinet/in.h>])
 
--- openssh/defines.h.old	2009-02-16 09:47:37.648109004 -0800
+++ openssh/defines.h	2009-03-16 13:40:27.660357005 -0700
@@ -301,6 +301,10 @@
 typedef u_int32_t	in_addr_t;
 #endif
 
+#ifndef HAVE_IN_PORT_T
+typedef unsigned short in_port_t;
+#endif
+
 #if defined(BROKEN_SYS_TERMIO_H) && !defined(_STRUCT_WINSIZE)
 #define _STRUCT_WINSIZE
 struct winsize {
-------------- next part --------------
--- openssh/config.h.in.old	2009-02-16 09:47:49.000000000 -0800
+++ openssh/config.h.in	2009-03-16 14:36:41.000000000 -0700
@@ -518,6 +518,9 @@
 /* Define to 1 if the system has the type `in_addr_t'. */
 #undef HAVE_IN_ADDR_T
 
+/* Define to 1 if the system has the type `in_port_t'. */
+#undef HAVE_IN_PORT_T
+
 /* Define to 1 if you have the <lastlog.h> header file. */
 #undef HAVE_LASTLOG_H
 
--- openssh/configure.old	2009-02-22 19:57:05.000000000 -0800
+++ openssh/configure	2009-03-16 14:36:40.520757002 -0700
@@ -22186,6 +22186,69 @@
 
 
 fi
+{ echo "$as_me:$LINENO: checking for in_port_t" >&5
+echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
+if test "${ac_cv_type_in_port_t+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <sys/types.h>
+#include <netinet/in.h>
+
+typedef in_port_t ac__type_new_;
+int
+main ()
+{
+if ((ac__type_new_ *) 0)
+  return 0;
+if (sizeof (ac__type_new_))
+  return 0;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_compile") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && {
+	 test -z "$ac_c_werror_flag" ||
+	 test ! -s conftest.err
+       } && test -s conftest.$ac_objext; then
+  ac_cv_type_in_port_t=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+	ac_cv_type_in_port_t=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
+echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
+if test $ac_cv_type_in_port_t = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_IN_PORT_T 1
+_ACEOF
+
+
+fi
 
 
 { echo "$as_me:$LINENO: checking for size_t" >&5


More information about the openssh-unix-dev mailing list