Ryan Braun [ADS] wrote: > I just got finished building some lenny packages for fds 1.2.0 and I am having > some issues getting the DS running properly. Using my buildscripts (which > create a working 1.2.0 and 1.1.3 for etch, incrementing lenny package names > as required), the build works, but when I try to create an instance, I get > an error about Netscape Portable Runtime failing to load a library. > > lenny:/opt/dirsrv/sbin# ./setup-ds.pl > > ============================================================================== > This program will set up the Fedora Directory Server. > SNIP > Directory Manager DN [cn=Directory Manager]: > Password: > Password (confirm): > Could not import LDIF file '/tmp/ldifUjjWfx.ldif'. Error: 256. Output: > importing data ... > [14/Apr/2009:12:58:17 -0400] - SSL alert: Security Initialization: NSS > initialization failed (Netscape Portable Runtime error -5977 - Failure to load > dynamic library.): certdir: /etc/dirsrv/slapd-lenny > [14/Apr/2009:12:58:17 -0400] - ERROR: NSS Initialization Failed. > > Error: Could not create directory server instance 'lenny'. > Exiting . . . > Log file is '/tmp/setupuyjm1M.log' > > I first noticed an issue when building mozldap, this came up > > gcc -shared -Wl,-soname -Wl,libssldap60.so -o libssldap60.so > ./clientinit.o ./ldapsinit.o ./errormap.o -L../../../../../dist/lib -lldap60 > -lprldap60 -L/usr/lib/ -lssl3 -lnss3 -lsoftokn3 -L/usr/lib/ -lplc4 -lplds4 - > lnspr4 > /usr/bin/ld: cannot find -lsoftokn3 You shouldn't need to link this in at all. http://www.mozilla.org/projects/security/pki/nss/nss-3.4/nss-3.4-release-notes.html rob