Kemin Zhou wrote: [...]
The perl works fine on my system.
When I run perl programs through apaches, whenever the program used or its module uses Socket.pm
for example database connections using sockets, my web application through mod_perl will not work
giving the following error message:
[Tue Jun 22 11:18:05 2004] [error] 2764: ModPerl::Registry: Insecure dependency
in connect while running setgid at /usr/lib/perl5/5.8.4/i686-linux-thread-multi-ld/IO/Socket.pm line 114.
It sounds like a problem in IO::Socket, or some code that calls it. ModPerl::Registry just catches any die()s and reports them to error_log. May be we should reconsider and drop the ModPerl::Registry prefix in the error message, so people won't always think that it's a mod_perl problem.
If you can show us a short script that you can reproduce the problem with, we may be able to tell you what's wrong.
Before you do that, add:
use Carp; $SIG{__DIE__} = \&Carp::confess;
somewhere in startup.pl and the next time it will print you the full trace of calls leading to the one you've quoted.
-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html