compile runs great but won't execute

2000-09-15 Thread Alan E. Derhaag

apache_1.3.11
mod_ssl-2.5.0-1.3.11
mod_perl-1.24
perl v5.6.0
RedHat Linux 2.2.12-20

I compiled mod_ssl and mod_perl as DSOs and there were no errors..  a
few warnings but nothing really significant.  When running configtest,
however, with the following in httpd.conf:

LoadModule mod_perl libexec/libperl.so
AddModule mod_perl.c

I get the result:

Syntax error on line 146 of /usr/local/apache/conf/httpd.conf:
Can't locate API module structure `mod_perl' in file \
 /usr/local/apache/libexec/libperl.so: \
/usr/local/apache/libexec/libperl.so: undefined symbol: mod_perl

line continuations are mine.

..never seen this before!  What defines mod_perl to the API?



Re: tracking down why a module was loaded?

2000-09-15 Thread Justin

Thanks for the hint. It worked perfectly. I didnt connect
Cluck, and BEGIN. doh.

nobody spotted the unintended irony in my question ..
perl-status itself (Apache::Status) was the one pulling in CGI.pm !!

Turns out, if you load Apache::Request before Apache::Status,
it uses that instead of the (large) CGI.pm .. that wasnt mentioned
in my Apache::Status manual :-(

-Justin

On Thu, Sep 14, 2000 at 10:46:39PM +0200, Stas Bekman wrote:
 On Thu, 14 Sep 2000, Justin wrote:
 
  Can anyone tell me the easiest slickest way of determining
  what was responsible for requesting a module, having discovered
  that it has been loaded when viewing perl-status?
 
 A.pm:
 -
 package A;
 use Carp ();
 BEGIN { Carp::cluck("I don't want to wake up!!!")}
 1;
 
 test.pl
 ---
 require "A.pm";
 
 now run:
 % perl test.pl
 I don't want to wake up!!! at A.pm line 4
   A::BEGIN() called at A.pm line 4
   eval {...} called at A.pm line 4
   require A.pm called at test.pl line 1
 
 Also see:
 perldoc -f caller
 
 
  and while I've got the podium:
  I would like to congratulate Doug and 
  everyone involved in modperl.. by checking
  pcdataonline.com, I found our entirely modperl site is
  now #1850 in the top 10,000 websites, with over 10 million
  *entirely dynamic* pages pushed out a month.. to half a 
  million unique users. This is a single Dell 2300 box with
  two PII 450s cpus and a gig of memory.. (the mysql server
  is on another box). Most pages are built between 20-100ms
  of user time.. the same box runs backend and frontend
  servers, serves images as well, plus a hunk of other
  processes.
  If a fortune500 company asked razor fish / concrete media
  to build them a website that would scale to that, with
  entirely dynamic pages, they'd be dragging the client down
  to Sun to pick out the color of their enterprise 4000, or
  microsoft would be pushing a cluster of multi processor
  compaqs and NT servers with all possible software trimmings
  added.. and then you'd need a team of specialists to keep
  the whole thing moving.. no wonder dotcoms go broke.
 
 Wow! That's cool!
 
  modperl is the best kept secret on the net. Shame!
 
 :)
 
 _
 Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
 http://stason.org/   mod_perl Guide  http://perl.apache.org/guide 
 mailto:[EMAIL PROTECTED]   http://apachetoday.com http://jazzvalley.com
 http://singlesheaven.com http://perlmonth.com   perl.org   apache.org
 

-- 
Justin Beech  http://www.dslreports.com
Phone:212-269-7052 x252 FAX inbox: 212-937-3800
mailto:[EMAIL PROTECTED] --- http://dslreports.com/contacts



Re: mod_perl guide corrections

2000-09-15 Thread test



On 14 Sep 2000, Joe Schaefer wrote:

 Stas,
 
 
 http://perl.apache.org/guide/scenario.html#Buffering_Feature 
 ...
 There is no buffering of data uploaded from the client browser to the proxy, 
 thus you cannot use this technique to prevent the heavy mod_perl server from 
 being tied up during a large POST such as a file upload. Falling back to mod_cgi 
 seems to be the best solution for these specific scripts whose major function is 
 receiving large amounts of upstream data. 
 ...


What if you wanted the functionality of the fase handlers before and after
the loading of the file..

Could this also be accomplished by proper use of configuration statements
in http.conf?
Right now I do not think so, so getting the child tied up for the time
of the upload I take for granted.

Of course I have been mistaken several other times.

Arnold





Make test error!!

2000-09-15 Thread François Chenais

Hello

Using perl 5.6.0
  apache_1.3.9

I 'm trying to build DSO mod_perl.1.24

  = perl Makefile.PL USE_DSO=1  EVERYTHING=1 PERL_DEBUG=1

All is ok but "make test" says :

---
./apache_1.3.9/src/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t 
httpd listening on port 8529
will write error_log to: t/logs/error_log
letting apache warm up...\c
done
/usr/local/bin/perl t/TEST 0
still waiting for server to warm up...not ok
server failed to start! (please examine t/logs/error_log) at t/TEST line
95.
make: *** [run_tests] Error 111
---


t/logs/error_log
---
[notice] END block called for startup.pl
[notice] Destruction-DESTROY called for $global_object
[Fri Sep 15 10:34:40 2000] [warn] [notice] child_init for process 10374,
report
any problems to [no address given]
---



Any idea ?

François
-- 
[EMAIL PROTECTED]
   BULL-CITBtel:(+33) 556 437 848   Home: [EMAIL PROTECTED]
207, cours du Médoc fax:(+33) 556 437 978   http://www.citb.bull.net
 33000 Bordeaux BullCom: 227 7848   ICQ :3886291

Linux -



[ANNOUNCE] AxKit 0.99

2000-09-15 Thread Matt Sergeant

Phew, it has been a long and hard week trying to track down the memory
leak in AxKit. Members of AxKit-devel got all the gory details so I won't
go into them here, but needless to say the leak is gone.

