Problem with lastest versions
I've problems both with lastest debian package of GGI, all programs die with SEGV at ggiOpen, see an example: #includeggi/ggi.h int main() { ggi_visual_t *v; ggiInit(); v=ggiOpen(NULL); ggiSetGraphMode(v,GGI_AUTO,GGI_AUTO,GGI_AUTO,GGI_AUTO,GT_AUTO); ggiClose(v); return 0; } I execute this simple program in _any_ target except of memory, and it crashes with this backtrace: #0 0x804c6c0 in ?? () #1 0x40060c55 in vfprintf () from /lib/libc.so.6 #2 0x4006812d in fprintf () from /lib/libc.so.6 #3 0x40109aaf in ggDPrintf () from /usr/lib/libgg.so.0 #4 0x40109b40 in ggLoadModule () from /usr/lib/libgg.so.0 #5 0x4001b7b8 in ggiDBGetBuffer () from /usr/lib/libggi.so.2 #6 0x4001baca in _ggiAddDL () from /usr/lib/libggi.so.2 #7 0x4001bd08 in _ggiOpenDL () from /usr/lib/libggi.so.2 #8 0x4001ca82 in ggiOpen () from /usr/lib/libggi.so.2 #9 0x4001c92e in ggiOpen () from /usr/lib/libggi.so.2 #10 0x80485e5 in main () I've tried also to compile the lastest snapshot (99/12/05), and I got errors in all places where appeared EXPORTVAR and IMPORTVAR, for example: init.c:40: syntax error before `uint32' init.c:41: syntax error before `int' init.c:42: syntax error before `void' I need GGI to continue development of GGL, I finished the new 2D engine and I can't test if it works :( -- Regards _ /_) \/ / / email: mailto:[EMAIL PROTECTED] / \ / (_/ www : http://programacion.mundivia.es/ryu [ GGL developer ] [ IRCore developer ] [ GPUL member ]
Re: Problem with lastest versions
On 1999/Dec/06, Marcus Sundberg wrote: #includeggi/ggi.h int main() int main(void) It was only an example to show you that it crashes at ggiOpen, it wasn't intended to compile with -pedantic :) (even -pedantic doesn't warn if you don't use (void). Here you have the new ANSI, -pedantic compatible and pretty printed code: #includeggi/ggi.h int main() { ggi_visual_t v; if (ggiInit() 0) { fprintf(stderr,"ggiInit failed\n"); exit(1); } v=ggiOpen(NULL); if (v == NULL){ ggiPanic("ggiOpen failed\n"); } if (ggiSetGraphMode(v, GGI_AUTO, GGI_AUTO, GGI_AUTO, GGI_AUTO, GT_AUTO)0){ ggiPanic("ggiSetGraphMode failed\n"); } ggiClose(v); return 0; } And here you have the result: Segmentation Fault (core dumped) The backtrace is the same than the other mail one. If the problem persists then, please give me the urls of the GGI-related .debs you are using, and I'll check it out at the Debian system at work. ftp://ceu.fi.udc.es/debian/dists/potato/main/binary-i386/libs/... init.c:40: syntax error before `uint32' init.c:41: syntax error before `int' init.c:42: syntax error before `void' If you use a snapshot you must take all the libraries from the same snapshot - your LibGG is too old. Oh! right, I forgot to compile libgg and libgii of this snapshot, thanks. -- "The artifficial intelligence will never exceed the natural stupidity" Santiago Souto _ /_) \/ / / email: mailto:[EMAIL PROTECTED] / \ / (_/ www : http://programacion.mundivia.es/ryu [ GGL developer ] [ IRCore developer ] [ GPUL member ]