Re: gprolog-1.2.16 doesn't compile under OS X 10.4

Lindsey Spratt <[email protected]>
Newsgroups gmane.comp.gnu.prolog.bugs
Message-ID <[email protected]>
Joachim,
I have a version that I have modified to compile with GCC 4.x. My 
modifications involve changing how the obj_chain signature is defined 
(GCC 4.x doesn't allow an identifier to be defined using both extern 
and static in the same file, as I recall). I have not extensively 
tested the change, although it seems to work fine with XGP.

The patch file is:



This includes my Mac OS X GCC 4 diffs *and* my XGP-specific diffs. It 
should work for you without using XGP.

HTH
Lindsey Spratt

On Oct 1, 2005, at 1:05 PM, Joachim Bengtsson wrote:

> Hey,
>
> The above release doesn't compile under Mac OS X 10.4.2. I tried to 
> fix it up myself in a spiffy, but it didn't work.
>
> This is where errors were reported and that I tried to fix:
>
> EnginePl/obj_chain.h, lines 79 and on:
> >>>>
> extern ObjChain *obj_chain_stop;
>
> static ObjChain obj_chain_start =
>   { OBJ_CHAIN_MAGIC_1, OBJ_CHAIN_MAGIC_2, &obj_chain_stop, OBJ_INIT };
>
> static ObjChain *obj_chain_stop = &obj_chain_start;
> <<<<<
> extern ObjChain *obj_chain_stop;
>
> static ObjChain obj_chain_start =
>   { OBJ_CHAIN_MAGIC_1, OBJ_CHAIN_MAGIC_2, &obj_chain_stop, OBJ_INIT };
>
> ObjChain *obj_chain_stop = &obj_chain_start;
>
>
> BipsPl/flag_c.c, line 80:
> >>>>>
> static int atom_error;
> <<<<<
> int atom_error;
>
> BipsPl/os_interf_c.c, line 97, 98:
> <<<<<
> int atom_read;
> int atom_write;
>
>
> uh, and more. I suppose it's related to the switch to gcc4... With the 
> above "fixes", I get multiple linker errors, which isn't entirely 
> surprising. but anyway. Just wanted to tell you about the 
> incompilability.
>
>  - nevyn_______________________________________________
> Bug-prolog mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/bug-prolog

_______________________________________________
Bug-prolog mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-prolog
diffs-to-patch-18-for-gcc4-xgp (application/octet-stream, 44.5 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.