Would that be it:
      -Amode         Specify the compilation standard to be used by the
                     compiler.  mode can be one of the following letters:


                        a    Compile under ANSI mode (ANSI programming
                             language C standard ISO 9899:1990).  When
                             compiling under ANSI mode, the header files
                             would define only those names (macros and
                             typedefs) specified by the Standard. To access
                             macros and typedefs that are not defined by the
                             ANSI Standard but are provided by the HP-UX
                             Operating System, define the symbol
                             _HPUX_SOURCE; or use the extension option
                             described below.

Changed the -Agcc for -AC99.
Here is the result:

It compiled with a lots of warning but at runtime, I hit my old problem:

cf-agent -K -f run_fileDistribution.cf
Fatal cfengine error: RSA Exponent too small or not odd

I will continue the test tomorrow.

Louis Francoeur

-----Original Message-----
From: help-cfengine-boun...@cfengine.org 
[mailto:help-cfengine-boun...@cfengine.org] On Behalf Of Mikhail Gusarov
Sent: Thursday, February 16, 2012 4:01 PM
To: help-cfengine@cfengine.org
Subject: Re: Is there a way to compile cfengine with HP C/C++ compiler?

On 16.02.2012 21:50, Francoeur, Louis wrote:
> It is the full one. Not the limited one.
>    B9007AA C.11.23.16     HP C/aC++ Developer's Bundle
>
> And as note I need to compile for HP-UX PA-RISC 11.11 11.23 and IA64 11.23 
> 11.31.

Okay, this one should work.

Let's figure out why it does not accept -Agcc option, which worked well. 
Could you have a look at documentation (which is apparently not 
distributed to mere mortals) and find any compilation flag to enable C99 
level or enable GCC compatibility?

Corresponding piece of configure is near comment saying "Set GCC CFLAGS 
only if using GCC".

> This one is on PA-RISC 11.23.

P.S: please keep the replies directed to help-cfengine@ mailing list.

-- 
Mikhail Gusarov
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to