Hi Neil, this is very helpful. I think that should be enough to find the reason.
I will try to fix it during the next days Gerald > -----Original Message----- > From: Neil Gunton [mailto:[email protected]] > Sent: Saturday, October 13, 2012 8:42 PM > To: Gerald Richter - ECOS > Cc: [email protected] > Subject: Re: Compilation error > > I think I have found what makes the problem happen. It occurs in a .epl > subroutine file where I have 'use strict' at the start, and then within a [! > !] > block, there is a perl sub where I introduce a variable without using 'my', > e.g. > > [! > use strict; > sub test > { > $x = 1; > } > !] > > The problem does not manifest if I do the same thing in an index.html > within a [- -] block, i.e. > > [- > use strict; > $x = 1; > -] > > ... in that case, I get a more helpful error message: > > [32570]ERR: 24: Error in Perl code: Global symbol "$x" requires explicit > package name at > /www-dev/vhosts/crazyguyonabike.com/htdocs/test/index.html line 3. > > I'm not sure if there are other factors in the way my codebase is > constructed which contribute to this error not getting reported > correctly. Before I dig too much more deeply, does the above give you > enough clues to try reproducing on your end, Gerald? > > Thanks again for your help, > > Neil > > [email protected] wrote: > > This is strange. The problem has definitively gone for me in2.5.0 _2 with > perl 5.14. > > > > Does make test (without any options) succeed? > > > > Gerald > > > > > >> -----Original Message----- > >> From: Neil Gunton [mailto:[email protected]] > >> Sent: Saturday, October 13, 2012 1:37 AM > >> To: [email protected] > >> Subject: Compilation error > >> > >> I am still getting this problem with the latest version of Embperl (2.5). > >> This > is > >> on Debian Wheezy (testing), Perl 5.14. I have made a number of changes > in > >> my code, and when I try to access my development website I just get this: > >> > >> Internal Server Error > >> The server encountered an internal error or misconfiguration and was > unable > >> to complete your request. > >> > >> Please contact the server administrator, [email protected] and inform > them > >> of the time the error occurred, and anything you might have done that > may > >> have caused the error. > >> > >> [17349]ERR: 24: Error in Perl code: Compilation error > >> > >> Apache Embperl 2.5.0_2 [Fri Oct 12 16:34:56 2012] > >> > >> This is obviously really unhelpful and makes it impossible to even begin to > >> find out where the error is. Any ideas? > >> > >> Thanks, > >> > >> Neil > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [email protected] > >> For additional commands, e-mail: [email protected] > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
