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

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



On Wed, 25 Sep 2002, Andrew Diederich wrote:

> crle _says_ I ran it with this command:
> Command line:
>   crle -c /var/ld/ld.config -l
> /usr/lib:/usr/local/BerkeleyDB.4.0/lib:/usr/local/ssl/lib:/usr/local/lib:/us
> r/lib/sasl2 -s /usr/lib/secure
>
> but I distinctly remember doing many -l flags, and then being surprised when
> it concatenated them together.
>
> I re-did my little set file with multiple -L and -R flags, and I'm trying a
> compile now.  I had found that with -I I needed to use a -I for each dir,
> but it seemed to work ok before with a single.  That, and crle really seemed
> to want to separate the paths with a ":".
>

Here is what man page says.  You need to use multiple -l's.

     -l dir
           This option specifies a new default  search  directory
           dir   for  standard  ELF  or  AOUT  objects.  Multiple
           occurrences of this option are permitted. The type  of
           object  applicable  to  the search is specified by the
           preceding -t option, or defaults to ELF.

Note that my build suggestion should work without crle.

> Just curious -- why don't you do a "make depend"?  I don't remember which
> way the documentation specified, but after ./configure it tells you to do
> that first.
>

You can run make depend; this is mostly helpful for developers.

-Igor

> --
> Andrew Diederich
>
> -----Original Message-----
> From: Igor Brezac [mailto:igor@ipass.net]
> Sent: Wednesday, September 25, 2002 13:12
> To: Andrew Diederich
> Cc: openLDAP (E-mail)
> Subject: RE: FW: Follow up: 2.1.4, solaris 8, fails to start
>
>
>
>
> On Wed, 25 Sep 2002, Andrew Diederich wrote:
>
> > 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'
> >
>
> You cannot use a ':' separated list of directories in -I, -L and -R
> params, at least this is the case with gcc 2.95.x.  I suspect that you
> have multiple installations of berkeley db on your system and somehow the
> compiler is mixing the two.
>
> So try (you will need to adjust /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
>
> How did you run crle command, I think you made that same mistake as you
> did with CPPFLAGS and LDFLAGS.  You need to pass mutiple -l params to
> crle.  Also take a look at -i param.
>
> -Igor
>

-- 
Igor