Opened 13 years ago

Closed 12 years ago

Last modified 11 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:
Port:

Description

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

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>
 #else
 #  ifndef WIN32

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

comment:3 Changed 12 years ago by collver@…

The quick fix from ripzonetriton@… works for me.

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

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

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

Resolution: fixed
Status: assignedclosed

Thanks, fix committed in r34658.

comment:6 Changed 11 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.