Re: [Tuxnes-devel] Trying to build on OpenBSD 2.9
Brought to you by:
tmmm
From: Mike M. <mel...@pc...> - 2001-08-22 03:31:12
|
On Tue, 21 Aug 2001, HUYNH,SONTRI (HP-Richardson,ex1) wrote: > Hello, > I see nobody knows if tuxnes should work on OpenBSD. Well, > I just tried on an OpenBSD 2.9 system, ./configure'd, tried to make, > and got stopped pretty early. > > vivaldi:~/tuxnes-0.75$ make > gcc -DHAVE_CONFIG_H -I. -I. -I. -O -pipe -Wall -I/usr/X11R6/include -c > x86.S > x86.S: Assembler messages: > x86.S:1672: Error: Local symbol LASTBANK never defined. > x86.S:1672: Fatal error:1 error, 0 warnings, no object file generated. > > Any ideas? This file is only 1672 lines long, is that too short? 1672 lines is correct. Let's see. x86.S uses a symbol named _LASTBANK which is defined in the included file "mapper.h" as LASTBANK. LASTBANK is declared in dynrec.c. I guess the assembler on Linux is a little more forgiving than on OpenBSD when it comes to defining globals. Look in mapper.h and after the following line: #define _LASTBANK LASTBANK /* Last memory page code executed in */ Add the line: extern unsigned int LASTBANK; And see it that fixes the problem. If it does, I'd wager that another global will experience the same difficulty. Let us know how it turns out. -- -Mike Melanson |