From: Mij <mi...@ss...> - 2010-03-31 15:10:48
|
Hi Johan, Since that function's signature is sane, and that error doesn't occur in other versions of gcc, I infer that is a compiler snap. If you can't change compiler (as I guess, on your hardware), you can try to: 1) change the definition on that line in sshguard_fw.h (88) and command.c (62) with int fw_block_list(const char (*restrict addresses)[], int addrkind, const int service_codes[]) { or int fw_block_list(const char *restrict *addresses, int addrkind, const int service_codes[]) { 2) remove the "restrict" qualifier from the same locations, and recompile the entire package (ie, make clean all) On Mar 30, 2010, at 16:12 , Johan Bergström wrote: > Hey, > > It looks like sshguard 1.5 beta 1 trough rc1 fails to build on one of my soekris boxes. Output from configure and forward (as well as uname/gcc info) below. > > 1.4 is currently running on this box with the same configure options. > > I did some minor research and found this: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11942 , feels very unlikely - but it's better to get it out there.. > > Cheers, > Johan Bergström > > > [..] > Making all in fwalls > gcc -DHAVE_CONFIG_H -I. -I../../src -I. -I.. -Wall -std=c99 -D_POSIX_C_SOURCE=200112L -g -O2 -MT command.o -MD -MP -MF .deps/command.Tpo -c -o command.o command.c > In file included from command.c:35: > ../sshguard_fw.h:88: error: invalid use of `restrict' > command.c:62: error: invalid use of `restrict' > *** Error code 1 |