Hi All, This is with reference to building mozill ldap in Solaris 9. I tried in 9 only. FIrst of all I would like to pay thanx to all especially to Rich, Anton and Nelson . There support are very helpful. I have sucessfully build ldap c-sdk. The versions that I have used are :
1. NSS 3.12.5 2. NSPR 4.8.4 3. mozldap 6.0.6 My LD_LIBRARY_PATH is : /usr/local/lib/sparcv9:/usr/local/lib:/usr/sfw/lib/sparcv9:/usr/sfw/ lib:/opt/sfw/lib:/usr/lib/sparcv9:/usr/lib:. and PATH is : /usr/ucb:/usr/sfw/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/ usr/ccs/bin:/dev:. Be sure both should be correct and mentioned above. I used fallowing command to buid :- NSS: ------------------------ /usr/local/bin/make nss_build_all NS_USE_GCC=1 NO_MDUPDATE=1 USE_64=1 NSDISTMODE=copy ------------------------ NSPR: ------------------------ CXXFLAGS=-m64 CFLAGS=-m64 CC=gcc CXX=g++ ./configure --enable-64bit /usr/local/bin/make export USE_64=1 NS_USE_GCC=1 ------------------------ MOZLDAP: ------------------------ CXXFLAGS=-m64 CFLAGS=-m64 CC=gcc CXX=g++ ./configure --with-nss -- enable-64bit /usr/local/bin/make USE_64=1 NS_USE_GCC=1 ------------------------ Issue that I found are 1. configure: error: installation or configuration problem: C++ compiler cannot create executables. Solution : CXXFLAGS=-m64 CFLAGS=-m64 CC=gcc CXX=g++ 2. SunOS5.9_DBG.OBJ/nsinstall: Command not found Solution : grep for nsinstall.c in ur build directory. Go inside respective directory and do make for all of them. I dont know which nsinstall compiler is going to take. SO compiled all. 3. ld: fatal: file *.so: unknown file type ld: fatal: File processing errors. No output written to *.so Solution : * here means u will get it many times for many files. For I checked all the respective *.a and *.o with nm and ldd. I advise u too check that. After that you have to change you compiler command manually (I did like that) or search for respective make files to change that respective *.so file creation command. gcc -m64 -shared -Wl,-soname -lc -o *.so ./*.o ./*.o ............ change * according to what compiler says. Basically you have just change upto *.o, rest you will copy Only make sure that LIB paths are corerct. Try building. I am build like that. Regards, Saurabh Gupta Symphony Services, Bangalore India. _______________________________________________ dev-tech-ldap mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-ldap
