From parv@pair.com  Fri May  3 22:02:14 2002
Return-Path: <parv@pair.com>
Received: from swan.prod.itd.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123])
	by hub.freebsd.org (Postfix) with ESMTP id CF15037B417
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  3 May 2002 22:02:13 -0700 (PDT)
Received: from sdn-ar-003dcwashp308.dialsprint.net ([206.133.15.174] helo=moo.holy.cow)
	by swan.prod.itd.earthlink.net with esmtp (Exim 3.33 #2)
	id 173rgI-0005mG-00
	for FreeBSD-gnats-submit@freebsd.org; Fri, 03 May 2002 22:02:03 -0700
Received: by moo.holy.cow (Postfix, from userid 1001)
	id 9084C50C33; Sat,  4 May 2002 01:04:33 -0400 (EDT)
Message-Id: <20020504050433.9084C50C33@moo.holy.cow>
Date: Sat,  4 May 2002 01:04:33 -0400 (EDT)
From: parv@pair.com
Reply-To: parv@pair.com
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: editors/nvi-perl build failuer
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         37730
>Category:       ports
>Synopsis:       editors/nvi-perl build failuer
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 03 22:10:01 PDT 2002
>Closed-Date:    Sat Apr 05 00:11:23 CEST 2003
>Last-Modified:  Sat Apr 05 00:11:23 CEST 2003
>Originator:     parv
>Release:        FreeBSD 4.6-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD moo.holy.cow 4.6-PRERELEASE

perl 5.6.1 (+BSDPAN) port

>Description:

editors/nvi-perl build fails w/ this message..

...
echo "#define _PATH_PERLSCRIPTS \"/usr/local/share/vi/perl\"" > perl.c
/usr/bin/perl5 /usr/local/lib/perl5/5.6.1/ExtUtils/xsubpp -typemap  /usr/local/lib/perl5/5.6.1/ExtUtils/typemap ./../perl_api/perl.xs >> perl.c
(/usr/bin/perl5 -ne 'print "sub $1 {\$curscr->$1(\@_)}\n"  if /newXS\("VI::([^":]*)"/;' perl.c ; echo "1;") > VI.pm
cc -c -D_PATH_SYSEXRC=\"/usr/local/etc/vi.exrc\" -O -pipe -march=pentiumpro -I. -I./../include -I./../regex -I./../db/include -I./../curses  -DAPPLLIB_EXP="/usr/loca
l/lib/perl5/5.6.1/BSDPAN" -fno-strict-aliasing -I/usr/local/include  -I/usr/local/lib/perl5/5.6.1/mach/CORE perl.c
In file included from /usr/local/lib/perl5/5.6.1/mach/CORE/perl.h:497,
                 from perl.xs:37:
/usr/include/sys/param.h:211: warning: `MIN' redefined
port.h:121: warning: this is the location of the previous definition
/usr/include/sys/param.h:212: warning: `MAX' redefined
port.h:118: warning: this is the location of the previous definition
In file included from /usr/local/lib/perl5/5.6.1/mach/CORE/perl.h:715,
                 from perl.xs:37:
/usr/include/errno.h:162: warning: `EFTYPE' redefined
port.h:149: warning: this is the location of the previous definition
In file included from /usr/include/sys/file.h:41,
                 from /usr/local/lib/perl5/5.6.1/mach/CORE/perl.h:3385,
                 from perl.xs:37:
/usr/include/sys/fcntl.h:83: warning: `O_SHLOCK' redefined
port.h:141: warning: this is the location of the previous definition
/usr/include/sys/fcntl.h:84: warning: `O_EXLOCK' redefined
port.h:137: warning: this is the location of the previous definition
perl.xs: In function `perl_ex_perl':
perl.xs:257: `errgv' undeclared (first use in this function)
perl.xs:257: (Each undeclared identifier is reported only once
perl.xs:257: for each function it appears in.)
perl.xs: In function `replace_line':
perl.xs:281: `defgv' undeclared (first use in this function)
perl.xs: In function `perl_ex_perldo':
perl.xs:348: `errgv' undeclared (first use in this function)
perl.xs:360: `defgv' undeclared (first use in this function)
perl.xs: In function `XS_VI_Edit':
perl.xs:495: `na' undeclared (first use in this function)
perl.xs: In function `XS_VI_SetOpt':
perl.xs:845: `na' undeclared (first use in this function)
perl.xs: In function `XS_VI_Warn':
perl.xs:907: `errgv' undeclared (first use in this function)
perl.xs: In function `XS_VI__OPT_FETCH':
perl.xs:976: `sv_undef' undeclared (first use in this function)
perl.xs: In function `XS_VI__OPT_STORE':
perl.xs:992: `na' undeclared (first use in this function)
perl.xs: In function `XS_VI__MARK_FIRSTKEY':
perl.xs:1110: `na' undeclared (first use in this function)
perl.xs:1115: `sv_undef' undeclared (first use in this function)
*** Error code 1


>How-To-Repeat:
	
try to build nvi-perl port w/ perl 5.6.1/BSDPAN

>Fix:



>Release-Note:
>Audit-Trail:

From: parv <parv_fm@emailgroups.net>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc: ports@FreeBSD.org
Subject: Re: ports/37730: editors/nvi-perl build failuer
Date: Fri, 8 Nov 2002 02:22:42 -0500

 in case anybody is still interested, build fails w/ the same message
 as reported in the pr.
 
 or, perhaps even remove the port altogether due to lack of interest
 (from maintainers) and because it was last updated on
 2001.01.23.08.07.33 (UTC).
 
 

From: Anton Berezin <tobez@FreeBSD.org>
To: parv <parv_fm@emailgroups.net>
Cc: FreeBSD-gnats-submit@FreeBSD.org, ports@FreeBSD.org
Subject: Re: ports/37730: editors/nvi-perl build failuer
Date: Thu, 3 Apr 2003 00:52:57 +0200

 On Fri, Nov 08, 2002 at 02:22:42AM -0500, parv wrote:
 > in case anybody is still interested, build fails w/ the same message
 > as reported in the pr.
 > 
 > or, perhaps even remove the port altogether due to lack of interest
 > (from maintainers) and because it was last updated on
 > 2001.01.23.08.07.33 (UTC).
 
 Please try the following patch and tell me whether it solves the
 problem.  I tested it on 4.8 with perl 5.6.1 as the default perl.  I
 *did* not test it with 5.0, though it should work.
 
 I'll commit the patch when one of the following occurs:
 
 o somebody tells me it works on 5.0;
 o I find time and test it on 5.0 and it works.
 
 
 diff -u --show-c-function -ruN /home/tobez/jail/usr/ports/editors/nvi-perl/Makefile ./Makefile
 --- /home/tobez/jail/usr/ports/editors/nvi-perl/Makefile	Sun Mar 30 21:03:57 2003
 +++ ./Makefile	Thu Apr  3 00:46:24 2003
 @@ -18,10 +18,6 @@ COMMENT=	A clone of vi/ex, with perl5 li
  
  .include <bsd.port.pre.mk>
  
 -.if ${OSVERSION} > 500000
 -BROKEN=		"Does not compile"
 -.endif
 -
  # can't say PATCH_DIST_STRIP=-p1 because contains files outside ${WRKSRC}
  PATCH_DIST_ARGS=-d ${WRKSRC}/.. --forward --quiet -E -p0
  PATCH_ARGS=	-d ${WRKSRC}/.. --forward --quiet -E -p0
 @@ -31,6 +27,7 @@ USE_PERL5=	yes
  GNU_CONFIGURE=	yes
  CONFIGURE_ENV=	OPTFLAG='-D_PATH_SYSEXRC=\"${PREFIX}/etc/vi.exrc\"'
  CONFIGURE_ARGS=	--enable-perlinterp --program-prefix=pn
 +CFLAGS+=	-DPERL_POLLUTE
  
  MAN1=		pnvi.1
  MLINKS=		pnvi.1 pnex.1  pnvi.1 pnview.1
 diff -u --show-c-function -ruN /home/tobez/jail/usr/ports/editors/nvi-perl/files/patch-configure ./files/patch-configure
 --- /home/tobez/jail/usr/ports/editors/nvi-perl/files/patch-configure	Thu Jan  1 01:00:00 1970
 +++ ./files/patch-configure	Thu Apr  3 00:26:35 2003
 @@ -0,0 +1,11 @@
 +--- build/configure.orig	Thu Apr  3 00:25:44 2003
 ++++ build/configure	Thu Apr  3 00:26:00 2003
 +@@ -979,7 +979,7 @@ if test "$vi_cv_path_sendmail" = no; the
 + fi
 + 
 + 
 +-for ac_prog in perl5 perl
 ++for ac_prog in perl perl5
 + do
 + # Extract the first word of "$ac_prog", so it can be a program name with args.
 + set dummy $ac_prog; ac_word=$2
 diff -u --show-c-function -ruN /home/tobez/jail/usr/ports/editors/nvi-perl/files/patch-perl.xs ./files/patch-perl.xs
 --- /home/tobez/jail/usr/ports/editors/nvi-perl/files/patch-perl.xs	Thu Jan  1 01:00:00 1970
 +++ ./files/patch-perl.xs	Thu Apr  3 00:35:10 2003
 @@ -0,0 +1,17 @@
 +--- perl_api/perl.xs.orig	Thu Apr  3 00:34:52 2003
 ++++ perl_api/perl.xs	Thu Apr  3 00:35:05 2003
 +@@ -31,11 +31,12 @@ static const char sccsid[] = "@(#)perl.x
 + #include <termios.h>
 + #include <unistd.h>
 + 
 +-#include "../common/common.h"
 +-
 + #include <EXTERN.h>
 + #include <perl.h>
 + #include <XSUB.h>
 ++
 ++#undef ARGS
 ++#include "../common/common.h"
 + 
 + #include "perl_extern.h"
 + 
 diff -u --show-c-function -ruN /home/tobez/jail/usr/ports/editors/nvi-perl/files/patch-perlsfio.c ./files/patch-perlsfio.c
 --- /home/tobez/jail/usr/ports/editors/nvi-perl/files/patch-perlsfio.c	Thu Jan  1 01:00:00 1970
 +++ ./files/patch-perlsfio.c	Thu Apr  3 00:41:36 2003
 @@ -0,0 +1,17 @@
 +--- perl_api/perlsfio.c.orig	Thu Apr  3 00:41:06 2003
 ++++ perl_api/perlsfio.c	Thu Apr  3 00:41:23 2003
 +@@ -27,11 +27,12 @@ static const char sccsid[] = "@(#)perlsf
 + #include <termios.h>
 + #include <unistd.h>
 + 
 +-#include "../common/common.h"
 +-
 + #include <EXTERN.h>
 + #include <perl.h>
 + #include <XSUB.h>
 ++
 ++#undef ARGS
 ++#include "../common/common.h"
 + 
 + #include "perl_extern.h"
 + 
 
 
 Cheers,
 \Anton.
 -- 
 It's a short step from "rigor" to "rigor mortis". -- Chip Salzenberg

From: Anton Berezin <tobez@FreeBSD.org>
To: freebsd-ports-bugs@FreeBSD.org
Cc:  
Subject: Re: ports/37730: editors/nvi-perl build failuer
Date: Wed, 2 Apr 2003 15:00:22 -0800 (PST)

 The following reply was made to PR ports/37730; it has been noted by GNATS.
 
 From: Anton Berezin <tobez@FreeBSD.org>
 To: parv <parv_fm@emailgroups.net>
 Cc: FreeBSD-gnats-submit@FreeBSD.org, ports@FreeBSD.org
 Subject: Re: ports/37730: editors/nvi-perl build failuer
 Date: Thu, 3 Apr 2003 00:52:57 +0200
 
  On Fri, Nov 08, 2002 at 02:22:42AM -0500, parv wrote:
  > in case anybody is still interested, build fails w/ the same message
  > as reported in the pr.
  > 
  > or, perhaps even remove the port altogether due to lack of interest
  > (from maintainers) and because it was last updated on
  > 2001.01.23.08.07.33 (UTC).
  
  Please try the following patch and tell me whether it solves the
  problem.  I tested it on 4.8 with perl 5.6.1 as the default perl.  I
  *did* not test it with 5.0, though it should work.
  
  I'll commit the patch when one of the following occurs:
  
  o somebody tells me it works on 5.0;
  o I find time and test it on 5.0 and it works.
  
  
  diff -u --show-c-function -ruN /home/tobez/jail/usr/ports/editors/nvi-perl/Makefile ./Makefile
  --- /home/tobez/jail/usr/ports/editors/nvi-perl/Makefile	Sun Mar 30 21:03:57 2003
  +++ ./Makefile	Thu Apr  3 00:46:24 2003
  @@ -18,10 +18,6 @@ COMMENT=	A clone of vi/ex, with perl5 li
   
   .include <bsd.port.pre.mk>
   
  -.if ${OSVERSION} > 500000
  -BROKEN=		"Does not compile"
  -.endif
  -
   # can't say PATCH_DIST_STRIP=-p1 because contains files outside ${WRKSRC}
   PATCH_DIST_ARGS=-d ${WRKSRC}/.. --forward --quiet -E -p0
   PATCH_ARGS=	-d ${WRKSRC}/.. --forward --quiet -E -p0
  @@ -31,6 +27,7 @@ USE_PERL5=	yes
   GNU_CONFIGURE=	yes
   CONFIGURE_ENV=	OPTFLAG='-D_PATH_SYSEXRC=\"${PREFIX}/etc/vi.exrc\"'
   CONFIGURE_ARGS=	--enable-perlinterp --program-prefix=pn
  +CFLAGS+=	-DPERL_POLLUTE
   
   MAN1=		pnvi.1
   MLINKS=		pnvi.1 pnex.1  pnvi.1 pnview.1
  diff -u --show-c-function -ruN /home/tobez/jail/usr/ports/editors/nvi-perl/files/patch-configure ./files/patch-configure
  --- /home/tobez/jail/usr/ports/editors/nvi-perl/files/patch-configure	Thu Jan  1 01:00:00 1970
  +++ ./files/patch-configure	Thu Apr  3 00:26:35 2003
  @@ -0,0 +1,11 @@
  +--- build/configure.orig	Thu Apr  3 00:25:44 2003
  ++++ build/configure	Thu Apr  3 00:26:00 2003
  +@@ -979,7 +979,7 @@ if test "$vi_cv_path_sendmail" = no; the
  + fi
  + 
  + 
  +-for ac_prog in perl5 perl
  ++for ac_prog in perl perl5
  + do
  + # Extract the first word of "$ac_prog", so it can be a program name with args.
  + set dummy $ac_prog; ac_word=$2
  diff -u --show-c-function -ruN /home/tobez/jail/usr/ports/editors/nvi-perl/files/patch-perl.xs ./files/patch-perl.xs
  --- /home/tobez/jail/usr/ports/editors/nvi-perl/files/patch-perl.xs	Thu Jan  1 01:00:00 1970
  +++ ./files/patch-perl.xs	Thu Apr  3 00:35:10 2003
  @@ -0,0 +1,17 @@
  +--- perl_api/perl.xs.orig	Thu Apr  3 00:34:52 2003
  ++++ perl_api/perl.xs	Thu Apr  3 00:35:05 2003
  +@@ -31,11 +31,12 @@ static const char sccsid[] = "@(#)perl.x
  + #include <termios.h>
  + #include <unistd.h>
  + 
  +-#include "../common/common.h"
  +-
  + #include <EXTERN.h>
  + #include <perl.h>
  + #include <XSUB.h>
  ++
  ++#undef ARGS
  ++#include "../common/common.h"
  + 
  + #include "perl_extern.h"
  + 
  diff -u --show-c-function -ruN /home/tobez/jail/usr/ports/editors/nvi-perl/files/patch-perlsfio.c ./files/patch-perlsfio.c
  --- /home/tobez/jail/usr/ports/editors/nvi-perl/files/patch-perlsfio.c	Thu Jan  1 01:00:00 1970
  +++ ./files/patch-perlsfio.c	Thu Apr  3 00:41:36 2003
  @@ -0,0 +1,17 @@
  +--- perl_api/perlsfio.c.orig	Thu Apr  3 00:41:06 2003
  ++++ perl_api/perlsfio.c	Thu Apr  3 00:41:23 2003
  +@@ -27,11 +27,12 @@ static const char sccsid[] = "@(#)perlsf
  + #include <termios.h>
  + #include <unistd.h>
  + 
  +-#include "../common/common.h"
  +-
  + #include <EXTERN.h>
  + #include <perl.h>
  + #include <XSUB.h>
  ++
  ++#undef ARGS
  ++#include "../common/common.h"
  + 
  + #include "perl_extern.h"
  + 
  
  
  Cheers,
  \Anton.
  -- 
  It's a short step from "rigor" to "rigor mortis". -- Chip Salzenberg
 _______________________________________________
 freebsd-ports-bugs@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
 To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe@freebsd.org"

From: Erwin Lansing <erwin@lansing.dk>
To: Anton Berezin <tobez@FreeBSD.org>
Cc: freebsd-ports-bugs@FreeBSD.org
Subject: Re: ports/37730: editors/nvi-perl build failuer
Date: Thu, 3 Apr 2003 08:08:48 +0200

 --hOcCNbCCxyk/YU74
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Wed, Apr 02, 2003 at 03:00:22PM -0800, Anton Berezin wrote:
 > =20
 >  Please try the following patch and tell me whether it solves the
 >  problem.  I tested it on 4.8 with perl 5.6.1 as the default perl.  I
 >  *did* not test it with 5.0, though it should work.
 > =20
 >  I'll commit the patch when one of the following occurs:
 > =20
 >  o somebody tells me it works on 5.0;
 
 It does. perl-5.6.1_11 on a 5.0-RELEASE.
 I can probably fix you a 5.0 jail if you want access to one.
 
 Ciao,
 -erwin
 
 --=20
                     _._     _,-'""`-._
 Erwin Lansing      (,-.`._,'(       |\`-/|    http://droso.org/
 erwin@lansing.dk       `-.-' \ )-`( , o o)    http://fnidder.dk/
                     -bf-      `-    \`_`"'-
 
 --hOcCNbCCxyk/YU74
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.1 (FreeBSD)
 
 iD8DBQE+i8/wqy9aWxUlaZARAtDlAJ9tFe2fvVpoAL8enXczEPjfqWogowCg50Z5
 pjklcoF7QF+OlT8ArQYEY1A=
 =WIR+
 -----END PGP SIGNATURE-----
 
 --hOcCNbCCxyk/YU74--

From: parv <parv_fm@emailgroups.net>
To: Anton Berezin <tobez@FreeBSD.org>,
	FreeBSD-gnats-submit@FreeBSD.org, ports@FreeBSD.org
Cc:  
Subject: Re: ports/37730: editors/nvi-perl build failuer
Date: Fri, 4 Apr 2003 15:54:11 -0500

 in message <20030402225257.GB22595@heechee.tobez.org>, wrote Anton
 Berezin thusly...
 >
 > On Fri, Nov 08, 2002 at 02:22:42AM -0500, parv wrote:
 > > in case anybody is still interested, build fails w/ the same
 > > message as reported in the pr.
 ...
 > Please try the following patch and tell me whether it solves the
 > problem.  I tested it on 4.8 with perl 5.6.1 as the default perl.
 > I *did* not test it with 5.0, though it should work.
 
 Thanks Anton.  Your patch allowed nvi-perl to build on FreeBSD
 4.7-RELEASE-p9 w/ Perl 5.8.0.
 
 
   - parv
 
 -- 
 
State-Changed-From-To: open->closed 
State-Changed-By: tobez 
State-Changed-When: Sat Apr 5 00:05:56 CEST 2003 
State-Changed-Why:  
Fix committed, thanks for reporting this problem! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37730 
>Unformatted:
