Re: problems building mozldap-6.0.3 on White Box Enterprise Linux release 3.0 with kernel version 2.4.21-27.EL

Rich Megginson <[email protected]>
Newsgroups gmane.comp.mozilla.devel.directory
Message-ID <[email protected]>
Mark Wood-Patrick wrote:
> Is there a Mozilla Source Code tarballs which I can use to get all the 
> needed source to build LDAP or do I need to use CVS?

You don't need to use CVS.  Each component has source tarballs.
nspr - 
ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.6.6/src/nspr-4.6.6.tar.gz
nss - 
ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_11_5_RTM/src/nss-3.11.5.tar.gz

The build instructions assume all of the source is under the same 
directory, mozilla.  Here's what you should do, assuming you already 
have the ldap c sdk sources with a directory structure like this:
mozldap-6.0.3/mozilla/directory/c-sdk

Download and unpack the nspr source.  This will create a directory like 
this:
nspr-4.6.6/mozilla/nsprpub
move the nsprpub directory under mozldap-6.0.3/mozilla

Download and unpack the nss source.  This will create directories like this:
nss-3.11.5/mozilla/security
nss-3.11.5/mozilla/dbm

move the security and dbm directories under mozldap-6.0.3/mozilla.  You 
should now have something like this:
mozldap-6.0.3/mozilla
	directory/
	security/
	dbm/
	nsprpub/

Then cd security/nss and do the make nss_build_all as described on the 
wiki page 
http://wiki.mozilla.org/LDAP_C_SDK#Checking_Out_the_Source_Code and then 
follow the rest of the steps.


> Rich Megginson wrote:
>> Mark Wood-Patrick wrote:
>>> Thanks for the info I'm using the mozilla ftp site 
>>> ftp://ftp.mozilla.org/pub/mozilla.org/ I could not find any docs on 
>>> the dependancies/build for LDAP where should I look? I did not 
>>> specify any configure args (it was not clear to me I needed any)
>>
>> http://wiki.mozilla.org/LDAP_C_SDK#Checking_Out_the_Source_Code
>>
>> nss and nspr are required if you want to use any SSL/TLS.  I believe 
>> nspr is now required for IPv6 support.  I don't think there is any way 
>> presently to build without nspr.  You'd have to hack some code to do 
>> that, probably not very much.
>>
>>>
>>> Rich Megginson wrote:
>>>> Mark Wood-Patrick wrote:
>>>>> I'm trying to build mozldap-6.0.3 on White Box Enterprise Linux 
>>>>> release 3.0 with kernel version 2.4.21-27.EL and I'm getting the 
>>>>> following errors, does anyone know what I'm doing wrong
>>>>>
>>>>>     make[3]: Leaving directory 
>>>>> `/local/src/ldap/mozldap-6.0.3/mozilla/directory/c-sdk/ldap/libraries/libldap' 
>>>>>
>>>>> cd libprldap; make BUILD_DEBUG=full export
>>>>> make[3]: Entering directory 
>>>>> `/local/src/ldap/mozldap-6.0.3/mozilla/directory/c-sdk/ldap/libraries/libprldap' 
>>>>>
>>>>> gcc -o dappr-dns.o -c     -pipe -ansi -Wall -pthread -g -fno-inline 
>>>>> -fPIC  -DDEBUG_root   -DDEBUG=1 -DXP_UNIX=1 -D_POSIX_SOURCE=1 
>>>>> -D_BSD_SOURCE=1 -D_SVID_SOURCE=1 -D_LARGEFILE64_SOURCE=1 
>>>>>  -DHAVE_FCNTL_FILE_LOCKING=1 -DLINUX=1 -Dlinux=1 -DHAVE_LCHOWN=1 
>>>>> -DHAVE_STRERROR=1  -D_REENTRANT=1  -DFORCE_PR_LOG -D_PR_PTHREADS 
>>>>> -UHAVE_CVAR_BUILT_ON_SEM -DUSE_WAITPID  -DNEEDPROTOS -DLDAP_DEBUG  
>>>>> -DNET_SSL  -DNO_LIBLCACHE -DLDAP_REFERRALS     -DNS_DOMESTIC   
>>>>> -DLINUX2_0 -DLINUX1_2 -DLINUX2_1 -I../../../../../dist/public/ldap 
>>>>> -I../../../ldap/include  -I../../../../../dist/./include   
>>>>> ldappr-dns.c
>>>>> In file included from ldappr-dns.c:44:
>>>>> ldappr-int.h:45:18: nspr.h: No such file or directory
>>>>> In file included from ldappr-int.h:46,
>>>>>                  from ldappr-dns.c:44:
>>>>> ../../../../../dist/public/ldap/ldappr.h:41:18: nspr.h: No such 
>>>>> file or directory
>>>>
>>>> You are missing nspr.h, which is in the nspr package.
>>>>
>>>> The following packages are required to build mozldap: nspr, nss, 
>>>> svrcore (optional), cyrus sasl (2.1 or later)
>>>>
>>>> Where did you get the source?  ftp site or cvs?  Which build 
>>>> instructions are you following?  What arguments did you use with 
>>>> configure?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.