At 4:00 AM +0900 1/29/02, <tgphelps / iglou.com> wrote:
>I just downloaded Ruby 1.6.6, and did "configure" and "make" on my AIX
>4.3.3 machine. The make crapped out with the following messages:
>
>compiling digest/rmd160
>         cc -g  -DHAVE_CONFIG_H -I/home/tgphelps/ruby-
>1.6.6/ext/digest/rmd160/..
>-I/home/tgphelps/ruby-1.6.6 -I/home/tgphelps/ruby-1.6.6 -
>I/usr/local/include -DH
>AVE_SYS_CDEFS_H -DHAVE_INTTYPES_H -DHAVE_UNISTD_H  -c rmd160.c
>"rmd160.h", line 38.1: 1506-485 (S) Parameter declaration list is
>incompatible with declarator for __BEGIN_DECLS.
>"rmd160.h", line 49.1: 1506-276 (S) Syntax error: possible missing '{'?

This is probably the same problem I ran into on one of our (RPI)
aix machines.  The problem is that /usr/include/sys/cdefs.h does
exist, but it doesn't define __BEGIN_DECLS and __END_DECLS

The following diff should give you and idea of what needs to be
changed:

*** ext/digest/defs.h.orig      Thu Aug 16 03:35:42 2001
--- ext/digest/defs.h   Thu Jan  3 23:23:39 2002
***************
*** 10,16 ****

   #if defined(HAVE_SYS_CDEFS_H)
   # include <sys/cdefs.h>
! #else
   # define __BEGIN_DECLS
   # define __END_DECLS
   #endif
--- 10,17 ----

   #if defined(HAVE_SYS_CDEFS_H)
   # include <sys/cdefs.h>
! #endif
! #if !defined(__BEGIN_DECLS)
   # define __BEGIN_DECLS
   # define __END_DECLS
   #endif


-- 
Garance Alistair Drosehn            =   gad / eclipse.acs.rpi.edu
Senior Systems Programmer           or  gad / freebsd.org
Rensselaer Polytechnic Institute    or  drosih / rpi.edu