BPI-SINOVOIP / BPI-R2PRO-BSP-5.10.x

Supports Banana Pi BPI-R2PRO-BSP
15 stars 11 forks source link

missing binary operator before token "(" error #4

Open im-kuro opened 1 year ago

im-kuro commented 1 year ago

As I've been working to build custom images i keep running into this error.

In file included from /usr/include/signal.h:328,
                 from ./signal.h:52,
                 from c-stack.c:49:
c-stack.c:55:26: error: missing binary operator before token "("
   55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
        |                                             ^~~~~~~~

this is calling on this code block

#include <signal.h>
#if ! HAVE_STACK_T && ! defined stack_t
typedef struct sigaltstack stack_t;
#endif
#ifndef SIGSTKSZ
# define SIGSTKSZ 16384
#elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384 
/* libsigsegv 2.6 through 2.8 have a bug where some architectures use
   more than the Linux default of an 8k alternate stack when deciding
   if a fault was caused by stack overflow.  */
# undef SIGSTKSZ
# define SIGSTKSZ 16384
#endif
zheng2min commented 1 year ago

cd tools/m4/patches wget https://raw.githubusercontent.com/keyfour/openwrt/2722d51c5cf6a296b8ecf7ae09e46690403a6c3d/tools/m4/patches/011-fix-sigstksz.patch