Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1204 Compiling Bocsh 2.4.2 on Mac OS 10.6

open
nobody
5
2012-10-15
2009-11-30
Anonymous
No

sh .config.macosx
make

and then
...
ar: creating archive libdisasm.a
a - dis_decode.o
a - dis_groups.o
a - resolve.o
a - syntax.o
ranlib libdisasm.a
echo done
done
g++ -c -I. -I./. -Iinstrument/stubs -I./instrument/stubs -pipe -O3 -I/sw/include -fomit-frame-pointer -finline-functions -falign-loops=16 -falign-jumps=16 -falign-functions=16 -falign-labels=16 -falign-loops-max-skip=15 -falign-jumps-max-skip=15 -fprefetch-loop-arrays -fpascal-strings -fno-common -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DBX_PLUGIN_PATH="\"/usr/local/lib/bochs/plugins\"" -DBX_SHARE_PATH='"/usr/local/share/bochs"' logio.cc -o logio.o
logio.cc: In member function ‘void iofunctions::out(int, const char, const char, __va_list_tag)’:
logio.cc:195: warning: format ‘%011llu’ expects type ‘long long unsigned int’, but argument 3 has type ‘Bit64u’
logio.cc: In function ‘void carbonFatalDialog(const char
, const char)’:
logio.cc:528: error: ‘InitCursor’ was not declared in this scope
logio.cc:548: error: ‘CreateStandardAlert’ was not declared in this scope
logio.cc:549: error: ‘RunStandardAlert’ was not declared in this scope
make:
** [logio.o] Error 1
sh-3.2#

Discussion

  • I suggest you to google and find which #include required for InitCursor, CreateStandardAlert and RunStandardAlert functions and see if it included or not.

    HINT: Nobody of Bochs developers has OSX and could build with Carbon GUI. We just don't support it. Somebody else should send us a patch with fix.

     
  • Ryan Schmidt
    Ryan Schmidt
    2010-04-28

    Carbon is dead; Apple wants developers to move to Cocoa. Therefore Apple will not provide a 64-bit version of Carbon. And the compiler compiles 64-bit by default as of Snow Leopard. So you must either explicitly compile bochs 32-bit, or bochs must replace its Carbon code with Cocoa code.