[Openswan Users] openswan-2.4.0rc1 compilation errors

Oliver Tomkins oliver.tomkins at alliedvehicles.co.uk
Mon Aug 22 15:22:04 CEST 2005


Yeah that is the code that I have here as well.

It's redhat 7.3 and gcc-2.96-113

Thanks,

Olly.

Paul Wouters wrote:
> On Mon, 22 Aug 2005, Oliver Tomkins wrote:
> 
>> However, dr8, dr9 and rc1 all give me this problem when I try to upgrade?
>>
>> ike_alg.c: In function `ike_alg_register_hash':
>> ike_alg.c:642: parse error before `int'
>> ike_alg.c:646: `ret' undeclared (first use in this function)
> 
> 
> The code there should look like:
> 
> /*
>  *      Validate and register IKE hash algorithm object
>  */
> int
> ike_alg_register_hash(struct hash_desc *hash_desc)
> {
>         const char *alg_name;
> 
>         alg_name = "<none>";
> 
>         int ret=0;
>         if (hash_desc->common.algo_id > OAKLEY_HASH_MAX) {
>                 plog ("ike_alg_register_hash(): hash alg=%d < max=%d",
>                                 hash_desc->common.algo_id, 
> OAKLEY_HASH_MAX);                 return_on(ret,-EINVAL);
>         }
> 
> Did you get it mangled somehow?
> If not, what distro and/or compiler do you have?
> 
> Paul
> 

The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. If you are not the intended recipient, please notify the sender immediately by reply e-mail and delete this message. Allied Vehicles cannot accept any responsibility for the accuracy or completeness of this message as it has been transmitted over a public network.
For details of our products and services please visit our website at www.alliedvehicles.co.uk


More information about the Users mailing list