Hi,
"Michael F. March" wrote:
> "....To get LDAP C SDK 4.0 code (you've got version 3.x), instead \
> of using the CVS date tag specified on that page, check out using\
> the "-r LDAPCSDK_40_BRANCH" switch to CVS."
Thanks. I used "LDAPCSDK_41_BRANCH" to get the source code. So far, so
good.
When I tried to compile the source on a Solaris 2.6 machine (ran
"gmake -f ldapsdk.mk build"), I got the following error:
ldappr-error.c:178: `PR_RESERVED_ERROR_5935' undeclared here (not in a function)
ldappr-error.c:178: initializer element is not constant
ldappr-error.c:178: (near initialization for `prldap_errormap[65].erm_nspr')
The file ldappr-error.c is in the directory
mozilla/directory/c-sdk/ldap/libraries/libprldap.
A search for the string "PR_RESERVED_ERROR_5935" in the whole code
base turns it up only in the ldappr-error.c file, nowhere else. Till
now, I have only been able to find out that this is being used in a
structure to map NSPR errors to OS errors. That doesn't help me any
:-(.
Where is this identifier supposed to be defined? What's going wrong?
I then tried to get the build to go further by commenting out (the
error causing) line 178 in ldappr-error.c. The build then stopped
with:
ldappr-io.c: In function `prldap_connect':
ldappr-io.c:319: warning: implicit declaration of function `PR_GetIPNodeByName'
ldappr-io.c:320: `PR_AI_DEFAULT' undeclared (first use in this function)
ldappr-io.c:320: (Each undeclared identifier is reported only once
ldappr-io.c:320: for each function it appears in.)
Phew! I don't know what to do! "PR_AI_DEFAULT" too occurs only once in
the code base.
I am not at all familiar with the LDAP C SDK source code and
unfortunately don't have the time to do so either. So please help me!
I am all at sea here!
--
Regards,
Harshdeep Singh Jawanda.