[mercury-users] dl.m:218: undefined type, found `Word'

Fergus Henderson fjh at cs.mu.OZ.AU
Sun Apr 8 17:10:46 AEST 2001


On 07-Apr-2001, Terrence Brannon <princepawn at earthlink.net> wrote:
> 
> Hi, I am attempting to compile Mercury 0.10.1 on an iBook running Mac
> OS X. So far, I have had good luck telling the Mercury build system
> that I am on a Linux Power PC Box. However, when I came up to bat with
> dl.m, I must lament that my has appeared to run out. 
> 
> Could anyone tell me why I might be getting this problem and how to
> fix it? Thanks.
> 
> cd browser && PATH=../scripts:../util:$PATH MMAKE_VPATH=. MMAKE_DIR=../scripts ../scripts/mmake 
> MERCURY_INT_DIR=../library MERCURY_ALL_C_INCL_DIRS=" -I../trace -I../library -I../runtime -I../boehm_gc -I../boehm_gc/include " ../scripts/mgnuc --grade none.gc             -c mdb.dl.c -o mdb.dl.o
> dl.m:218: undefined type, found `Word'
> dl.m:230: undefined type, found `Word'

I'm not sure why this only shows up with Mac OS X.
But the fix is simple -- see the patch below.
I'll commit this patch into our CVS repository.
Thanks for reporting it.

Index: runtime/mercury_heap.h
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_heap.h,v
retrieving revision 1.20
diff -u -d -r1.20 mercury_heap.h
--- runtime/mercury_heap.h	2001/02/21 05:53:43	1.20
+++ runtime/mercury_heap.h	2001/04/08 07:03:20
@@ -179,14 +179,14 @@
 			proclabel, (type))
 #define	MR_incr_hp_type(dest, typename)					\
 		do {							\
-			Word	tmp;					\
+			MR_Word	tmp;					\
 			MR_tag_incr_hp(tmp, MR_mktag(0),		\
 				(MR_bytes_to_words(sizeof(typename))));	\
 			(dest) = (typename *) tmp;			\
 		} while (0)
 #define	MR_incr_hp_type_msg(dest, typename, proclabel, type)		\
 		do {							\
-			Word	tmp;					\
+			MR_Word	tmp;					\
 			MR_tag_incr_hp_msg(tmp, MR_mktag(0),		\
 				(MR_bytes_to_words(sizeof(typename))),	\
 				proclabel, (type));			\
-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list