help-cfengine
[Top][All Lists]
Advanced

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

Re: IRIX compilation problem (Apparent Solution)


From: chiayl
Subject: Re: IRIX compilation problem (Apparent Solution)
Date: Tue, 30 Sep 2003 13:37:48 +0800
User-agent: Mutt/1.4i

The compilation problem exists for HPUX (using HP Ansi C compiler) as well.

I changed the static inline functions to macro and compilation works:
#define xislower(c) (c >= 'a' && c <= 'z') 
#define xisupper(c) (c >= 'A' && c <= 'Z') 
#define xisalpha(c) (xislower(c) || xisupper(c)) 
#define xisdigit(c) (c >= '0' && c <= '9') 
#define xisalnum(c) (xisalpha(c) || xisdigit(c)) 

alloca() wasn't much of a problem for HP C compiler except it gives a warning:
cc: "package.c", line 285: warning 527: Integral value implicitly converted to 
pointer in assignment.
cc: "package.c", line 286: warning 527: Integral value implicitly converted to 
pointer in assignment.

Just for info. :)

YewLee

On Fri, Sep 26, 2003 at 09:03:25AM -0600, Anthony Veale wrote:
> > -I/usr/local/BerkeleyDB.4.1/include -w -c `test -f 'package.c' || echo \
> > './'`package.c
> > cc-1065 cc: ERROR File = package.c, Line = 36
> >   A semicolon is expected at this point.
> > 
> >   static inline int xislower(int c)  {
> >                 ^
> 
> As advised by locals and another user on help-cfengine (Thank you,
> Bas), removing the "inline" from all four lines that included it
> in package.c allowed the compile to proceed further.
> 
> Also as Bas indicated there was a further problem in package.c in that
> alloca was undefined.  Bas' solution was to replace alloca() with
> malloc().  Mine was to add "#include <alloca.h>" which also appears to
> have allowed the compilation to complete.
> 
> I now have a working version of 2.0.8p1 cfservd, though I haven't
> tested the other executables.  This version does not have the "denying
> connections from 255.255.255.255" problem (see the thread named that)
> which had led me to recompile with the MIPSpro compiler and these
> errors.
> 
> So I'm hopeful that I can proceed with configuration.
> 
> Thanks all.
> 
> -- 
> Anthony Veal?
> National Snow and Ice Data Center
> E-Mail: veale@nsidc.org
> Phone: (303)735-5069
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]