From: Johan B. <jo...@be...> - 2010-04-01 09:18:48
|
Hey, On 31 mar 2010, at 17.10, Mij wrote: > 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: Regarding my setup: Flashrd/flashdist is bascially stock OpenBSD 4.6 but helps you with sticking with a read only system. I can of course add an additional compiler trough ports if needed. What compiler does sshguard recoment for OpenBSD? Perhaps this should be added as a configure check? Afaik, GCC 2.95 and 3.3.5 are shipped with OpenBSD 4.6. OpenBSD 4.7 (soon released) also seems to ship these - which should imply that sshguard 1.5 won't run on OpenBSD. > > 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) I tried both of these alternatives as well as some dwelling into both but no luck. I don't think the code as is will work with OpenBSD's current compilers. Cheers, Johan > > > 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 > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Sshguard-users mailing list > Ssh...@li... > https://lists.sourceforge.net/lists/listinfo/sshguard-users |