perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Lewis Brown <bbr...@solana.com>
Subject "Compilation aborted" error msgs on NT uninformative
Date Tue, 14 Mar 2000 15:38:19 GMT
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

Mime
View raw message