vis.h:85: bad attribute specification

Darren Tucker dtucker at zip.com.au
Fri Sep 21 12:52:20 EST 2007


On Mon, Sep 17, 2007 at 02:13:29PM -0400, Anil Deane wrote:
> Hi, when trying to install openssh I get the following errors. Any  
> idea of why?
> This is on a mac 10.4.10 system, and with the 4.7p1 version.  
> Appreciate any tips.

Which gcc version are you using?

[...]
> openbsd-compat/vis.h:85: bad attribute specification, expecting  
> identifier, found `)'

Looks like the compiler doesn't have the __bounded__ attribute, and
also doesn't like having an empty __attribute__ list.  You could try the
following patch which substitutes a (mostly) harmless attribute that is
supported back as gcc 2.7.2.3 (and at worst, should only cause a warning).

Index: defines.h
===================================================================
RCS file: /usr/local/src/security/openssh/cvs/openssh/defines.h,v
retrieving revision 1.144
diff -u -p -r1.144 defines.h
--- defines.h	17 Sep 2007 15:32:33 -0000	1.144
+++ defines.h	21 Sep 2007 02:41:58 -0000
@@ -440,7 +440,7 @@ struct winsize {
 #endif
 
 #if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__bounded__)
-# define __bounded__(x, y, z)
+# define __bounded__(x, y, z)	__unused__
 #endif
 
 #if !defined(HAVE_ATTRIBUTE__NONNULL__) && !defined(__nonnull__)

-- 
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