From raven@bingo.chel.ru  Wed Sep 11 02:42:53 2002
Return-Path: <raven@bingo.chel.ru>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 4485637B400; Wed, 11 Sep 2002 02:42:53 -0700 (PDT)
Received: from bingo.chel.ru (bingo.modem.ru [217.107.26.22])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 6748A43E65; Wed, 11 Sep 2002 02:42:52 -0700 (PDT)
	(envelope-from raven@bingo.chel.ru)
Received: from bingo.chel.ru (localhost.bingo.modem.ru [127.0.0.1])
	by localhost (Postfix) with SMTP
	id 77A01D936; Wed, 11 Sep 2002 15:42:54 +0600 (YEKST)
Received: by bingo.chel.ru (Postfix, from userid 1666)
	id D05D5D935; Wed, 11 Sep 2002 15:42:53 +0600 (YEKST)
Message-Id: <20020911094253.D05D5D935@bingo.chel.ru>
Date: Wed, 11 Sep 2002 15:42:53 +0600 (YEKST)
From: Dmitry Suhodoev <raven@bingo.chel.ru>
Reply-To: Dmitry Suhodoev <raven@bingo.chel.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc: stable@FreeBSD.ORG
Subject: perl -> CGI::Carp
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         42653
>Category:       bin
>Synopsis:       perl -> CGI::Carp
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    tobez
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 11 02:50:01 PDT 2002
>Closed-Date:    Thu Sep 19 16:16:28 CEST 2002
>Last-Modified:  Thu Sep 19 16:16:28 CEST 2002
>Originator:     Dmitry Suhodoev
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
Bingo GC
>Environment:
System: FreeBSD bingo.chel.ru 4.6-STABLE FreeBSD 4.6-STABLE #0: Mon Sep 2 15:44:16 YEKST 2002 root@bingo.chel.ru:/usr/obj/usr/src/sys/bingo i386


>Description:
i has updated my FreeBSD-server from 4.3-RELEASE to 4.6-STABLE (28/08/2002).
and after this appear one problem in CGI part of perl. let's try the simple
script: 
=== cut ===
#!/usr/bin/perl -w
use CGI::Carp 'fatalsToBrowser';
use strict;
$main::zz=$qq;
=== cut ===

on the old system it's return (right):
=== cut ===
Content-type: text/html

<H1>Software error:</H1>
<PRE>Global symbol &quot;$qq&quot; requires explicit package name at
<PRE>./guider.cgi line 7.
Execution of ./guider.cgi aborted due to compilation errors.
</PRE>
<P>
For help, please send mail to this site's webmaster, giving this error message
and the time and date of the error.
=== cut ===

on the new (current) my system:
=== cut ===
Content-type: text/html

<H1>Software error:</H1>
<CODE>Execution of ./guider.cgi aborted due to compilation errors.
</CODE>
<P>
For help, please send mail to this site's webmaster, giving this error message
and the time and date of the error.
=== cut ===

i.e. in second event detailed info about error (where and who) not been showed!
why construction "use CGI::Carp 'fatalsToBrowser';" not working? in
/usr/src/UPDATING nothing about perl...

please help me: perl is a important part of my work!

in both stderr contain correct info:
=== cut ===
[Mon Sep  2 22:21:00 2002] guider.cgi: Global symbol "$qq" requires explicit
package name at ./guider.cgi line 7.
[Mon Sep  2 22:21:00 2002] guider.cgi: Execution of ./guider.cgi aborted due to
compilation errors.
=== cut ===


>How-To-Repeat:
#!/usr/bin/perl -w
use CGI::Carp 'fatalsToBrowser';
use strict;
$main::zz=$qq;


>Fix:
i don't know, please tell me :-)

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->tobez 
Responsible-Changed-By: schweikh 
Responsible-Changed-When: Sat Sep 14 04:41:11 PDT 2002 
Responsible-Changed-Why:  
Anton, can you have a look at this? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42653 
State-Changed-From-To: open->closed 
State-Changed-By: tobez 
State-Changed-When: Thu Sep 19 16:06:02 CEST 2002 
State-Changed-Why:  
CGI::Carp in perl 5.005_03 does not output warnings to the browser when 
fatalsToBrowser is used.  Only the result of die() goes to the browser. 
This is fixed in both lang/perl5, which has a more recent CGI::Carp, and 
in a separate port www/p5-CGI.pm. 

The question still remains why the originator reports that it worked in 
4.3:  in my tests it does not, and CGI::Carp was not changed between 4.3 
and 4.6.  The pilot error is suspected in this case. 

Closing the PR with an agreement from the originator. 

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