From owner-freebsd-perl@FreeBSD.ORG Sat May 15 10:41:16 2004 Return-Path: Delivered-To: freebsd-perl@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 05CE016A4CE for ; Sat, 15 May 2004 10:41:16 -0700 (PDT) Received: from plouf.absolight.net (plouf.absolight.net [212.43.217.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24C3343D58 for ; Sat, 15 May 2004 10:41:15 -0700 (PDT) (envelope-from mat@mat.cc) Received: from localhost (localhost [127.0.0.1]) by plouf.absolight.net (Postfix) with ESMTP id 76BE2764A51 for ; Sat, 15 May 2004 19:41:14 +0200 (CEST) Received: from pouet.in.mat.cc (pouet.in.mat.cc [212.43.217.126]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by plouf.absolight.net (Postfix) with ESMTP id 43307764A45 for ; Sat, 15 May 2004 19:41:13 +0200 (CEST) Date: Sat, 15 May 2004 19:41:12 +0200 From: Mathieu Arnold To: perl@freebsd.org Message-ID: X-Mailer: Mulberry/3.1.3 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd 0.1 Subject: Re: MakeMaker / security/p5-Crypt-Anubis X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 May 2004 17:41:16 -0000 +-Le 15/05/2004 18:50 +0200, Volker Stolz a dit : | Hi, a quick question to the perl-hackers: | | http://pointyhat.freebsd.org/errorlogs/i386-4-latest/p5-Crypt-Anubis-1.0. | 4.log | | I thought | -.if ${OSVERSION} < 500000 | -BROKEN= "Does not compile" | +.if ${PERL_LEVEL} < 500600 | +post-patch: | + @${PERL} -pi -e 's/^our (\S+)/use vars qw{$$1};$$1/g' | ${WRKSRC}/Anubis.pm .endif | | would DTRT, but I get: | | In file included from Anubis.xs:5: | _anubis.c:980: conflicting types for `main' | /usr/libdata/perl/5.00503/mach/CORE/proto.h:267: previous declaration of | `main' Anubis.xs: In function `XS_Crypt__Anubis_new': | Anubis.xs:43: warning: passing arg 1 of `NESSIEkeysetup' makes pointer | from integer without a cast Anubis.xs: In function | `XS_Crypt__Anubis_encrypt': | Anubis.xs:61: warning: passing arg 3 of `NESSIEencrypt' makes pointer | from integer without a cast Anubis.xs: In function | `XS_Crypt__Anubis_decrypt': | Anubis.xs:80: warning: passing arg 3 of `NESSIEdecrypt' makes pointer | from integer without a cast *** Error code 1 | | Stop in /usr/ports/security/p5-Crypt-Anubis/work/Crypt-Anubis-1.0.4. | *** Error code 1 | | Stop in /usr/ports/security/p5-Crypt-Anubis. | | The port builds fine with perl5.6. Is there something else wrong | or should I simply raise the bar to 5.6? I couldn't find any decent | requirements on CPAN either. | | Cheers, | Volker (please cc: replies) Hum, in 5.005's CORE/proto.h, main is defined like this : int main _((int argc, char** argv, char** env)); and in _anubis.c as : int main(void) merely replacing it's prototype in _anubis.c with : int main _((int argc, char** argv, char** env)) is enough to make it work. 5.6 and later versions don't have main declaration in CORE/proto.h, which is why it works. -- Mathieu Arnold