Subject: Re: pkgsrc NetBSD 1.6.2/i386 bulk build results 2005-01-25
To: Thomas Klausner <wiz@NetBSD.org>
From: Hauke Fath <hf@spg.tu-darmstadt.de>
List: pkgsrc-bulk
Date: 01/26/2005 15:03:11
Thomas Klausner <wiz@NetBSD.org> writes:

> On Tue, Jan 25, 2005 at 07:57:51PM +0100, Krister Walfridsson wrote:
>> pkgsrc bulk build results
>> NetBSD 1.6.2/i386
>>=20
>> Summary:
>>=20
>>         Build started:                  Sat Jan 22 23:01:01 2005 UTC
>>         Build ended:                    Tue Jan 25 09:09:16 2005 UTC
>> sysutils/radmind                   hf@spg.tu-darmstadt.de
>
>  ./tls.c: In function `tls_client_start':=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20
>  ./tls.c:242: parse error before `int'=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
>  ./tls.c:244: `alt_ext' undeclared (first use in this function)=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
>  ./tls.c:244: (Each undeclared identifier is reported only once=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
>  ./tls.c:244: for each function it appears in.)=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20

Thanks for notifying me.
This is a  C90 issue. The patches


[hf@heiligenberg] /<3>sysutils/radmind > cvs diff -u distinfo=20
Index: distinfo
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/pkgsrc/sysutils/radmind/distinfo,v
retrieving revision 1.2
diff -u -u -r1.2 distinfo
--- distinfo    19 Jan 2005 12:54:13 -0000      1.2
+++ distinfo    26 Jan 2005 13:59:03 -0000
@@ -4,3 +4,4 @@
 Size (radmind-1.4.0.tgz) =3D 342647 bytes
 SHA1 (patch-aa) =3D a6a8de2f5f91dbdbd7b46ec795fa5e4bf60c97c9
 SHA1 (patch-ab) =3D b973563ae1899f2f3acf8a682d3d6a51cd0db889
+SHA1 (patch-ac) =3D 438b33eebcd4c0c7823230db1377bbcac97b8b7a


[hf@heiligenberg] /<3>sysutils/radmind > cat patches/patch-ac
$NetBSD$

--- tls.c.orig  2004-12-14 16:23:14.000000000 +0100
+++ tls.c
@@ -194,7 +194,8 @@ tls_client_start( SNET *sn, char *host,=20
     char            *line;
     int             ntype;
     struct in_addr  addr;
-
+    int alt_ext;
+=20=20=20=20
     if ( inet_aton( host, &addr )) {
        ntype =3D IS_IP4;
     } else {
@@ -239,7 +240,7 @@ tls_client_start( SNET *sn, char *host,=20
     /* This code gratiously borrowed from openldap-2.2.17,
      * it allows the use of aliases in the certificate.
      */
-    int alt_ext =3D X509_get_ext_by_NID( peer, NID_subject_alt_name, -1);
+    alt_ext =3D X509_get_ext_by_NID( peer, NID_subject_alt_name, -1);
=20
     if ( alt_ext >=3D 0 ) {
        X509_EXTENSION                  *ex;


should fix it (please commit); I'll take the issue to the radmind list.

       hauke

--=20
/~\  The ASCII Ribbon Campaign                    Hauke Fath
\ /    No HTML/RTF in email	        Institut f=FCr Nachrichtentechnik
 X     No Word docs in email	                  TU Darmstadt
/ \  Respect for open standards              Ruf +49-6151-16-3281