Another followup, I'm not sure why the build for perldap is not linking the
libraries, but if I include:
PassEnv LD_LIBRARY_PATH
in my apache config file, the perl programs work.  Aparently something is compiled
dynamically in perldap (or the SDK) and cannot be loaded without my expaned
LD_LIBRARY_PATH.  This seems more like a bandaid than a fix.  Still looking for a
"better" solution.


Daniel Chester wrote:

> System: Sun U10
> OS: Solaris 8 fully patched
> Compiler: gcc version 2.95.3 20010315 (release)
> Perl: This is perl, v5.6.1 built for sun4-solaris
> Apache: Server version: Apache/1.3.19 (Unix)
> perldap: 1.4.1
>
> I have a cgi that I wrote that has the following in it:
> use Mozilla::LDAP::Conn;
>
> from the command line as the user that apache setuid's to, I get:
> ./register.cgi
> Use of uninitialized value in string eq at Utils.pm line 141.
> Use of uninitialized value in string eq at Utils.pm line 141.
> (offline mode: enter name=value pairs on standard input)
>
> when my apache webserver tries to run it, I get:
> Can't load
> '/usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/auto/Mozilla/LDAP/API/API.so'
> for module Mozilla::LDAP::API: ld.so.1:
> /usr/local/bin/perl: fatal: libplc3.so: open failed: No such file or directory
> at /usr/local/lib/perl5/5.6.1/sun4-solaris/DynaLoader
> .pm line 206. at
> /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/Mozilla/LDAP/Utils.pm line 29
> Compilation failed in require at
> /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/Mozilla/LDAP/Utils.pm line 29.
>
> BEGIN failed--compilation aborted at
> /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/Mozilla/LDAP/Utils.pm line 29.
>
> Compilation failed in require at
> /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/Mozilla/LDAP/Conn.pm line 32.
> BEGIN failed--compilation aborted at
> /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/Mozilla/LDAP/Conn.pm line 32.
> Compilation failed in require at
> /export/home/westland/public_html/cgi/register.cgi line 7.
> BEGIN failed--compilation aborted at
> /export/home/westland/public_html/cgi/register.cgi line 7.
>
> This seems odd, so I did some digging, my script also calls Date::Calc which
> also has a .so file in the /auto subdirectory, it loads that one fine.
>
> Please note that cpan is listing the current version as 1.4 not 1.4.1.
begin:vcard 
n:Chester;Daniel
x-mozilla-html:TRUE
url:www.chesternet.net/talamar
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Daniel Chester
end:vcard

Reply via email to