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
/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/core_init.h:5,
                 from core.h:49,
                 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
/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/error.h:11,
                 from core.h:50,
                 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
/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/string_compat.h:60,
                 from core.h:54,
                 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
/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/vasprintf.h:8,
                 from core.h:57,
                 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
/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/data_source.h:5,
                 from core.h:78,
                 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
/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/byteswap.h:11,
                 from /home/prushik/Sandbox/agar-
1.4.1/include/agar/core/load_integral.h:33,
                 from core.h:79,
                 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
/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/load_integral.h:35,
                 from core.h:79,
                 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
/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/load_real.h:12,
                 from core.h:80,
                 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
/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/load_string.h:8,
                 from core.h:81,
                 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
/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/load_version.h:5,
                 from core.h:82,
                 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
/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/version.h:5,
                 from core.h:84,
                 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
/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/timeout.h:3,
                 from /home/prushik/Sandbox/agar-
1.4.1/include/agar/core/object.h:17,
                 from core.h:85,
                 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
/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/class.h:3,
                 from /home/prushik/Sandbox/agar-
1.4.1/include/agar/core/object.h:18,
                 from core.h:85,
                 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
/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/object.h:20,
                 from core.h:85,
                 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
/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/variable.h:3,
                 from /home/prushik/Sandbox/agar-
1.4.1/include/agar/core/object.h:281,
                 from core.h:85,
                 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
/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/event.h:3,
                 from /home/prushik/Sandbox/agar-
1.4.1/include/agar/core/object.h:282,
                 from core.h:85,
                 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
/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/prop.h:6,
                 from /home/prushik/Sandbox/agar-
1.4.1/include/agar/core/object.h:283,
                 from core.h:85,
                 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
/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/list.h:8,
                 from core.h:86,
                 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
/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/tree.h:39,
                 from core.h:87,
                 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
/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/tbl.h:8,
                 from core.h:88,
                 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
/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/cpuinfo.h:5,
                 from core.h:89,
                 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
/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/file.h:5,
                 from core.h:90,
                 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
/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/dir.h:5,
                 from core.h:91,
                 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
/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/dso.h:5,
                 from core.h:92,
                 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
/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/time.h:3,
                 from core.h:93,
                 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
/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/db.h:5,
                 from core.h:94,
                 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
/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/dbobject.h:5,
                 from core.h:95,
                 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
/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/exec.h:5,
                 from core.h:96,
                 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
/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]
make[2]: *** [variable.lo] Error 1
make[2]: Leaving directory `/home/prushik/Sandbox/agar-1.4.1/core'
make: failure
make[1]: *** [_lib_shobjs] Error 1
make[1]: Leaving directory `/home/prushik/Sandbox/agar-1.4.1/core'
make: *** [all-subdir] Error 1





Agar trunk (from SVN) builds and installs fine with no problems.
however, linking applications with it does not work well, configure scripts 
report that agar does not work
checking for Agar (http://libagar.org/)...yes (1.5.0)
checking whether Agar works...no
* 
* This software requires agar installed on your system.
* 
configure failed!

Manually compiling and linking is successful, as long as I use agar-config and 
NOT agar-core-config. I also need to link with libdl.
"gcc -o hello hello.c -I/usr/local/include/agar/ `agar-core-config --libs --
cflags` -ldl"
fails with the following messages:

/tmp/cchMYn49.o:hello.c:function AG_EventLoop: error: undefined reference to 
'agDriverSw'
/tmp/cchMYn49.o:hello.c:function AG_EventLoop: error: undefined reference to 
'agDriverSw'
/tmp/cchMYn49.o:hello.c:function AG_EventLoop: error: undefined reference to 
'agDriverSw'
/tmp/cchMYn49.o:hello.c:function AG_EventLoop: error: undefined reference to 
'agDriverOps'
/tmp/cchMYn49.o:hello.c:function AG_EventLoop: error: undefined reference to 
'agDriverSw'
/tmp/cchMYn49.o:hello.c:function main: error: undefined reference to 
'AG_InitGraphics'
/tmp/cchMYn49.o:hello.c:function main: error: undefined reference to 
'AG_WindowNew'
/tmp/cchMYn49.o:hello.c:function main: error: undefined reference to 
'AG_LabelNew'
/tmp/cchMYn49.o:hello.c:function main: error: undefined reference to 
'AG_WindowShow'
collect2: ld returned 1 exit status


and "gcc -o hello hello.c -I/usr/local/include/agar/ `agar-config --libs --
cflags` -ldl"
compiles and links successfully, however, the resulting executable fails to run 
with the following message:

../hello: symbol lookup error: /usr/local/lib/libag_gui.so.5: undefined symbol: 
jpeg_resync_to_restart



Any idea what I can do to get agar working?

_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html

Reply via email to