[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: FW: Follow up: 2.1.4, solaris 8, fails to start



Ok, here is what I've tried now:

openldap 2.1.5
./configure --enable-ldbm -with-ldbm-api=berkeley
make depend;make;make test

CPPFLAGS='-I/usr/local/BerkeleyDB.4.0/include -I/usr/local/ssl/include'
LDFLAGS='-L/usr/local/BerkeleyDB.4.0/lib:/usr/local/ssl/lib:/usr/local/lib:/
usr/lib/sasl2
-R/usr/local/BerkeleyDB.4.0/lib:/usr/local/ssl/lib:/usr/local/lib:/usr/lib/s
asl2'
LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.0/lib
LD_RUN_FLAGS='-L/usr/local/BerkeleyDB.4.0/lib:/usr/local/ssl/lib:/usr/local/
lib:/usr/lib/sasl2
-R/usr/local/BerkeleyDB.4.0/lib:/usr/local/ssl/lib:/usr/local/lib:/usr/lib/s
asl2'

I tried without LD_LIBRARY_PATH, but then ./configure can't find my Berkeley
db.  I'm not sure why, since crle knows where it is:
  Default Library Path (ELF):
/usr/lib:/usr/local/BerkeleyDB.4.0/lib:/usr/local/ssl/lib:/usr/local/lib:/us
r/lib/sasl2

Anyway, make test fails on the second test:

>>>>> Starting test002-populate ...
running defines.sh
Cleaning up in ./test-db...
Starting slapd on TCP/IP port 9009...
Using ldapsearch to check that slapd is running...
Using ldapadd to populate the database...
ldapadd failed (68)!
>>>>> ./scripts/test002-populate failed (exit 68)
*** Error code 68
make: Fatal error: Command failed for target `test-bdb'
Current working directory /var/src/openldap-2.1.5/tests
*** Error code 1
make: Fatal error: Command failed for target `test'

I had not run "make install" on this round, yet.  I don't know if I need to
do that before, or not.

Yesterday (before specifying other info in the ./configure line) I was able
to make test through test 15.  I hadn't run make test with the 2.1.4 build,
but now when I try it, I get failure on test 1.  (By the way, I think it
assumes gnu diff -- I get 
>>>>> Starting test001-slapadd ...
running defines.sh
Datadir is ./data
Cleaning up in ./test-db...
Running slapadd to build slapd database...
Starting slapd on TCP/IP port 9009...
Using ldapsearch to retrieve all the entries...
Filtering ldapsearch results...
Filtering original ldif used to create database...
20466 Segmentation Fault - core dumped
Comparing filter output...
comparison failed - database was not created correctly
./test-db/ldapsearch.flt ./test-db/ldif.flt
diff: illegal option -- u
usage: diff [-bitw] [-c | -e | -f | -h | -n] file1 file2
       diff [-bitw] [-C number] file1 file2
       diff [-bitw] [-D string] file1 file2
       diff [-bitw] [-c | -e | -f | -h | -n] [-l] [-r] [-s] [-S name]
directory1 directory2

and I'm using /usr/bin/diff

But all that 2.1.4 stuff is probably a red herring, since I have already
done "make install" with 2.1.5 on that system.

What should I check next?  Failing at test 2 can't be a good thing.

--
Andrew Diederich


-----Original Message-----
From: Igor Brezac [mailto:igor@ipass.net]
Sent: Tuesday, September 24, 2002 17:50
To: Andrew Diederich
Subject: RE: FW: Follow up: 2.1.4, solaris 8, fails to start



I wonder how this worked.  Do you use gcc?

Try  (Are you sure that both libs and includes are in /usr/lib/sasl2?)

LDFLAGS="-L/usr/local/BerkeleyDB.4.0/lib -R/usr/local/BerkeleyDB.4.0/lib
-L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/sasl2
-R/usr/local/sasl2" \
CPPFLAGS="-I/usr/local/BerkeleyDB.4.0/include -I/usr/local/ssl/include
-I/usr/lib/sasl2" \
./configure --enable-ldbm --with-ldbm-api=berkeley
make
make test

-Igor

On Tue, 24 Sep 2002, Andrew Diederich wrote:

> Just ./configure.  I source in a file (below) so it can find things like
> BDB.  Sorry for the line breaks.
>
>
LDFLAGS="-L/usr/local/BerkeleyDB.4.0/lib:/usr/local/ssl/lib:/usr/local/lib:/
> usr/local/sasl2
>
-R/usr/local/BerkeleyDB.4.0/lib:/usr/local/ssl/lib:/usr/local/lib:/usr/local
> /sasl2"LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.0/lib; export
LD_LIBRARY_PATH
> CPPFLAGS="-I/usr/local/BerkeleyDB.4.0/include -I/usr/local/ssl/include
> -I/usr/lib/sasl2";export CPPFLAGS
>
LD_RUN_FLAGS="-L/usr/local/BerkeleyDB.4.0/lib:/usr/local/ssl/lib:/usr/local/
> lib:/usr/local/sasl2
>
-R/usr/local/BerkeleyDB.4.0/lib:/usr/local/ssl/lib:/usr/local/lib:/usr/local
> /sasl2"; export LD_RUN_FLAGS
>
> -----Original Message-----
> From: Igor Brezac [mailto:igor@ipass.net]
> Sent: Tuesday, September 24, 2002 17:22
> To: Andrew Diederich
> Subject: Re: FW: Follow up: 2.1.4, solaris 8, fails to start
>
>
>
> What was your configure line?
>
> -Igor
>
> On Tue, 24 Sep 2002, Andrew Diederich wrote:
>
> > I'll send this to you directly, too, since the openldap list can be a
> little
> > slow.
> >
> > --
> > Andrew Diederich
> >
> > -----Original Message-----
> > From: Andrew Diederich
> > Sent: Tuesday, September 24, 2002 17:14
> > To: 'openLDAP (E-mail)'
> > Subject: RE: Follow up: 2.1.4, solaris 8, fails to start
> >
> >
> > That's a great idea.  I just ran it, and ran into problems after test
> > test015-xsearch.
> >
> > I was root when I ran 'make test'.  This was on 2.1.5.
> >
> >
> > ln: cannot create ./data: File exists
> > *** Error code 2 (ignored)
> > ln: cannot create ./schema: File exists
> > *** Error code 2 (ignored)
> > run configure with --enable-ldbm
> >
> > -----Original Message-----
> > From: Igor Brezac [mailto:igor@ipass.net]
> > Sent: Tuesday, September 24, 2002 16:54
> > To: Andrew Diederich
> > Cc: openLDAP (E-mail)
> > Subject: Re: Follow up: 2.1.4, solaris 8, fails to start
> >
> >
> >
> > Does 'make test' run successfully?  I successfully installed openldap
> > 2.1.[45] and berkeley db 4.0.14 on Solaris 8 and 9.
> >
> > -Igor
> >
> > On Tue, 24 Sep 2002, Andrew Diederich wrote:
> >
> > > I installed 2.1.5, and got the same error.  Can someone point me in
the
> > > right direction?
> > >
> > > --
> > > Andrew Diederich
> > >
> > > -----Original Message-----
> > > From: Andrew Diederich [mailto:andrew@NETdelivery.com]
> > > Sent: Tuesday, September 24, 2002 14:00
> > > To: openLDAP (E-mail)
> > > Subject: 2.1.4, solaris 8, fails to start
> > >
> > >
> > > Other s/w: gcc 3.2, Berkeley db 4.0.14.
> > >
> > > Anyway, I was able to compile and install, but it won't start.  I'm
> trying
> > > to start it with /usr/local/libexec/slapd as root.  The
> /var/openldap-data
> > > dir has 700 permissions, root/other.
> > >
> > > I think the key is the "txn_checkpoint interface requires an
environment
> > > configured for the transaction subsystem" error, but in a google
search
> I
> > > didn't see ldap-specific things for this, but a few db man pages that
> > > describe it.
> > >
> > > Is this something I can fix, or do I need to move to 2.1.5?  If I move
> to
> > > 2.1.5, do I have to recompile things that have ldap support, like
> postfix
> > > and cyrus-sasl?  I am using the dynamically linked ldap libs.
> > >
> > > Thanks in advance.  My log file is below.
> > >
> > > Sep 24 12:59:43 lindstrom slapd[634]: [ID 246621 local4.debug]
bdb_open:
> > > Sleepycat Software: Berkeley DB 4.0.14: (November 18, 2001)
> > > Sep 24 12:59:43 lindstrom slapd[634]: [ID 178880 local4.debug]
> > bdb_db_init:
> > > Initializing BDB database
> > > Sep 24 12:59:43 lindstrom slapd[635]: [ID 446079 local4.debug]
> > > bdb(dc=netdelivery): /var/openldap-data/__db.001: No such file or
> > directory
> > > Sep 24 12:59:43 lindstrom slapd[635]: [ID 886196 local4.debug]
> > bdb_db_open:
> > > dbenv_open failed: No such file or directory (2)
> > > Sep 24 12:59:43 lindstrom slapd[635]: [ID 289525 local4.debug]
> > > backend_startup: bi_db_open(0) failed! (2)
> > > Sep 24 12:59:43 lindstrom slapd[635]: [ID 446079 local4.debug]
> > > bdb(dc=netdelivery): txn_checkpoint interface requires an environment
> > > configured for the transaction subsystem
> > > Sep 24 12:59:43 lindstrom slapd[635]: [ID 887577 local4.debug]
> > > bdb_db_destroy: txn_checkpoint failed: Invalid argument (22)
> > > Sep 24 12:59:43 lindstrom slapd[635]: [ID 486161 local4.debug] slapd
> > > stopped.
> > > Sep 24 12:59:43 lindstrom slapd[635]: [ID 432338 local4.debug]
> > > connections_destroy: nothing to destroy.
> > >
> > > --
> > > Andrew Diederich
> > >
> >
> >
>
>

-- 
Igor