AxKit 0.99 isn't much of a huge change from 0.99pre1 to the user. It
renames some of the PerlSetVar directives to have Ax prefixes, and thats
about it. It should also share a lot more memory, as I try and load some
things in the parent process that can be shared among the children
now. This brings memory consumption down about 1M per httpd child!

And it also introduces a single code-point for providing an output
filter. This was done primarily for Owen and pdaverticals, but ultimately
it will be useful for other things too.

http://axkit.org/download/

Also available on CPAN now (I didn't want to upload prior versions as they
had deficiencies, IMHO, but this one is getting pretty close to 1.0).

-- 
Matt/

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org





Problem building mod_perl on AIX with apxs DSO style

2000-09-15 Thread MJ M

Hello,

I am trying to build mod_perl on AIX with the apxs DSO style but get an 
error on link time.

My config is:

AIX-4.1.5
Perl-5.6.0 with AIX patch distributed by Jens-Uwe Mager on this list
a few months ago.
Apache-1.3.12
mod_perl-1.24

I configured mod_perl with the command:
perl Makefile.PL \
   USE_APXS=1 \
   EVERYTHING=1 \
   WITH_APXS=/usr/local/apache/bin/apxs

And I got the following error message after issuing a make:

ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more 
information.
ld: 0711-317 ERROR: Undefined symbol: ap_configtestonly
make[1]: *** [libperl.so] Error 8
make[1]: Leaving directory `/u/mijmm/apache/mod_perl-1.24/apaci'
make: *** [apxs_libperl] Error 2


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.




Static mod_perl+modules

2000-09-15 Thread Antti Linno

Hallo.
 As I was having problems with mod_perl as module and mysql+dbi, I was
told to install mod_perl statically to apache and php as a module. I
looked at install instructions and found static install or module install.
But with static install how and when do I install PHP as a module.
Any instructions, examples would help.
Thanking in advance,
Antti





Re: Problem building mod_perl on AIX with apxs DSO style

2000-09-15 Thread Jens-Uwe Mager

On Fri, Sep 15, 2000 at 10:42:19AM +, MJ M wrote:
 Hello,
 
 I am trying to build mod_perl on AIX with the apxs DSO style but get an 
 error on link time.
 
 My config is:
 
 AIX-4.1.5

Make sure that you apply the following for AIX  4.2.1, you will get
strange errors otherwise:

--- src/support/httpd.exp.orig  Wed Mar  1 16:35:34 2000
+++ src/support/httpd.exp   Wed Mar  1 16:35:42 2000
@@ -1,4 +1,4 @@
-#! .
+#!
 ap_MD5Encode
 ap_MD5Final
 ap_MD5Init

 Perl-5.6.0 with AIX patch distributed by Jens-Uwe Mager on this list
 a few months ago.
 Apache-1.3.12
 mod_perl-1.24
 
 I configured mod_perl with the command:
 perl Makefile.PL \
USE_APXS=1 \
EVERYTHING=1 \
WITH_APXS=/usr/local/apache/bin/apxs
 
 And I got the following error message after issuing a make:
 
 ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more 
 information.
 ld: 0711-317 ERROR: Undefined symbol: ap_configtestonly
 make[1]: *** [libperl.so] Error 8
 make[1]: Leaving directory `/u/mijmm/apache/mod_perl-1.24/apaci'
 make: *** [apxs_libperl] Error 2

There was some discussion about this on the new-httpd mailing list, and
the consensus I think was to remove the reference to that symbol from
mod_perl.  I would believe if you use the current CVS sources of
mod_perl then you do not see a reference to the symbol any more.
Otherwise you can temporarily patch Apache like this:

--- apache_1.3.12/src/support/httpd.exp.orig1   Mon Jun 12 01:01:11 2000
+++ apache_1.3.12/src/support/httpd.exp Mon Jun 12 01:01:53 2000
@@ -74,6 +74,7 @@
 ap_clear_pool
 ap_clear_table
 ap_close_piped_log
+ap_configtestonly
 ap_construct_server
 ap_construct_url
 ap_content_type_tolower

-- 
Jens-Uwe Mager

HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany

Phone:  +49 5131 709320
FAX:+49 5131 709325
Internet:   [EMAIL PROTECTED]



