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

2007-05-20 Thread Tim Bishop
On Sun, May 20, 2007 at 03:45:32PM +0100, Tim Bishop wrote:
> On Sun, May 13, 2007 at 09:05:40PM -0400, Joe Marcus Clarke wrote:
> > 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.
> 
> Hi Joe,
> 
> Whilst this has solved the problem for seamonkey and mozilla,
> thunderbird still fails to compile:
> 
> gmake[5]: Entering directory 
> `/usr/ports/mail/thunderbird/work/mozilla/directory/c-sdk/ldap/libraries/liblber'
> cc -o decode.o -c   -I/usr/local/include/nss -I/usr/local/include/nss/nss -O2 
> -fno-strict-aliasing -pipe  -I/usr/local/include  -O2 -fno-strict-aliasing  
> -pipe  -a  nsi -Wall -pthread -O2 -fPIC  -UDEBUG  
> -DMOZILLA_CLIENT=1 -DNDEBUG=1 -DXP_UNIX=1 -DFREEBSD=1 -DHAVE_BSD_FLOCK=1
> -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -D_THREAD_SAFE=1
> -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -DUSE_WAITPID 
> -DNEEDPROTOS-DNET_SSL  -DNO_LIBLCACHE -DLDAP_REFERRALS -DNS_DOMESTIC  
> -I../../../ldap  /include
> -I/usr/ports/mail/thunderbird/work/mozilla/dist/./include   decode.c
> In file included from decode.c:52:
> lber-int.h:121: error: syntax error before "LDAP_CALLBACK"
> lber-int.h:130: error: redefinition of typedef 'Seqorset'
> /usr/local/include/lber.h:164: error: previous declaration of 'Seqorset' was 
> here
> lber-int.h:149: error: syntax error before "ldap_x_iovec"
> lber-int.h:165: error: syntax error before "BERTranslateProc"
> lber-int.h:187: error: syntax error before "LDAP_IOF_READ_CALLBACK"
> lber-int.h:198: error: syntax error before "LDAP_X_EXTIOF_READ_CALLBACK"
> lber-int.h:207: error: syntax error before "LBER_SOCKET"
> lber-int.h:216: error: syntax error before "LBER_SOCKET"
> lber-int.h:223: error: field `sb_ext_io_fns' has incomplete type
> decode.c:62: error: syntax error before "ber_get_tag"
> decode.c:69: error: syntax error before "if"
> gmake[5]: *** [decode.o] Error 1
> gmake[5]: Leaving directory 
> `/usr/ports/mail/thunderbird/work/mozilla/directory/c-sdk/ldap/libraries/liblber'
> gmake[4]: *** [export] Error 2
> gmake[4]: Leaving directory 
> `/usr/ports/mail/thunderbird/work/mozilla/directory/c-sdk/ldap/libraries'
> gmake[3]: *** [export] Error 2
> gmake[3]: Leaving directory 
> `/usr/ports/mail/thunderbird/work/mozilla/directory/c-sdk/ldap'
> gmake[2]: *** [export] Error 2
> gmake[2]: Leaving directory 
> `/usr/ports/mail/thunderbird/work/mozilla/directory/c-sdk'
> gmake[1]: *** [ldap] Error 2
> gmake[1]: Leaving directory `/usr/ports/mail/thunderbird/work/mozilla'
> gmake: *** [default] Error 2
> 
> It looks like -I/usr/local/include has crept in from somewhere else.

And if I opened my eyes I'd have noticed this in the thunderbird port's
Makefile:

CFLAGS+=-I${X11BASE}/include

For me, at least, it builds fine without it.

Tim.

-- 
Tim Bishop
http://www.bishnet.net/tim/
PGP Key: 0x5AE7D984
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


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

2007-05-20 Thread Tim Bishop
On Sun, May 13, 2007 at 09:05:40PM -0400, Joe Marcus Clarke wrote:
> 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.

Hi Joe,

Whilst this has solved the problem for seamonkey and mozilla,
thunderbird still fails to compile:

gmake[5]: Entering directory 
`/usr/ports/mail/thunderbird/work/mozilla/directory/c-sdk/ldap/libraries/liblber'
cc -o decode.o -c   -I/usr/local/include/nss -I/usr/local/include/nss/nss -O2 
-fno-strict-aliasing -pipe  -I/usr/local/include  -O2 -fno-strict-aliasing  
-pipe  -a  nsi -Wall -pthread -O2 -fPIC  -UDEBUG  
-DMOZILLA_CLIENT=1 -DNDEBUG=1 -DXP_UNIX=1 -DFREEBSD=1 -DHAVE_BSD_FLOCK=1
-DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -D_THREAD_SAFE=1
-DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -DUSE_WAITPID 
-DNEEDPROTOS-DNET_SSL  -DNO_LIBLCACHE -DLDAP_REFERRALS -DNS_DOMESTIC  
-I../../../ldap  /include
-I/usr/ports/mail/thunderbird/work/mozilla/dist/./include   decode.c
In file included from decode.c:52:
lber-int.h:121: error: syntax error before "LDAP_CALLBACK"
lber-int.h:130: error: redefinition of typedef 'Seqorset'
/usr/local/include/lber.h:164: error: previous declaration of 'Seqorset' was 
here
lber-int.h:149: error: syntax error before "ldap_x_iovec"
lber-int.h:165: error: syntax error before "BERTranslateProc"
lber-int.h:187: error: syntax error before "LDAP_IOF_READ_CALLBACK"
lber-int.h:198: error: syntax error before "LDAP_X_EXTIOF_READ_CALLBACK"
lber-int.h:207: error: syntax error before "LBER_SOCKET"
lber-int.h:216: error: syntax error before "LBER_SOCKET"
lber-int.h:223: error: field `sb_ext_io_fns' has incomplete type
decode.c:62: error: syntax error before "ber_get_tag"
decode.c:69: error: syntax error before "if"
gmake[5]: *** [decode.o] Error 1
gmake[5]: Leaving directory 
`/usr/ports/mail/thunderbird/work/mozilla/directory/c-sdk/ldap/libraries/liblber'
gmake[4]: *** [export] Error 2
gmake[4]: Leaving directory 
`/usr/ports/mail/thunderbird/work/mozilla/directory/c-sdk/ldap/libraries'
gmake[3]: *** [export] Error 2
gmake[3]: Leaving directory 
`/usr/ports/mail/thunderbird/work/mozilla/directory/c-sdk/ldap'
gmake[2]: *** [export] Error 2
gmake[2]: Leaving directory 
`/usr/ports/mail/thunderbird/work/mozilla/directory/c-sdk'
gmake[1]: *** [ldap] Error 2
gmake[1]: Leaving directory `/usr/ports/mail/thunderbird/work/mozilla'
gmake: *** [default] Error 2

It looks like -I/usr/local/include has crept in from somewhere else.

Tim.

-- 
Tim Bishop
http://www.bishnet.net/tim/
PGP Key: 0x5AE7D984
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


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

2007-05-13 Thread Joe Marcus Clarke
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


signature.asc
Description: This is a digitally signed message part


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

2007-05-13 Thread Tim Bishop
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 ;-)

Tim.

-- 
Tim Bishop
http://www.bishnet.net/tim/
PGP Key: 0x5AE7D984
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"