Ray Gebbie wrote:
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.  [...]

I know nothing about AIX.

The program bombs out when trying to load the Socket.so dynamic library. It could be that there are some restrictions on where dynamic libraries can be loaded when running under the jsp.

Look at the web-server options for running programs and loading dynamic libraries to see if any restrictions have been placed on them.

Environment variables that start with the letters "LD_" control how programs and their libraries are loaded. Check the environment when running under jsp and compare it to the standalone environment. Some environment variables may be missing or radically changed, and that may be the problem.


HTH



--
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