bochs-2.3.5 does not build on Mac OS 10.5.1 (Leopard)
sudo port install bochs on Leopard fails. The following was printed to the terminal:
Command output: a - textconfig.o
a - carbon.o
ranlib libgui.a
echo done
done
cd disasm && \
make libdisasm.a
g++ -c -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -O2 -fpascal-strings -fno-common -arch ppc -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES dis_decode.cc -o dis_decode.o
g++ -c -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -O2 -fpascal-strings -fno-common -arch ppc -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES dis_groups.cc -o dis_groups.o
g++ -c -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -O2 -fpascal-strings -fno-common -arch ppc -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES resolve.cc -o resolve.o
g++ -c -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -O2 -fpascal-strings -fno-common -arch ppc -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES syntax.cc -o syntax.o
rm -f libdisasm.a
ar rv libdisasm.a dis_decode.o dis_groups.o resolve.o syntax.o
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 -O2 -fpascal-strings -fno-common -arch ppc -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DBX_SHARE_PATH='"/opt/local/share/bochs"' logio.cc -o logio.o
g++ -c -I. -I./. -Iinstrument/stubs -I./instrument/stubs -O2 -fpascal-strings -fno-common -arch ppc -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DBX_SHARE_PATH='"/opt/local/share/bochs"' main.cc -o main.o
g++ -c -I. -I./. -Iinstrument/stubs -I./instrument/stubs -O2 -fpascal-strings -fno-common -arch ppc -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DBX_SHARE_PATH='"/opt/local/share/bochs"' config.cc -o config.o
g++ -c -I. -I./. -Iinstrument/stubs -I./instrument/stubs -O2 -fpascal-strings -fno-common -arch ppc -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DBX_SHARE_PATH='"/opt/local/share/bochs"' load32bitOShack.cc -o load32bitOShack.o
g++ -c -I. -I./. -Iinstrument/stubs -I./instrument/stubs -O2 -fpascal-strings -fno-common -arch ppc -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DBX_SHARE_PATH='"/opt/local/share/bochs"' pc_system.cc -o pc_system.o
g++ -c -I. -I./. -Iinstrument/stubs -I./instrument/stubs -O2 -fpascal-strings -fno-common -arch ppc -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DBX_SHARE_PATH='"/opt/local/share/bochs"' osdep.cc -o osdep.o
osdep.cc: In function 'Bit64u bx_get_realtime64_usec()':
osdep.cc:344: error: 'gettimeofday' was not declared in this scope
make: *** [osdep.o] Error 1
I tried to build it too and got the same problem.
Here's a quick fix:
(first time generating a patch, if it's not right don't beat me :-)