RE: 2 problems with mod_perl/Apache::DBI

2001-08-07 Thread Rob Bloodgood

 startup.pl cannot be run from the command line when it
 contains apache server specific modules.

But you can put those (Apache specific) modules in your httpd.conf instead
as

PerlModule Apache::DBI Apache::Status

and avoid compilation warnings in startup.pl.

But you should clearly note this, both in startup.pl and httpd.conf, as
explanatory comments.  Otherwise, you *will* forget that you did this... :-)

  However, when run under Apache
 
  PerlRequire /usr/local/etc/apache/startup.pl
 
  [Mon Aug  6 17:33:09 2001] [error] Can't load
 '/usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd/auto/DBI/DBI.so
 ' for module DBI:
 /usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd/auto/DBI/DBI.so:
  Undefined symbol PL_dowarn at
  Not sure what's up.

As far as the DBI error, is there a possibility that you are NOT using the
same build of perl as was compiled into Apache?  try rebuilding
mod_perl/apache at the same time.

L8r,
Rob

#!/usr/bin/perl -w
use Disclaimer qw/:standard/;





2 problems with mod_perl/Apache::DBI

2001-08-06 Thread Jaye Mathisen



uwb-02-chroot# uname -a
FreeBSD uwb-02.cdsnet.net 4.3-STABLE FreeBSD 4.3-STABLE #0: Fri Aug  3 11:43:20 PDT 200
uwb-02-chroot# perl -v
This is perl, v5.6.1 built for i386-freebsd

uwb-02-chroot# cat /usr/local/etc/apache/startup.pl
#!/usr/bin/perl

use Apache;
use Apache::Status;
use Apache::DBI; 
use Apache::DBILogger;

1;

uwb-02-chroot# ./startup.pl
Can't locate object method module via package Apache (perhaps you forgot to load 
Apache?) at /usr/local/lib/perl5/site_perl/5.6.1/Apache/DBI.pm line 202.
Compilation failed in require at ./startup.pl line 5.
BEGIN failed--compilation aborted at ./startup.pl line 5.

So if I comment out the Apache-module(Apache::Status) temporarily, it runs from
the command prompt.

However, when run under Apache

PerlRequire /usr/local/etc/apache/startup.pl

[Mon Aug  6 17:33:09 2001] [error] Can't load 
'/usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd/auto/DBI/DBI.so' for module DBI: 
/usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd/auto/DBI/DBI.so: Undefined symbol 
PL_dowarn at /usr/local/lib/perl5/5.6.1/i386-freebsd/DynaLoader.pm line 206.
 at /usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd/DBI.pm line 185
BEGIN failed--compilation aborted at 
/usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd/DBI.pm line 185.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.6.1/Apache/DBI.pm 
line 4.
BEGIN failed--compilation aborted at 
/usr/local/lib/perl5/site_perl/5.6.1/Apache/DBI.pm line 4.
Compilation failed in require at /usr/local/etc/apache/startup.pl line 5.
BEGIN failed--compilation aborted at /usr/local/etc/apache/startup.pl line 5.
Compilation failed in require at (eval 1) line 1.

Not sure what's up.



Re: 2 problems with mod_perl/Apache::DBI

2001-08-06 Thread ___cliff rayman___

startup.pl cannot be run from the command line when it
contains apache server specific modules.

Jaye Mathisen wrote:

 uwb-02-chroot# uname -a
 FreeBSD uwb-02.cdsnet.net 4.3-STABLE FreeBSD 4.3-STABLE #0: Fri Aug  3 11:43:20 PDT 
200
 uwb-02-chroot# perl -v
 This is perl, v5.6.1 built for i386-freebsd

 uwb-02-chroot# cat /usr/local/etc/apache/startup.pl
 #!/usr/bin/perl

 use Apache;
 use Apache::Status;
 use Apache::DBI;
 use Apache::DBILogger;

 1;

 uwb-02-chroot# ./startup.pl
 Can't locate object method module via package Apache (perhaps you forgot to load 
Apache?) at /usr/local/lib/perl5/site_perl/5.6.1/Apache/DBI.pm line 202.
 Compilation failed in require at ./startup.pl line 5.
 BEGIN failed--compilation aborted at ./startup.pl line 5.

 So if I comment out the Apache-module(Apache::Status) temporarily, it runs from
 the command prompt.

 However, when run under Apache

 PerlRequire /usr/local/etc/apache/startup.pl

 [Mon Aug  6 17:33:09 2001] [error] Can't load 
'/usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd/auto/DBI/DBI.so' for module DBI: 
/usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd/auto/DBI/DBI.so: Undefined symbol 
PL_dowarn at
 Not sure what's up.

--
___cliff [EMAIL PROTECTED]http://www.genwax.com/