Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#13529 closed defect (fixed)

bochs-2.3.5 does not build on Mac OS 10.5.1 (Leopard)

Reported by: rzilibowitz@… Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 1.5.2
Keywords: Cc:


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
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 -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 -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 -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 -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
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"' -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"' -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"' -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"' -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"' -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"' -o osdep.o In function 'Bit64u bx_get_realtime64_usec()': error: 'gettimeofday' was not declared in this scope
make: *** [osdep.o] Error 1

Change History (6)

comment:1 Changed 13 years ago by jmpp@…

Milestone: Port Bugs

comment:2 Changed 13 years ago by ripzonetriton@…

I tried to build it too and got the same problem.

Here's a quick fix:

+++ bochs.h	2007-12-19 17:24:56.000000000 +0000
@@ -85,6 +85,7 @@
 #  include <sys/types.h>
 #  include <sys/stat.h>
 #  include <sys/param.h> /* for MAXPATHLEN */
+#  include <sys/time.h>
 #  include <utime.h>
 #  ifndef WIN32

(first time generating a patch, if it's not right don't beat me :-)

comment:3 Changed 13 years ago by collver@…

The quick fix from ripzonetriton@… works for me.

comment:4 Changed 13 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to jmr@…
Status: newassigned

comment:5 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

Thanks, fix committed in r34658.

comment:6 Changed 12 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.