Philip <prushik@...> writes: > > I stumbled upon Agar yesterday, and from the description and screenshots > I think > it is exactly what I have been looking for. However, so far I have > been unable > to do anything with it. > Agar 1.4.1 won't build (linux x86_64/gcc 4.6.3), make depend runs fine, > but make > all fails with the following errors: > > In file included from core.h:12:0, > from variable.c:26: > /home/prushik/Sandbox/agar-1.4.1/include/agar/core/types.h:103:16: warning: > useless storage class specifier in empty declaration [enabled by default] > In file included from /home/prushik/Sandbox/agar- > 1.4.1/include/agar/core/begin.h:8:0, > from /home/prushik/Sandbox/agar- > 1.4.1/include/agar/core/threads.h:28, > from core.h:20, > from variable.c:26: > /home/prushik/Sandbox/agar-1.4.1/include/agar/core/types.h:103:16: error: > redefinition of 'struct ag_fake_int64' > /home/prushik/Sandbox/agar-1.4.1/include/agar/core/types.h:103:16: note: > originally defined here > > .... > > Any idea what I can do to get agar working?
The problem is the configure file hardcodes -Wall -Werror into CFLAGS when running autodetection tests, which is exactly the wrong thing to do. As a result, autodetection of native 64-bit support fails (even though the compiler supports it), and the fallback code is invalid. The following snippet works on Debian and Ubuntu when run in the top-level source directory. sed -i -e 's,-Werror,,' ./configure ../configure --prefix=/usr _______________________________________________ Agar mailing list [email protected] http://libagar.org/lists.html
