You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Kip Cranford <ki...@yahoo.com> on 2002/10/25 05:18:22 UTC

Trouble with Apache::DB

I have a newly installed Red Hat 8.0 system, with the
following characteristics:

* Perl v5.8.0
* mod_perl 1.27
* Apache 1.3.26

The build of mod_perl/Apache worked fine; the project
I had been working on before upgrading RH seems to run
ok.  However, today I attempted to debug something
using Apache::DB and running with "httpd -X".  I
received this error:

[error] No DB::DB routine defined at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Apache.pm
line 4.

Now, nothing has changed with my project (i.e. the
Apache config is the same, the code is the same, etc),
only the version of Perl on the new system.  I did
some tests using the regular perl debugger, and had no
problems.

Is there some incompatibility here, or is something
else wrong?  Any help would be greatly appreciated.

Thanks,

--kip


__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

Re: Trouble with Apache::DB

Posted by Kip Cranford <ki...@yahoo.com>.
Yes, I was using the stock RH perl.  I did try
recompiling 5.8.0 with debugging support, as you
suggested, with no luck.  I then tried recompiling
other versions of perl (like 5.8.0 RC2, RC1, 5.7.3),
with and without debugging support, also with no luck.

Finally, I just grabbed a 5.6.1 (since this all worked
on my other systems with 5.6.1) and put that on there.
 I compiled without debugging support (and just used
almost all the defaults), recompiled mod_perl and
Apache, and that seems to have done the trick.

I still don't know what the problem is, whether it's
with perl, Apache::DB, RH, me, my cat...  Anyway, I'll
have to use this workaround until I have more free
time.  

Thanks to everyone for the suggestions!

--kip


--- William McKee <wi...@knowmad.com> wrote:
> On 24 Oct 2002 at 23:35, John Siracusa wrote:
> > I got a similar error a while back when I tried it
> with the same versions
> > of Perl, mod_perl, and apache (but on Mac OS X). 
> I googled a while and all
> > I could come up with were some posts from
> internals hackers about perl data
> > structures getting mysteriously hosed for some
> unknown reason with this
> > collection of versions.  I still haven't found a
> solution...
> 
> I think someone recently mentioned on this list that
> you may need a Perl 
> with debugging compiled into it. Kip, are you using
> the stock Redhat Perl? 
> Maybe you should try recompiling with debugging
> enabled. That means you'll 
> need to recompile mod_perl as well. For my part, I
> haven't had a problem 
> with the Debian 3.0 or FreeBSD perl binaries.
> 



__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

Re: Trouble with Apache::DB

Posted by William McKee <wi...@knowmad.com>.
On 24 Oct 2002 at 23:35, John Siracusa wrote:
> I got a similar error a while back when I tried it with the same versions
> of Perl, mod_perl, and apache (but on Mac OS X).  I googled a while and all
> I could come up with were some posts from internals hackers about perl data
> structures getting mysteriously hosed for some unknown reason with this
> collection of versions.  I still haven't found a solution...

I think someone recently mentioned on this list that you may need a Perl 
with debugging compiled into it. Kip, are you using the stock Redhat Perl? 
Maybe you should try recompiling with debugging enabled. That means you'll 
need to recompile mod_perl as well. For my part, I haven't had a problem 
with the Debian 3.0 or FreeBSD perl binaries.

Good luck,
William

-- 
 Lead Developer
 Knowmad Services Inc. || Internet Applications & Database Integration
 http://www.knowmad.com
 


[patch] Apache::DB now works with 5.8.0+

Posted by Stas Bekman <st...@stason.org>.
To all those having problems with Apache::DB and perl 5.8.0+ (CC'ing all 
those who have complained recently).

Try this patch:

--- Apache-DB-0.06/DB.pm.old	1999-10-12 07:50:33.000000000 +0800
+++ Apache-DB-0.06/DB.pm	2002-11-29 18:03:47.000000000 +0800
@@ -14,6 +14,7 @@
  $Apache::Registry::MarkLine = 0;

  sub init {
+    *DB::DB = sub {} unless DB->can("DB"); # temp definition for 5.8.0+
      if(init_debugger()) {
  	warn "[notice] Apache::DB initialized in child $$\n";
      }

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: Trouble with Apache::DB

Posted by John Siracusa <si...@mindspring.com>.
On 10/24/02 11:18 PM, Kip Cranford wrote:
> I have a newly installed Red Hat 8.0 system, with the
> following characteristics:
> 
> * Perl v5.8.0
> * mod_perl 1.27
> * Apache 1.3.26
> 
> The build of mod_perl/Apache worked fine; the project
> I had been working on before upgrading RH seems to run
> ok.  However, today I attempted to debug something
> using Apache::DB and running with "httpd -X".  I
> received this error:
> 
> [error] No DB::DB routine defined at
> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Apache.pm
> line 4.

I got a similar error a while back when I tried it with the same versions of
Perl, mod_perl, and apache (but on Mac OS X).  I googled a while and all I
could come up with were some posts from internals hackers about perl data
structures getting mysteriously hosed for some unknown reason with this
collection of versions.  I still haven't found a solution...

-John