I checked the Socket.so file and it is readable and executable by all (and
the directories are readable also).  I have no understanding of what the
'Bad address' error means.

This is all happening before the script even starts to execute.  If I
comment out the "use Net::FTP;", I don't get the errors, but of course, the
first ftp-> statement fails and aborts the script.  If I change the 'use'
to 'require', I get the errors at runtime:

ERROR: Can't load '/usr/opt/perl5/lib/5.8.2
/aix-thread-multi/auto/Socket/Socket.so' for module Socket: Bad address at
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/XSLoader.pm line 68.
ERROR: at /usr/opt/perl5/lib/5.8.2/aix-thread-multi/Socket.pm line 399
ERROR: Compilation failed in require at /usr/opt/perl5/lib/5.8.2/Net/FTP.pm
line 17.
ERROR: BEGIN failed--compilation aborted at /usr/opt/perl5/lib/5.8.2
/Net/FTP.pm line 17.
ERROR: Compilation failed in require at
/www/a/scripts/list_approved_images.pl line 19.

As I said, the script runs standalone, but not from the jsp.  At this
point, I am stumped.  So any more basic information about this problem and
what to do would be helpful.  I do not know enough about this part of perl
to even know where to look.

Thanks.

Ray Gebbie
Federated Systems Group
San Francisco, CA 94102
415-422-1662



                                                                           
             "Mumia W."                                                    
             <mumia.w.18.spam+                                             
             [EMAIL PROTECTED]                                          To 
             net>                      Beginners List <beginners@perl.org> 
                                                                        cc 
             07/06/2006 03:14                                              
             PM                                                    Subject 
                                       Re: Errors with dynamic extensions  
                                       loading when running from jsp       
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Ray Gebbie wrote:
> I have a pretty simple script that I am running on AIX 5.3 using
> Perl 5.8.2. The script runs fine standalone, but when trying to run
> it from a jsp running on a web site, I get the following:
>
> ERROR: Can't load '/usr/opt/perl5/lib/5.8.2/aix-thread-
> multi/auto/Socket/Socket.so' for module Socket: Bad address
> at /usr/opt/perl5/lib/5.8.2/aix-thread-multi/XSLoader.pm line 68.
> [...]

Evidently, the web-server doesn't have permission to open a socket at
that address. Try to use a non-privileged address or increase server
privileges (scary).



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to