Install problem

David Shaw dshaw@jabberwocky.com
Wed May 8 17:04:02 2002


On Wed, May 08, 2002 at 10:39:29AM -0400, Nalin Dahyabhai wrote:
> On Wed, May 08, 2002 at 09:53:10AM -0400, David Shaw wrote:
> > On Wed, May 08, 2002 at 09:19:50AM -0400, Gerald Waugh wrote:
> > > Hi, my first post - new user.
> > > I am trying to install gnupg-1.0.7 on a RH 6.2 system.
> > > make barfs In file included from gpgkeys_ldap
> > > /usr/include/ldap.h:302: parse error before `BerElement'
> > > Then there are many of usr/include/ldap errors
> > > And, of course can not compile pgkeys_ldap.c
> > > Do I need a later version of ldap?
> > 
> > Yes.  The OpenLDAP that comes with RH 6.2 is pretty old.  If you don't
> > need LDAP keyserver upport, you can also skip it by specifying
> > --disable-ldap when you run ./configure.
> 
> It appears to compile correctly if you add
> #include <lber.h>
> just before the line which reads
> #include <ldap.h>
> in keyserver/gpgkeys_ldap.c before compiling.
> 
> It'd probably be best to just include lber.h if it's found, which would
> probably require a change to configure.ac.  I don't have a patch handy,
> but if it's useful, I can make one.

That will work as well (GnuPG 1.0.8 has something similar), but I do
not want to make autoconf checks for lber.h as there are other ldap
libraries that could be used here, and I also did not want to
encourage people to use the old OpenLDAP.  If this becomes a problem
(it seems to be getting there), then I could reconsider.

David

-- 
   David Shaw  |  dshaw@jabberwocky.com  |  WWW http://www.jabberwocky.com/
+---------------------------------------------------------------------------+
   "There are two major products that come out of Berkeley: LSD and UNIX.
      We don't believe this to be a coincidence." - Jeremy S. Anderson