[Pkg-openldap-devel] Bug#579221: Bug#579221: Bug#579221: openldap: FTBFS on kfreebsd-*: error: missing binary operator before token "long"

Quanah Gibson-Mount quanah at zimbra.com
Tue May 25 18:36:50 UTC 2010


--On Sunday, May 23, 2010 10:39 PM +0200 Julien Cristau 
<jcristau at debian.org> wrote:

> sys/ioctl.h should be enough, and it sounds like TIOCNOTTY *is* defined
> in your build.  A quick test on the kfreebsd-amd64 porter box shows that
> TIOCNOTTY expands as:
> ((unsigned long) ((0x20000000) | (((0) & 0x1fff) << 16) | ((('t')) << 8)
> | ((113))))
>
> from <sys/ioccom.h>:
># define _IOC(inout,group,num,len)       ((unsigned long) \
>         ((inout) | (((len) & IOCPARM_MASK) << 16) | ((group) << 8) |
> (num)))
># define _IO(g,n)        _IOC(IOC_VOID,  (g), (n), 0)
>
> Testing for defined(TIOCNOTTY) instead would probably fix it, I think?

Noted in the upstream ITS:

<http://www.openldap.org/its/index.cgi/?findid=6534>

--Quanah

--

Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration





More information about the Pkg-openldap-devel mailing list