Sorry all - I was placing the blame where it shouldn't have been placed. This is a 5.6.0 problem (well, not a problem, actually). I needed to add -DPERL_POLLUTE to the DEFINE tag in the Makefile to handle namespace pollution cleanup with this newer version of Perl. Once I did so, the module compiled and installed nicely. I like that. :)


Ian Zapczynski wrote:


Hello again,

Still trying to get Perldap 1.4 compiled and working on a Solaris 9 box.
I have the ldapcsdk as it came with Sun One Directory 5.1, and have specified the directory in which it exists when I run 'Perl Makefile.PL'. It then states:


Located multiple libraries:
- libldap50.so
- libssldap50.so
- libprldap50.so
- libldap50.a
Libraries to link with (default: -L/opt/iplanet/lib/ldapcsdk/lib -lldap50):


I accept the default here, and get the following when I run a 'make':

/usr/bin/perl -I/usr/local/lib/perl5/5.6.1/sun4-solaris -I/usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/5.6.1/ExtUtils/xsubpp -nolinenumbers -typemap /usr/local/lib/perl5/5.6.1/ExtUtils/typemap -typemap typemap API.xs > API.xsc && mv API.xsc API.c
gcc -c -I/opt/iplanet/lib/ldapcsdk/include -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.4\" -DXS_VERSION=\"1.4\" -fPIC -I/usr/local/lib/perl5/5.6.1/sun4-solaris/CORE -DLDAPV3 -DUSE_SSL API.c
API.c: In function `avref2charptrptr':
API.c:205: `na' undeclared (first use in this function)
API.c:205: (Each undeclared identifier is reported only once
API.c:205: for each function it appears in.)
API.c: In function `avref2berptrptr':
API.c:235: `na' undeclared (first use in this function)
API.c: In function `parse1mod':
API.c:377: `na' undeclared (first use in this function)
API.c: In function `XS_Mozilla__LDAP__API_ldap_compare_ext':
API.c:827: `na' undeclared (first use in this function)
API.c: In function `XS_Mozilla__LDAP__API_ldap_compare_ext_s':
API.c:853: `na' undeclared (first use in this function)
API.c: In function `XS_Mozilla__LDAP__API_ldap_extended_operation':
API.c:1270: `na' undeclared (first use in this function)
API.c: In function `XS_Mozilla__LDAP__API_ldap_extended_operation_s':
API.c:1297: `na' undeclared (first use in this function)
API.c: In function `XS_Mozilla__LDAP__API_ldap_result':
API.c:2459: `na' undeclared (first use in this function)
API.c: In function `XS_Mozilla__LDAP__API_ldap_sasl_bind':
API.c:2507: `na' undeclared (first use in this function)
API.c: In function `XS_Mozilla__LDAP__API_ldap_sasl_bind_s':
API.c:2534: `na' undeclared (first use in this function)
API.c: In function `XS_Mozilla__LDAP__API_ldap_search_ext':
API.c:2596: `na' undeclared (first use in this function)
API.c: In function `XS_Mozilla__LDAP__API_ldap_search_ext_s':
API.c:2631: `na' undeclared (first use in this function)
API.c: In function `XS_Mozilla__LDAP__API_ldap_search_st':
API.c:2692: `na' undeclared (first use in this function)
API.c: In function `XS_Mozilla__LDAP__API_ldap_url_parse':
API.c:2961: `sv_undef' undeclared (first use in this function)
API.c: In function `XS_Mozilla__LDAP__API_ldap_url_search_st':
API.c:3023: `na' undeclared (first use in this function)
make: *** [API.o] Error 1


What might I be doing wrong? Should I be able to compile Perldap 1.4 against this version of the C SDK? If not, is there a specific version that I need and where is my best chance to get it?
My real problem is that I need to mimic the environment of one server that is successfully running Perldap 1.4, but I get the feeling they compiled it on another box and moved it over, as there is no trace of the C SDK anywhere on that box. Otherwise my job would be easy. ;-) I've tried copying over the files that I believe are related from the production box to my test box, but I can't seem to get everything right, and there are multiple versions of several related libraries which only enhances my confusion.
In any case, if anyone can point out what I might do to resolve my current problem with compiling Perldap, it would be most appreciated. My end goal is to get a proof of concept down that I can successfully upgrade from Perl 5.004 to Perl 5.6.1 so I can actually use some other worthwhile modules and not upset our production scripts which still use Perldap.
Thanks for any insight you can provide.


-Ian

Rich Megginson wrote:

Ian Zapczynski wrote:

Hello all,

After working with Perldap 1.2 extensively several years ago, a new project based on that old code has arisen, which leads me to a point of needing to get Perldap 1.4 installed on a Solaris 9 box to match a production box which contains the same environment. If I had control, I would probably just use Graham Barr's Net::LDAP to save me the hassle, but I do not. In any case, enough of my life story. :) The real questions I have are:

1) Is the Mozilla Directory SDK that I read about at http://www.mozilla.org/directory/csdk.html still being maintained? Should I expect the code in CVS to work?
2) Are there still active users using Perldap 1.4 and the Directory SDK on Solaris out there, or is this all a thing of the past?



Yes and yes.



Sorry if my questions seem a bit silly and obvious, but throughout my research on this project I've found mostly dead links, including the one for this list's archives!
Anyway, so far I've tried compiling NSS 3.3.1 (per http://mozilla.org/projects/security/pki/nss/buildnss_331.html#build) on the Solaris 9 box with gcc 3.80, but I get no farther than messages like:


make: Fatal error in reader: ../coreconf/arch.mk, line 43: Unexpected end of line seen



I don't think gcc is supported on Solaris. You should really try to get your hands on a copy of Forte 6.2 (or whatever Sun is calling it these days).



Anyway, if anyone can provide any insight to any of my questions or good links on how to get Perldap 1.4 and any required SDK working on Solaris 9, it would be most appreciated. I know I could manually copy over the working Perldap/SDK files on our production box, but 1) I won't have access to that server for a while and 2) I was hoping to do this in a cleaner fashion.



Grab a copy of the latest demo version of Netscape Directory Server 6.11 from enterprise.netscape.com. That includes ldap sdk and perldap. You can just extract the files you need and ignore the rest. Not pretty, but effective.






_______________________________________________ mozilla-directory mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-directory


_______________________________________________ mozilla-directory mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-directory

Reply via email to