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:
diffs-to-patch-18-for-gcc4-xgp
Description: Binary data
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
