RE: [Tuxnes-devel] Trying to build on OpenBSD 2.9
Brought to you by:
tmmm
|
From: HUYNH,SONTRI (HP-Richardson,ex1) <son...@hp...> - 2001-08-23 17:59:01
|
> I admit, I don't know much about the build system on BSD > systems. Is it all the same as GNU systems? Anyway, try placing: > .extern LASTBANK > near the top of x86.S. Here is some preliminary info: Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd2.9/2.95.3/specs gcc version 2.95.3 20010125 (prerelease) GNU assembler version 1.92.3, OpenBSD $Revision: 1.2 $ OpenBSD uses a gnu toolchain, and for those that don't know, OpenBSD/i386 uses the a.out format rather than ELF which most use now. Sometimes there are directives that are different for different object formats. I added ".extern LASTBANK" after #include "mapper.h" (doesn't seem to matter where I placed it) and still got the same output as before: 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. From what documentation I could find for gas: .extern is accepted in the source program---for compatibility with other assemblers---but it is ignored. as treats all undefined symbols as external. I think that's why it's not already .extern'd in any way in the src currently, but for some reason, my gas doesn't like LASTBANK for some reason, and if I comment out the LASTBANK lines, then x86.o builds.. but correct me if I'm wrong, LASTBANK isn't the only undefined external symbol in x86.S, but for some reason it is having a problem with LASTBANK in particular. Actually.. (sorry, this email is following my train of actions) I just commented out the #include lines of x86.S and it builds fine. In fact, I only have to comment out "#define _LASTBANK LASTBANK /* Last memory page code executed in */" from mapper.h. Does this make sense to anyone? Tomo |