Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Can't compile current evbarm with ipfilter



On Sun, Oct 27, 2013 at 01:25:30AM +0000, John Klos wrote:
> --- fil.d ---
> /usr/current/src/sys/external/bsd/ipf/netinet/fil.c:5263:19: error: 
> missing binary operator before token "("
> nbmkdep: compile failed.
> *** [fil.d] Error code 1

Not enough context - this seems to be from some userland stuff being build,
and some #ifdef gone wrong. The code there is:

#if !defined(_KERNEL) || (!defined(__NetBSD__) && !defined(__OpenBSD__) && \
     !defined(__FreeBSD__)) || \
    FREEBSD_LT_REV(501000) || NETBSD_LT_REV(105000000) || \
    OPENBSD_LT_REV(200006)


and seems to not have been changed in years. I can't even parse what it is
supposed to express. The ( it complains about is 

  FREEBSD_LT_REV(501000)
                ^
and FREEBSD_LT_REV should come from ip_compat.h:

#if defined(__FreeBSD_version)
..
#else
..
# define FREEBSD_LT_REV(x)      0
#endif


Please check where this does go wrong for you (for example by sprinkling a 
few #error "stopped here" around in the ifdef mess.

Martin
(Hoping it wasn't me that broke it, but I can't see how)


Home | Main Index | Thread Index | Old Index