Thunderbird & OpenLDAP (Was: Re: HEADS UP: xorg 7.2 ready for testing)

Joe Marcus Clarke marcus at marcuscom.com
Mon May 14 01:05:45 UTC 2007


On Mon, 2007-05-14 at 01:34 +0100, Tim Bishop wrote:
> On Sun, May 13, 2007 at 07:05:05PM -0400, Howard Goldstein wrote:
> > Tim Bishop wrote:
> > > The problem is identical with all three. I have openldap installed:
> > >
> > > openldap-client-2.3.35
> > >
> > > And it's the owner of /usr/local/include/lber.h.
> > >
> > > I can't see why this problem has emerged now - these apps were already
> > > sharing /usr/local. Maybe it's unrelated to the xorg upgrade?
> > 
> > It seems to be unrelated. There's a PR for this.  A workaround is this
> 
> Ah, well spotted! I hadn't noticed that PR.
> 
> On closer inspection it's fairly obvious where the problem is. The
> included lber-int.h includes "lber.h". This isn't in the current
> directory and looking at the compiler options we can see how it finds
> the system installed version rather than the local version first:
> 
> cc ... -I/usr/local/include ... -I../../../ldap/include ...
> 
> But I'm not sure where to start looking in this build system to fix it ;-)

This is easy.  Just set CPPFLAGS to:

CPPFLAGS+=	-I${LOCALBASE}/include/nss -I${LOCALBASE}/include/nss/nss

In www/mozilla/Makefile.common.  This will be one of the post-merge
housekeeping things we take care of.

Joe

-- 
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20070514/0db86775/attachment.pgp


More information about the freebsd-ports mailing list