[Openswan Users] openswan-2.4.0rc1 compilation errors

Paul Wouters paul at xelerance.com
Mon Aug 22 20:37:52 CEST 2005


On Mon, 22 Aug 2005, Oliver Tomkins wrote:

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

Either wait for 2.4.0rc2 or apply the following fix:

Modified Files:
         ike_alg.c
Log Message:
         remove gcc-3/C++-ism.


Index: ike_alg.c
===================================================================
RCS file: /xelerance/master/openswan-2/programs/pluto/ike_alg.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- ike_alg.c   5 Aug 2005 19:10:43 -0000       1.18
+++ ike_alg.c   22 Aug 2005 17:25:17 -0000      1.19
@@ -636,10 +636,9 @@
  ike_alg_register_hash(struct hash_desc *hash_desc)
  {
         const char *alg_name;
+       int ret=0;

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

Paul





More information about the Users mailing list