Return-Path: Mailing-List: contact modperl-help@apache.org; run by ezmlm Delivered-To: mailing list modperl@apache.org Received: (qmail 6264 invoked from network); 14 Mar 2000 15:34:35 -0000 Received: from ganesha.solana.com (HELO ganesha.solana.com?) (198.99.130.1) by locus.apache.org with SMTP; 14 Mar 2000 15:34:35 -0000 Received: from netmip by ganesha.solana.com (NX5.67g/NeXT-2.0) id AA22383; Tue, 14 Mar 2000 10:32:50 -0500 Message-Id: <38CE5CEB.28632DE0@solana.com> Date: Tue, 14 Mar 2000 10:38:19 -0500 From: William Lewis Brown X-Mailer: Mozilla 4.7 [en] (WinNT; U) X-Accept-Language: en Mime-Version: 1.0 To: modperl@apache.org Subject: "Compilation aborted" error msgs on NT uninformative Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hi, I am trying to write some fresh perl modules on NT. I spend most of my time attempting to figure out what I have done wrong that makes the compiler give me "compilation aborted" messages. This is due to the fact that the compiler never really tells me where it actually found the error. I have broken the code into separate files and utter "use foo"'s at the top of the main file to allow me to use code within the sub-files. When the sub-files are compiled, and the compile goes bad, there is no information included about what line in the included file caused the error. On Linux, I get a nice coherent error message. I am being slowly driven batty trying to figure out where my errors actually are. Can someone please explain what I have to do to get reasonable error messages? I have included my configuration, a sample bad error message and a sample good error message below. Thanks very much. Bill +++++++++++++++++++++++++++++++++++++ Configuration: Apache 1.3.6 ModPerl 1.21 +++++++++++++++++++++++++++++++++++++ Below is an example error message that provides very little information. ATIProxy.pm line three is: use Apache::ATIsysdep; the ATIsysdep module definitely has a syntax error somewhere, but the error message gives me no clue where that error might be. Help! ++++++++++++++++++++++++++++++++++ [Tue Mar 14 09:37:06 2000] [error] Apache/ATIsysdep.pm did not return a true value at c:/addtoit/apache/lib/perl/Apache/ATIProxy.pm line 3. BEGIN failed--compilation aborted at c:/addtoit/apache/lib/perl/Apache/ATIProxy.pm line 3. [Tue Mar 14 09:37:06 2000] [error] Undefined subroutine &Apache::ATIProxy::handler called. ++++++++++++++++++++++++++++++++++++++++ Here is a sample, stolen from the mailing list, of a happy error message: ++++++++++++++++++++++++++++++++++++++++ [Thu Feb 3 13:05:30 2000] [error] [8596807]ERR: 24: Line 1: Error in Perl code: syntax error at /usr/common/perl5.005_02/lib/5.00502/IP22-irix/Test.pm line 1, near "use strict" BEGIN failed--compilation aborted (in cleanup) syntax error at /usr/common/perl5.005_02/lib/5.00502/IP22-irix/Test.pm line 1, near "use strict" BEGIN failed--compilation aborted at /www/www/research/errors/test.html line 1. +++++++++++++++++++++++++++++++++++++++ -- William L. Brown Work: 603-465-2114 Fax: 603-465-2114 Cell: 617-803-9156 Email: bbrown@solana.com Home: 603-465-2948