#1 compilation errors on Mac OS X

open
nobody
None
5
2004-08-31
2004-08-31
Anonymous
No

TIOBENCH VERSION:

bagpuss[956] pwd
/usr/local/src/tiobench-0.3.3

GCC VERSION

bagpuss[955] gcc --version
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1666)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

OS:
Mac OS X 10.3.5

MAKE OUTPUT
bagpuss[947] make
gcc -c -O2 -Wall tiotest.c -o tiotest.o
tiotest.c: In function `report_seek_error':
tiotest.c:877: warning: long int format, different type arg (arg
3)
tiotest.c: In function `report_random_write_error':
tiotest.c:890: warning: long int format, different type arg (arg
3)
tiotest.c: In function `report_read_error':
tiotest.c:904: warning: long int format, different type arg (arg
3)
tiotest.c: In function `do_write_test':
tiotest.c:928: error: `O_SYNC' undeclared (first use in this
function)
tiotest.c:928: error: (Each undeclared identifier is reported
only once
tiotest.c:928: error: for each function it appears in.)
tiotest.c:943: warning: long unsigned int format, different
type arg (arg 3)
tiotest.c: In function `do_random_write_test':
tiotest.c:1028: error: `O_SYNC' undeclared (first use in this
function)
tiotest.c:1043: warning: long unsigned int format, different
type arg (arg 3)
tiotest.c: In function `do_read_test':
tiotest.c:1135: warning: long unsigned int format, different
type arg (arg 3)
tiotest.c: In function `do_random_read_test':
tiotest.c:1240: warning: long unsigned int format, different
type arg (arg 3)
make: *** [tiotest.o] Error 1

Discussion