I need to fix a timeout bug in LDAP and have attempted to build the LDAP C
SDK on Solaris 8 using the instructions found at
http://www.mozilla.org/directory/csdk.html

--

Here's my build script:

#!/bin/sh

###########################
# Erase previous snapshot #
###########################

cd /export/home/jeffv/ldap-c-sdk/
rm -fr mozilla

###############
# Get sources #
###############

CVSROOT=:pserver:[EMAIL PROTECTED]:/cvsroot
export CVSROOT

cvs co -P DirectorySDKSourceC

cvs co -r NSPR_4_2_2_RELEASE mozilla/nsprpub
cvs co -r NSS_3_7_7_RTM      mozilla/security/coreconf mozilla/security/nss
cvs co -r DBM_1_61_RTM       mozilla/dbm mozilla/security/dbm

######################
# Build NSPR and NSS #
######################

cd /export/home/jeffv/ldap-c-sdk/mozilla/security/nss
gmake nss_build_all

##################
# Build LDAP SDK #
##################

CC=gcc
export CC

CXX=gcc
export CXX

cd /export/home/jeffv/ldap-c-sdk/mozilla/directory/c-sdk
./configure --with-nss --with-native-threads
gmake

--

Here's the result:

gcc -o
ldappr-dns.o -c     -Wall -g -fPIC  -DDEBUG_jeffv -DDEBUG=1 -DXP_UNIX=1 -DSV
R4=1 -DSYSV=1 -D__svr4=1 -D__svr4__=1 -DSOLARIS=1 -DHAVE_FCNTL_FILE_LOCKING=
1 -D_PR_HAVE_OFF64_T=1 -D_LARGEFILE64_SOURCE=1 -DHAVE_LCHOWN=1 -DHAVE_STRERR
OR=1 -D_PR_GLOBAL_THREADS_ONLY=1 -D_REENTRANT=1 -DHAVE_POINTER_LOCALTIME_R=1
  -DFORCE_PR_LOG -DUSE_WAITPID -DNEEDPROTOS -DLDAP_DEBUG   -DNET_SSL  -DNO_L
IBLCACHE -DLDAP_REFERRALS     -DNS_DOMESTIC  -I../../../../../dist/public/ld
ap -I../../../ldap/include -I../../../../../dist/./include -I../../../../../
dist/include/nspr -I../../../../../dist/SunOS5.8_DBG.OBJ/include
ldappr-dns.c
In file included from ldappr-dns.c:44:
ldappr-int.h:45:18: nspr.h: No such file or directory

I found a solution for the same thing in Linux and imitated that by copying
all the .h files from the directory that contains nspr.h over to the
.../dist/include/nspr directory and re-gmake-ing, but that just led to new
compile time problems not described here.

I suspect that continuing to hack this beyond what anyone else appears to
have done is not the correct way to go. Any help would be greatly
appreciated; we have a customer awaiting a bug fix in the LDAP client
timeout mechanism.

--

- Jeff V


_______________________________________________
mozilla-directory mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-directory

Reply via email to