pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/38452: patch to allow security/libssh2 to build on IRIX



>Number:         38452
>Category:       pkg
>Synopsis:       patch to allow security/libssh2 to build on IRIX
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 17 19:35:00 +0000 2008
>Originator:     Stuart Shelton
>Release:        pkgsrc latest from CVS
>Organization:
>Environment:
IRIX64 octane 6.5 07202013 IP30; IRIX 6.5.30; MIPSpro Compilers Version 7.4.4m
>Description:

libssh2 requires the following patch in order to compile:

--- /usr/bsd/var/tmp/security/libssh2/work/libssh2-0.18/src/libssh2_priv.h.dist 
2008-04-17 12:55:10.207877320 +0100
+++ /usr/bsd/var/tmp/security/libssh2/work/libssh2-0.18/src/libssh2_priv.h      
2008-04-17 12:56:29.548891200 +0100
@@ -945,7 +945,10 @@ struct _LIBSSH2_MAC_METHOD
 void _libssh2_debug(LIBSSH2_SESSION * session, int context, const char *format,
                     ...);
 #else
-#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
+#if defined(__sgi)
+/* MIPSpro */
+#define _libssh2_debug(x,y,...) do {} while (0)
+#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
 /* C99 style */
 #define _libssh2_debug(x,y,z, __VA_ARGS__) do {} while (0)
 #elif defined(__GNUC__)

>How-To-Repeat:

There are still warnings such as:

cc-1107 cc: WARNING File = libssh2_priv.h, Line = 619
  A signed bit field has a length of 1 bit.

      int burn_optimistic_kexinit:1;
          ^
>Fix:



Home | Main Index | Thread Index | Old Index