users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't compile GNU Prolog 1.4.1 with gcc 4.4.2?


From: Daniel Diaz
Subject: Re: can't compile GNU Prolog 1.4.1 with gcc 4.4.2?
Date: Wed, 29 Aug 2012 09:51:08 +0200

Hi,

I'm currently not at my office and I won't be able to dig into this before a while. However, from what I can see, it seems the struct sigcontext is used (and it is not defined). I don't know fedora but I expect the more standard function sigaction is supported (so sigcontext should not be used). To confirm this, please check the output of ./configure looking for the line:

checking for a working sigaction... yes / no

If you obtain 'no' this explains why sigcontext is used and then you can try to force sigaction adding the following lines to EnginePl/stacks_sigsegv.c just BEFORE the #include "engine_pl.h"

#include "gp_config.h"
#define HAVE_WORKING_SIGACTION

Then try a:

make clean
make

If it is not better, we can try to force sigcontext to work well. Remove the (above) added lines. From memory you can try to 
#include <asm/sigcontext.h>
just AFTER #include "engine_pl.h".

then

make clean
make

Thank you for keeping me informed

Daniel


Le 27 août 2012 à 18:01, Tigran Aivazian a écrit :

Hello,

I tried compiling the latest sources of GNU Prolog (1.4.1) on my Fedora Core 12 Linux machine (32bit) with gcc 4.4.2 and it failed because of "static static":

gplc -c -C '-O3 -fomit-frame-pointer' stacks_sigsegv.c
stacks_sigsegv.c:409: error: duplicate ‘static’
stacks_sigsegv.c:410: warning: ‘struct sigcontext’ declared inside parameter list
stacks_sigsegv.c:410: warning: its scope is only this definition or declaration, which is probably not what you want
stacks_sigsegv.c:410: error: parameter 2 (‘scp’) has incomplete type
compilation failed
make[1]: *** [stacks_sigsegv.o] Error 1
make[1]: Leaving directory `/usr/local/src/gprolog-1.4.1/src/EnginePl'
make: *** [all] Error 1

Any ideas?

Kind regards,
Tigran

--
Ce message a été vérifié par MailScanner pour des virus ou des polluriels et rien de suspect n'a été trouvé. _______________________________________________
Users-prolog mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/users-prolog


--
Ce message a été vérifié par MailScanner pour des virus ou des polluriels et rien de suspect n'a été trouvé.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]