Re: segfaulting httpd :(

2000-09-15 Thread François Chenais

Hi

I have the same error on
Linux tanna 2.3.99-pre9 #1 SMP Sat Jul 1 20:54:27 CEST 2000 i686
unknown
perl 5.6.0
mod_perl 1.24


François


Ben Turner wrote:
 
 hi all,
 
 this afternoon i compiled a fresh httpd (apache 1.3.12), together with
 mod_perl 1.24. i'm on Solaris 8, running perl 5.6.0.
 
 after compiling httpd, i'm getting segfaults whenever i do a normal http
 request. for instance:
 
 http://bla/index.html works noprob
 http://bla/ does not work, and my errorlog shows a segfault (signal 11).
 
 anybody know what's goign on here?
 
 thanks!
 
 Ben
 
 "Nothing is ever easy."
 Zeddicus Z'ul Zorander



-- 
[EMAIL PROTECTED]
   BULL-CITBtel:(+33) 556 437 848   Home: [EMAIL PROTECTED]
207, cours du Médoc fax:(+33) 556 437 978   http://www.citb.bull.net
 33000 Bordeaux BullCom: 227 7848   ICQ :3886291

Linux -



Re: tracking down why a module was loaded?;

2000-09-15 Thread Stas Bekman

On Fri, 15 Sep 2000, Matt Sergeant wrote:

 On Thu, 14 Sep 2000, Justin wrote:
 
  Can anyone tell me the easiest slickest way of determining
  what was responsible for requesting a module, having discovered
  that it has been loaded when viewing perl-status?
 
 use OtherPackage; # because you need import to be defined first
 sub OtherPackage::import {
  warn join(':', caller), " tried to load me\n";
 }

Not really. import() is not called for any of these. 
use Foo ();
require Foo;
do Foo;

BEGIN{}+cluck in the code or just cluck will do per my original reply.

 Not foolproof, and could cause more damage than good, but sometimes its a
 useful debugging technique.
 
  modperl is the best kept secret on the net. Shame!
 
 Indeed!
 
 -- 
 Matt/
 
 Fastnet Software Ltd. High Performance Web Specialists
 Providing mod_perl, XML, Sybase and Oracle solutions
 Email for training and consultancy availability.
 http://sergeant.org | AxKit: http://axkit.org
 
 



_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide 
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://jazzvalley.com
http://singlesheaven.com http://perlmonth.com   perl.org   apache.org





Re: Does the AxKit-devel mailing list have an archive?

2000-09-15 Thread Matt Sergeant

Since a few people have asked what the leak in AxKit was, I've now setup
the archive so people can go and read...

On Fri, 15 Sep 2000, Wilt, Paul wrote:

 I would like to see how you traced down your memory leak and what the final
 root cause turned out to be!

It does now [matt sets up the archive...]

http://axkit.org/cgi-bin/ezmlm-cgi/4

See "Phew- thats a lot of updates!".

For anyone interested in how I debugged it, the exception handling
initiative was absolutely fundamental to this, although I'm thinking of
re-writing the guide section a bit to cover everything that I've changed
my mind about while debugging this. Anyway, I found the second mentioned
leak in the "Phew" message by creating a new mod_perl handler class that
emulated AxKit's minimum path (which just returned DECLINED), which I knew
to be leaking. Gradually I added in some code from AxKit until the leak
showed up. That was the push @_, "\n" bug.

The second one was the worst leak - it seemed to leak memory
exponentially - it would remain stable for about 300 hits, and then
suddenly go absolutely out of control leaking about 50k a hit, then 100k a
hit, until I had a 200M mod_perl process eating nothng but swap. To find
this was where exceptions came in. Once I'd gotten rid of the Debug memory
leak I could then add in a throw Declined(reason = "mem test") anywhere
in the code. This would simply return DECLINED. I moved it further and
further into the code, until it passed the point where it started leaking,
then I had to follow that stepping into the function. And this is where
exceptions are really cool - I don't need to change the method to get
right out to the exception handler - no multiple return() statements to
cope with, just throw the exception and you're out of the code. So anyway,
it turned out that the leak occurs in this code which I use to send
Gzipped results to the browser, ripped straight from Apache::GzipChain:

# AxKit::Debug(5, 'Getting Vary header');
# my @vary = $r-header_out('Vary') if $r-header_out('Vary');
# push @vary, "Accept-Encoding", "User-Agent";
# AxKit::Debug(5, 'Setting Vary header');
# $r-header_out('Vary',
# join ", ",
# @vary
# );

(excuse the fact that its commented out).

Once I removed that the leak was gone.

The final one, which was even trickier to find, was DIR_MERGE (part of
mod_perl's custom config directives code). I had suspected it might leak a
bit, and my suspicions are now confirmed. I'll let Doug deal with that
one.

Its been an exhausting week trying to find this and do real work at the
same time too! Unfortunately it has set back the CMS quite severely and it
won't be ready in time for ApacheCon, so no demo for that I'm afraid...

-- 
Matt/

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org




Re: tracking down why a module was loaded?;

2000-09-15 Thread Matt Sergeant

On Fri, 15 Sep 2000, Stas Bekman wrote:

 On Fri, 15 Sep 2000, Matt Sergeant wrote:
 
  On Thu, 14 Sep 2000, Justin wrote:
  
   Can anyone tell me the easiest slickest way of determining
   what was responsible for requesting a module, having discovered
   that it has been loaded when viewing perl-status?
  
  use OtherPackage; # because you need import to be defined first
  sub OtherPackage::import {
   warn join(':', caller), " tried to load me\n";
  }
 
 Not really. import() is not called for any of these. 
 use Foo ();
 require Foo;
 do Foo;
 
 BEGIN{}+cluck in the code or just cluck will do per my original reply.

Yep, its a better solution in most cases, except you have to edit the
original package for it to work. Sometimes thats not possible (e.g. on a
system you don't have admin rights for). So two solutions to the problem
are simply good to know.

-- 
Matt/

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org




Re: Static mod_perl+modules

2000-09-15 Thread Paul Lindner

On Fri, Sep 15, 2000 at 01:50:40PM +0300, Antti Linno wrote:
 Hallo.
  As I was having problems with mod_perl as module and mysql+dbi, I was
 told to install mod_perl statically to apache and php as a module. I
 looked at install instructions and found static install or module install.
 But with static install how and when do I install PHP as a module.
 Any instructions, examples would help.
 Thanking in advance,

We have what we call the apache-heavy src RPM.  It's 1.3.12 + php
4.0.2 + mod_perl 1.24 + oracle, all static.  If anyone is interested I
can put it up for ftp..

-- 
Paul Lindner
[EMAIL PROTECTED]
Red Hat Inc.



[Fwd: Re: [Mason]Intermittent Segfaults]

2000-09-15 Thread Mark Hughes

Hi,

It seems Harry was correct with this, I applied the following patch
supplied by Doug on the mod_perl list and the segfaults have gone away.
We're not using threaded perl by the way.

On another note, our Mason driven sites have been getting well over 1
million page views a day this week (main one is UEFA Champions League
Fantasy Football - http://uclff.ismgames.com) and the performance has
been great :-)

Cheers,
Mark.

On Sat, 9 Sep 2000, Shane Adams wrote:

 #7  0x80894de in XS_Apache_finfo (cv=0x8207410) at Apache.xs:1844

i haven't tried to reproduce this, but suspect a bug in $r-finfo which
the patch below should workaround.

--- lib/HTML/Mason/ApacheHandler.pm~Thu Aug 24 22:42:51 2000
+++ lib/HTML/Mason/ApacheHandler.pm Mon Sep 11 11:43:02 2000
@@ -531,7 +531,7 @@
 # If filename is a directory, then either decline or simply reset
 # the content type, depending on the value of decline_dirs.
 #
-if (-d $r-finfo) {
+if (-d $r-filename) {
if ($self-decline_dirs) {
return DECLINED;
} else {
@@ -544,7 +544,7 @@
 # (mainly for dhandlers).
 #
 my $pathname = $r-filename;
-$pathname .= $r-path_info unless -f $r-finfo;
+$pathname .= $r-path_info unless -f _;
 
 #
 # Compute the component path via the resolver.
@@ -555,7 +555,7 @@
 #
 # Decline if file does not pass top level predicate.
 #
-if (-f $r-finfo and defined($self-{top_level_predicate})) {
+if (-f _ and defined($self-{top_level_predicate})) {
return NOT_FOUND unless
$self-{top_level_predicate}-($r-filename);
 }
Harry Danilevsky wrote:
 
 Not sure if this is the reason, but I wonder if you are using
 thread-enabled Perl. The reason I ask is that I see a call to finfo(),
 and under threaded Perl (on Solaris, not Linux though) I was getting
 an intermittent Perl error about not being able to "upgrade this kind of
 scalar".
 These errors were produced by calls to $r-finfo() in Mason/ApacheHandler.pm
 I wrapped them into eval() with a fallback to $r-filename()
 and the problem disappeared. I suggest you try replacing calls to finfo()
 with filename() and see what happens (it certainly may degrade the
 performance).
 
 Harry Danilevsky
 [EMAIL PROTECTED]
 
  -Original Message-
  From: Mark Hughes [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 31, 2000 5:12 AM
  To: [EMAIL PROTECTED]
  Subject: [Mason]Intermittent Segfaults
 
 
  Hi,
 
  Our sites experience intermittent segfaults (Segmentation Fault (11))
  when serving mason generated pages, these seem to be completely random
  in
  frequency and called component (though components do share
  common module
  code), and occur infrequently, every few thousand requests or so.
 
  The servers are very busy, though load and memory usage are light.
 
  Setup Details:
 
  Mason 0.87 (Just tried 0.88, same intermittent problem)
  Perl 5.005_03
  mod_perl 1.24
  Apache 1.3.12
  Linux 2.2.16
 
  I've tried mason using Apache::Request and CGI.pm to handle
  %ARGS - same
  problem.
 
  Backtrace, obtained according to mod_perl SUPPORT file
 
  Program received signal SIGSEGV, Segmentation fault.
  0x80ed2b2 in Perl_pp_entersub ()
 
  #0  0x80ed2b2 in Perl_pp_entersub ()
  #1  0x80bf38c in perl_call_sv ()
  #2  0x80e13cc in Perl_croak ()
  #3  0x80ee02a in Perl_sv_upgrade ()
  #4  0x80c1d82 in Perl_gv_init ()
  #5  0x80c2e19 in Perl_gv_fetchpv ()
  #6  0x8087f1e in XS_Apache_finfo ()
  #7  0x80ecfb6 in Perl_pp_entersub ()
  #8  0x8116f5d in Perl_runops_standard ()
  #9  0x80bf3a1 in perl_call_sv ()
  #10 0x807c1cb in perl_call_handler ()
  #11 0x807b9db in perl_run_stacked_handlers ()
  #12 0x8079f5d in perl_handler ()
  #13 0x80950e3 in ap_invoke_handler ()
  #14 0x80a85b9 in ap_some_auth_required ()
  #15 0x80a861c in ap_process_request ()
  #16 0x809ff0e in ap_child_terminate ()
  #17 0x80a009c in ap_child_terminate ()
  #18 0x80a01f9 in ap_child_terminate ()
  #19 0x80a0826 in ap_child_terminate ()
  #20 0x80a0fb3 in main ()
  #21 0x400941eb in __libc_start_main (main=0x80a0c6c main, argc=6,
  argv=0xbc94, init=0x8060090 _init, fini=0x811703c _fini,
  rtld_fini=0x4000a610 _dl_fini, stack_end=0xbc8c)
  at ../sysdeps/generic/libc-start.c:90
 
 
 
  Any clues on how I can further debug this problem to try and
  get to the
  bottom
  of it. Is this a question better asked on the mod_perl list?
 
  BTW - I'm not using PerlFreshRestart
 
  Cheers,
  Mark
 
 
 
  ___
  Mason maillist  -  [EMAIL PROTECTED]
  http://netizen.com.au/mailman/listinfo/mason
 
 
 ___
 Mason maillist  -  [EMAIL PROTECTED]
 http://netizen.com.au/mailman/listinfo/mason



Value of ErrorLog directive via mod_perl

2000-09-15 Thread Bjørn Ola Smievoll

I need to retrieve the value of the ErrorLog directive (i.e. the path
 filename of the error_log), but I can't find a way to do it with
mod_perl.  (The C api equivalent is the error_fname field in the
server_rec struct).

Any hints?

Thanks,
(bo)



Apache::ASP problem (FreeBSD 3.4-STABLE, Apache/1.3.12, p5-Apache-1.24)

2000-09-15 Thread Valentina Curanova

Hello.
I have a big problem with a package p5-Apache-ASP-0.18
(FreeBSD 3.4-STABLE, Apache/1.3.12, p5-Apache-1.24).

Apache runs, PHP
runs and mod_perl runs
(I think)
but module Apache::ASP doesn't.

There is config file httpd.conf.test
of my experimental
server. At first time when I was trying to load the page
http://www.is.lt:880/asp/test.asp
I have got an error :

--httpd-error.log.test--
[Tue Jul 25 15:04:13 2000] [error]
Can't load
'/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/Digest/MD5/MD5.so'
for module Digest::MD5:
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/Digest/MD5/MD5.so:
Undefined symbol "PL_markstack_ptr"
at /usr/libdata/perl/5.00503/DynaLoader.pm line
169.

at /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/MD5.pm
line 8
BEGIN failed--compilation aborted at
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Apache/ASP.pm
line 13.

[Tue Jul 25 15:04:13 2000] [error]
Undefined subroutine Apache::ASP::handler
called.

I find similar message in
"info mod_perl_traps"
only. Now (after Perl rebilding) I get an error :

--httpd-error.log.test--
[Tue Sep 12 16:23:29 2000] [notice] Apache/1.3.12
(Unix) mod_perl/1.24 PHP/4.0.0 configured
-- resuming normal operations
[Tue Sep 12 16:23:38 2000] [error]
Can't load
'/usr/libdata/perl/5.00503/mach/auto/SDBM_File/SDBM_File.so'
for module SDBM_File:
/usr/libdata/perl/5.00503/mach/auto/SDBM_File/SDBM_File.so:
Undefined symbol "PL_markstack_ptr"
at /usr/libdata/perl/5.00503/mach/DynaLoader.pm
line 169.

at /usr/local/lib/perl5/site_perl/5.005/Apache/ASP.pm
line 10
BEGIN failed--compilation aborted at
/usr/local/lib/perl5/site_perl/5.005/Apache/ASP.pm
line 10.

[Tue Sep 12 16:23:38 2000] [error]
Undefined subroutine Apache::ASP::handler
called.


What have I do? Could You help me?

Valentina.
[EMAIL PROTECTED]




Do I need to reinstall mod_perl?

2000-09-15 Thread Jason

I'm on a RaQ4 which comes preinstalled with perl 5.005 and mod_perl 1.24

Whever I test a script, I get this error:

[Thu Sep 14 20:46:54 2000] [error] Can't locate Apache/ASP.pm in @INC (@INC
contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503
/usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .
/etc/httpd/ /etc/httpd/lib/perl) at (eval 43) line 3.


My ASP.pm file is located in this directory:

/usr/local/lib/perl5/site_perl/5.6.0/Apache/ASP.pm


Does this mean I have to reinstall mod_perl to recognize that I'm using a
newer version of Perl, or should I just copy the contents of the Apache
folder into something like /usr/lib/perl5/5.00503 ?

Also, would doing this effect my installation of Apache::ASP?

By the way, thanks for pointing me in the direction Stas Beckman's guide.
It's been really helpful as far as understanding terminology and config
info.

Also, if  you remember, I was the idiot who was having problems with my
httpd.conf -- the reason I was having trouble was that some of my config
info is also stored in a file called access.conf -- I guess some systems use
one httpd.conf, while others use more than one..


Thanks!

Jason






Re: Do I need to reinstall mod_perl?

2000-09-15 Thread Thomas S. Brettin

It looks like /usr/local/lib/perl5/site_perl/5.6.0 needs to be in in @INC
If this is your problem, there are several options that might work,

#!/usr/local/perl -I/usr/local/lib/perl5/site_perl/5.6.0

or move the .../site_perl/5.6.0/Apache directory to a directory in @INC.



On Fri, 15 Sep 2000, Jason wrote:

 I'm on a RaQ4 which comes preinstalled with perl 5.005 and mod_perl 1.24
 
 Whever I test a script, I get this error:
 
 [Thu Sep 14 20:46:54 2000] [error] Can't locate Apache/ASP.pm in @INC (@INC
 contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503
 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .
 /etc/httpd/ /etc/httpd/lib/perl) at (eval 43) line 3.
 
 
 My ASP.pm file is located in this directory:
 
 /usr/local/lib/perl5/site_perl/5.6.0/Apache/ASP.pm
 
 
 Does this mean I have to reinstall mod_perl to recognize that I'm using a
 newer version of Perl, or should I just copy the contents of the Apache
 folder into something like /usr/lib/perl5/5.00503 ?
 
 Also, would doing this effect my installation of Apache::ASP?
 
 By the way, thanks for pointing me in the direction Stas Beckman's guide.
 It's been really helpful as far as understanding terminology and config
 info.
 
 Also, if  you remember, I was the idiot who was having problems with my
 httpd.conf -- the reason I was having trouble was that some of my config
 info is also stored in a file called access.conf -- I guess some systems use
 one httpd.conf, while others use more than one..
 
 
 Thanks!
 
 Jason
 
 
 
 




JOB - NYC - Looking for a Linux/Apache/mod_perl/mysql programmer

2000-09-15 Thread Justin

Hi, 
We just placed a little job ad targetted at New York city residents on
dslreports.com. we're looking for an enthusiastic employee #4 who is
very comfortable with apache/modperl/linux/mysql

We cannot give an accurate job description, because there is so much
we need to DO, you can carve out your own area if you can convince me
and my partner. It could be:
  * community/forum coding
  * and/or .. network monitoring (for users) systems coding 
  * and/or .. mysql related work (optimizations, upgrades, etc)
  * and/or .. web design within the constraints of a modperl setup
  * and/or .. a little sysadmin (if you like that)
  * and/or .. automation of security scan tools
  * and/or .. a bit of java applet work

dslreports.com has a lot of daily users and gets a lot of feedback,
so if you enjoy the idea of giving users what they want, and doing
it fast, without focus groups and without a lot of project management,
then this position would be ideal for you.. 

Telecommuting is fine : unlimited DSL provided to your home. come to
the office every second day if you prefer ..

Please reply to me and not the list.
thanks
-Justin



Re: Apache::ASP problem (FreeBSD 3.4-STABLE, Apache/1.3.12, p5-Apache-1.24)

2000-09-15 Thread Joshua Chamas

There is something very wrong with your perl installation.
I would suggest rebuilding it and modperl.  SDBM_File
comes with perl, which is why I believe this.

--Joshua

Valentina Curanova wrote:
 
 Hello.
 I have a big problem with a package p5-Apache-ASP-0.18
 (FreeBSD 3.4-STABLE, Apache/1.3.12, p5-Apache-1.24).
 
 Apache runs, PHP runs and mod_perl runs (I think)
 but module Apache::ASP  doesn't.
 
 There is config file httpd.conf.test of my experimental
 server. At first time when I was trying to load the page
 http://www.is.lt:880/asp/test.asp I have got an error :
 
 --httpd-error.log.test--
 [Tue Jul 25 15:04:13 2000] [error]
 Can't load
 '/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/Digest/MD5/MD5.so'
 for module Digest::MD5:
 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/Digest/MD5/MD5.so:
 Undefined symbol "PL_markstack_ptr"
 at /usr/libdata/perl/5.00503/DynaLoader.pm line 169.
 
  at /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/MD5.pm line 8
 BEGIN failed--compilation aborted at
 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Apache/ASP.pm line 13.
 
 [Tue Jul 25 15:04:13 2000] [error]
 Undefined subroutine Apache::ASP::handler called.
 
 I find similar message in "info mod_perl_traps"
 only. Now (after Perl rebilding) I get an error :
 
 --httpd-error.log.test--
 [Tue Sep 12 16:23:29 2000] [notice] Apache/1.3.12 (Unix) mod_perl/1.24 PHP/4.0.0 
configured
 -- resuming normal operations
 [Tue Sep 12 16:23:38 2000] [error]
 Can't load
 '/usr/libdata/perl/5.00503/mach/auto/SDBM_File/SDBM_File.so'
 for module SDBM_File:
 /usr/libdata/perl/5.00503/mach/auto/SDBM_File/SDBM_File.so:
 Undefined symbol "PL_markstack_ptr"
 at /usr/libdata/perl/5.00503/mach/DynaLoader.pm line 169.
 
  at /usr/local/lib/perl5/site_perl/5.005/Apache/ASP.pm line 10
 BEGIN failed--compilation aborted at
 /usr/local/lib/perl5/site_perl/5.005/Apache/ASP.pm line 10.
 
 [Tue Sep 12 16:23:38 2000] [error]
 Undefined subroutine Apache::ASP::handler called.
 
 
 What have I do?  Could  You help me?
 
 Valentina.[EMAIL PROTECTED]
 




Re: JOB - NYC - Looking for a Linux/Apache/mod_perl/mysql programmer

2000-09-15 Thread Matt Sergeant

On Fri, 15 Sep 2000, Justin wrote:

 Hi, 
 We just placed a little job ad targetted at New York city residents on
 dslreports.com. we're looking for an enthusiastic employee #4 who is
 very comfortable with apache/modperl/linux/mysql
 
 We cannot give an accurate job description, because there is so much
 we need to DO, you can carve out your own area if you can convince me
 and my partner. It could be:
   * community/forum coding
   * and/or .. network monitoring (for users) systems coding 
   * and/or .. mysql related work (optimizations, upgrades, etc)
   * and/or .. web design within the constraints of a modperl setup
   * and/or .. a little sysadmin (if you like that)
   * and/or .. automation of security scan tools
   * and/or .. a bit of java applet work
 
 dslreports.com has a lot of daily users and gets a lot of feedback,
 so if you enjoy the idea of giving users what they want, and doing
 it fast, without focus groups and without a lot of project management,
 then this position would be ideal for you.. 
 
 Telecommuting is fine : unlimited DSL provided to your home. come to
 the office every second day if you prefer ..

Wow, thats an awesome offer for me - do you have the cash to persuade BT
to pipe DSL to my home? And flights to NY every other day would be neat
(but a little tiring) :-)

-- 
Matt/

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org




Re: JOB - NYC - Looking for a Linux/Apache/mod_perl/mysql programmer

2000-09-15 Thread John Arnold

especially since Concorde is grounded . . .




Matt Sergeant [EMAIL PROTECTED] on 09/15/2000 02:11:33 PM

To:   Justin [EMAIL PROTECTED]
cc:   [EMAIL PROTECTED] (bcc: John Arnold/DTC)
Subject:  Re: JOB - NYC - Looking for a Linux/Apache/mod_perl/mysql programmer




On Fri, 15 Sep 2000, Justin wrote:

 Hi,
 We just placed a little job ad targetted at New York city residents on
 dslreports.com. we're looking for an enthusiastic employee #4 who is
 very comfortable with apache/modperl/linux/mysql

 We cannot give an accurate job description, because there is so much
 we need to DO, you can carve out your own area if you can convince me
 and my partner. It could be:
   * community/forum coding
   * and/or .. network monitoring (for users) systems coding
   * and/or .. mysql related work (optimizations, upgrades, etc)
   * and/or .. web design within the constraints of a modperl setup
   * and/or .. a little sysadmin (if you like that)
   * and/or .. automation of security scan tools
   * and/or .. a bit of java applet work

 dslreports.com has a lot of daily users and gets a lot of feedback,
 so if you enjoy the idea of giving users what they want, and doing
 it fast, without focus groups and without a lot of project management,
 then this position would be ideal for you..

 Telecommuting is fine : unlimited DSL provided to your home. come to
 the office every second day if you prefer ..

Wow, thats an awesome offer for me - do you have the cash to persuade BT
to pipe DSL to my home? And flights to NY every other day would be neat
(but a little tiring) :-)

--
Matt/

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org








Re: Does the AxKit-devel mailing list have an archive?

2000-09-15 Thread ___cliff rayman___

Matt Sergeant wrote:


 Gzipped results to the browser, ripped straight from Apache::GzipChain:

 # AxKit::Debug(5, 'Getting Vary header');
 # my @vary = $r-header_out('Vary') if $r-header_out('Vary');
 # push @vary, "Accept-Encoding", "User-Agent";
 # AxKit::Debug(5, 'Setting Vary header');
 # $r-header_out('Vary',
 # join ", ",
 # @vary
 # );


excuse my ignorance,  but for my own knowledge, what is the problem with this code?  
is it the
"my @vary" with the "if" conditional??
--
___cliff [EMAIL PROTECTED]http://www.genwax.com/






RE: JOB - NYC - Looking for a Linux/Apache/mod_perl/mysql programmer

2000-09-15 Thread Douglas Wilson



 -Original Message-
 From: Matt Sergeant [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 15, 2000 11:12 AM
 To: Justin
 Cc: [EMAIL PROTECTED]
 Subject: Re: JOB - NYC - Looking for a Linux/Apache/mod_perl/mysql
 programmer


 On Fri, 15 Sep 2000, Justin wrote:

  Hi,
  We just placed a little job ad targetted at New York city residents on
  dslreports.com. we're looking for an enthusiastic employee #4 who is
  very comfortable with apache/modperl/linux/mysql
 
  We cannot give an accurate job description, because there is so much
  we need to DO, you can carve out your own area if you can convince me
  and my partner. It could be:
* community/forum coding
* and/or .. network monitoring (for users) systems coding
* and/or .. mysql related work (optimizations, upgrades, etc)
* and/or .. web design within the constraints of a modperl setup
* and/or .. a little sysadmin (if you like that)
* and/or .. automation of security scan tools
* and/or .. a bit of java applet work
 
  dslreports.com has a lot of daily users and gets a lot of feedback,
  so if you enjoy the idea of giving users what they want, and doing
  it fast, without focus groups and without a lot of project management,
  then this position would be ideal for you..
 
  Telecommuting is fine : unlimited DSL provided to your home. come to
  the office every second day if you prefer ..

 Wow, thats an awesome offer for me - do you have the cash to persuade BT
 to pipe DSL to my home? And flights to NY every other day would be neat
 (but a little tiring) :-)

No thanks, I've already done the LAX-Indiana commute every week for a year.
No way would I do it every other day :) Besides, my mod_perl experience is
a little light. Although I WILL be at the Perl U mod_perl class when it
comes to L.A. (I haven't seen a plug for that yet here, so here it is) :)




Re: Does the AxKit-devel mailing list have an archive?

2000-09-15 Thread Matt Sergeant

On Fri, 15 Sep 2000, ___cliff rayman___ wrote:

 Matt Sergeant wrote:
 
 
  Gzipped results to the browser, ripped straight from Apache::GzipChain:
 
  # AxKit::Debug(5, 'Getting Vary header');
  # my @vary = $r-header_out('Vary') if $r-header_out('Vary');
  # push @vary, "Accept-Encoding", "User-Agent";
  # AxKit::Debug(5, 'Setting Vary header');
  # $r-header_out('Vary',
  # join ", ",
  # @vary
  # );
 
 
 excuse my ignorance,  but for my own knowledge, what is the problem with this code?  
is it the
 "my @vary" with the "if" conditional??

I think its a mod_perl bug. There's nothing leaky in the perl here.

-- 
Matt/

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org





[libapreq] unknown content-type: `(null)'

2000-09-15 Thread chris

I've recently started getting the following error message from
Apache::Request:

   [libapreq] unknown content-type: `(null)'

These are all POSTs. Looking at the libapreq code, it seems like only a
broken browser that doesn't send the content-type header with POST
requests would cause this, but the user agents are usually later versions
of IE or Netscape.

This only shows up once every few hundred thousand pages, which makes it
hard to track down. Any ideas?

Thanks,
Chris




Re: Static mod_perl+modules

2000-09-15 Thread Paul Lindner

On Fri, Sep 15, 2000 at 06:35:00AM -0700, Paul Lindner wrote:
 On Fri, Sep 15, 2000 at 01:50:40PM +0300, Antti Linno wrote:
  Hallo.
   As I was having problems with mod_perl as module and mysql+dbi, I was
  told to install mod_perl statically to apache and php as a module. I
  looked at install instructions and found static install or module install.
  But with static install how and when do I install PHP as a module.
  Any instructions, examples would help.
  Thanking in advance,
 
 We have what we call the apache-heavy src RPM.  It's 1.3.12 + php
 4.0.2 + mod_perl 1.24 + oracle, all static.  If anyone is interested I
 can put it up for ftp..

Okay, since there is interest out there, see 

  http://people.redhat.com/plindner/apache-heavy-1.3.12-1.src.rpm

Cheers.

Then install it; you might want to play around with the spec file, I
have a few defines in there to turn on/off some options in PHP etc...

I can say that it's been working pretty well for our site.  We haven't
pushed the PHP end to it's limit though.

-- 
Paul Lindner
[EMAIL PROTECTED]
Red Hat Inc.



Problems Installing

2000-09-15 Thread Shawn Evans

System Information:
ULTRA 60 with Solaris 2.6, 512MB, 2x350
GCC 2.95.2
APACHE 1.3.12
PERL 5.6
MOD_PERL 1.21
PHP 4.0
JSERV 1.1
GNUJSP 1.0

I configure MOD_PERL for a static install:

perl Makefile.PL \
 APACHE_SRC=/disk1/pkgs/apache_1.3.12 \
 DO_HTTPD=1 \
 USE_APACI=1 \
 PREP_HTTPD=1 \
 EVERYTHING=1 \
#make
#make install

I configure apache:

./configure \
 --prefix=/usr/http_local/apache \
 --enable-module=unique_id \
 --enable-module=rewrite \
 --enable-module=speling \
 --enable-module=so \
 --enable-rule=SHARED_CORE \
 --activate-module=src/modules/php4/libphp4.a \
 --activate-module=src/modules/jserv/libjserv.a \
 --activate-module=src/modules/perl/libperl.a \
 #make

after apache make
 + id: Perl/5.006 (solaris) [/disk1/usr/local/perl/bin/perl]

   (perl error)

 === src/modules/perl

gcc -O -fno-strict-aliasing -I/disk1/usr/local/lib/gcc-lib/sparc-sun-solaris
2.6/2.95.2/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/disk1/usr/l
ocal/perl/lib/5.6.0/sun4-solaris/CORE  -DMOD_PERL_VERSION=\"1.21\" -DMOD_PER
L_STRING_VERSION=\"mod_perl/1.21\" -I../..  -I/disk1/usr/local/perl/lib/5.6.
0/sun4-solaris/CORE  -I../../os/unix -I../../include   -DSOLARIS2=260 -DMOD_
PERL -DUSE_PERL_SSI -fno-strict-aliasing -I/disk1/usr/local/lib/gcc-lib/spar
c-sun-solaris2.6/2.95.2/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
DUSE_EXPAT -I../../lib/expat-lite -fPIC -DSHARED_CORE `../../apaci` -c
mod_perl.c
 mod_perl.c: In function `perl_handler':
 mod_perl.c:783: `PL_siggv' undeclared (first use in this function)
 mod_perl.c:783: (Each undeclared identifier is reported only once
 mod_perl.c:783: for each function it appears in.)
 make[4]: *** [mod_perl.o] Error 1
 make[3]: *** [all] Error 1
 make[2]: *** [subdirs] Error 1
 make[2]: Leaving directory `/disk1/pkgs/apache_1.3.12/src'
 make[1]: *** [build-std] Error 2
 make[1]: Leaving directory `/disk1/pkgs/apache_1.3.12'
 make: *** [build] Error 2

Been banging my head on this for 2 days.

Thanks,

Shawn




I'm missing something in Apache::Cookie

2000-09-15 Thread Michael

H.

When I retrieve a cookie

%cookies = Apache::Cookie-fetch;

I get a hash that contains the name of the cookie as the key and a 
scalar reference as the value. 
Apache::Cookie=SCALAR(0xblah...)
Can't seem to unravel it to get at the 
value. Using

%xx = Apache::Cookie-parse($val);
gives an apparently empty hash, yet retrieving the headers via 
Apache::Table yields the correct results

Cookie=foo=bar

cook name val
   foo  bar


So what am I doing wrong with Apache::Cookie that keeps me from 
returning the cookie value.

Michael



Re: I'm missing something in Apache::Cookie

2000-09-15 Thread Chris Winters

* Michael ([EMAIL PROTECTED]) [000915 17:29]:
 H.
 
 When I retrieve a cookie
 
 %cookies = Apache::Cookie-fetch;
 
 I get a hash that contains the name of the cookie as the key and a 
 scalar reference as the value. 
 Apache::Cookie=SCALAR(0xblah...)
 Can't seem to unravel it to get at the 
 value. Using
 
 %xx = Apache::Cookie-parse($val);
 gives an apparently empty hash, yet retrieving the headers via 
 Apache::Table yields the correct results
 
 Cookie=foo=bar
 
 cook name val
foo  bar
 
 
 So what am I doing wrong with Apache::Cookie that keeps me from 
 returning the cookie value.
 
 Michael

The following seems to work for me in nabbing all the cookies sent and
putting them into a hashref $cookies

   my $cookies = {};
   my $cookie_info = Apache::Cookie-fetch;
   foreach my $name ( keys %{ $cookie_info } ) {
 $cookies-{ $name } = $cookie_info-{ $name }-value;
   }

HTH

Chris

-- 
Chris Winters
Senior Internet Developerintes.net
[EMAIL PROTECTED]   http://www.intes.net/
Integrated hardware/software solutions to make the Internet work for you.



Re: I'm missing something in Apache::Cookie (fwd)

2000-09-15 Thread Thomas S. Brettin


from the looks of the code you guys posted, I would guess that
Cookie-fetch returns a hash reference, not a hash.  Could this be the
problem?


Thomas S. Brettin
Staff Member
Bioscience Division, MS-M888
Los Alamos National Laboratory
Los Alamos, NM 87545
505-665-3334

On Fri, 15 Sep 2000, Chris Winters wrote:

 * Michael ([EMAIL PROTECTED]) [000915 17:29]:
  H.
  
  When I retrieve a cookie
  
  %cookies = Apache::Cookie-fetch;
  
  I get a hash that contains the name of the cookie as the key and a 
  scalar reference as the value. 
  Apache::Cookie=SCALAR(0xblah...)
  Can't seem to unravel it to get at the 
  value. Using
  
  %xx = Apache::Cookie-parse($val);
  gives an apparently empty hash, yet retrieving the headers via 
  Apache::Table yields the correct results
  
  Cookie=foo=bar
  
  cook name val
 foo  bar
  
  
  So what am I doing wrong with Apache::Cookie that keeps me from 
  returning the cookie value.
  
  Michael
 
 The following seems to work for me in nabbing all the cookies sent and
 putting them into a hashref $cookies
 
my $cookies = {};
my $cookie_info = Apache::Cookie-fetch;
foreach my $name ( keys %{ $cookie_info } ) {
  $cookies-{ $name } = $cookie_info-{ $name }-value;
}
 
 HTH
 
 Chris
 
 -- 
 Chris Winters
 Senior Internet Developerintes.net
 [EMAIL PROTECTED]   http://www.intes.net/
 Integrated hardware/software solutions to make the Internet work for you.
 






Re: Make test error!!

2000-09-15 Thread G.W. Haywood

Hi there,

On Fri, 15 Sep 2000, [iso-8859-1] François Chenais wrote:

 Using perl 5.6.0
   apache_1.3.9
 
 I 'm trying to build DSO mod_perl.1.24

Curious choice of versions.  Why not 1.3.12?

Tried `apachectl configtest'?  Can you get anything from `httpd -l'
What's in the error_log (if anything?)

73,
Ged.




module.pm - module.so

2000-09-15 Thread Michael

Can someone tell me how to load a module that has been run through 
perlcc ??

i.e. I have a working module "module.pm" which normally is loaded via 

use module;

I've run it through perlcc thus

perlcc module.pm

which produces "module.so"

"use module;" now barfs when all that is available is the module.so

perldoc perlcc 
indicates that "use module;" should work

Anyone actually doing this??

Michael
[EMAIL PROTECTED]



ANNOUCE: HTML::Mason 0.89

2000-09-15 Thread Jonathan Swartz

The URL

http://masonhq.com/download/HTML-Mason-0.89.tar.gz

has entered CPAN as

  file: $CPAN/authors/id/J/JS/JSWARTZ/HTML-Mason-0.89.tar.gz
  size: 258824 bytes
   md5: d03e77cd42b6995eefeeccb3a0d0b541

This fixes a fatal argument processing bug and system logging bug in 0.88.
We believe this version to be stable again; please send bug reports to the
Mason user's list.

Jon