Building IOZone

Guys,

Trying to build iozone so I can do some benchmarking work and I am running openSUSE 11.1 x86_64.

After downloading the src I run the make command “make linux-AMD64”.

The build process starts, but I quickly get a bunch of errors. I’m not sure what part of this is important and what’s not so I’m just going to post it and see if someone can’t give me a pointer as to what I am missing.

Thank you,

Joe

joseph@linux-mdf2:~/Desktop/iozone3_321/src/current> make linux-AMD64

Building iozone for Linux-AMD64

cc -c -O3 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -DNAME='"linux-AMD64"' \
                -D__AMD64__ -DSHARED_MEM -Dlinux -D_LARGEFILE64_SOURCE \
                 iozone.c \
                -o iozone_linux-AMD64.o
In file included from /usr/include/errno.h:36,
                 from iozone.c:61:
/usr/include/bits/errno.h:25:26: error: linux/errno.h: No such file or directory
In file included from /usr/include/bits/posix1_lim.h:153,
                 from /usr/include/limits.h:145,
                 from /usr/lib64/gcc/x86_64-suse-linux/4.3/include-fixed/limits.h:122,
                 from /usr/lib64/gcc/x86_64-suse-linux/4.3/include-fixed/syslimits.h:7,
                 from /usr/lib64/gcc/x86_64-suse-linux/4.3/include-fixed/limits.h:11,
                 from /usr/include/bits/socket.h:32,
                 from /usr/include/sys/socket.h:40,
                 from iozone.c:308:
/usr/include/bits/local_lim.h:39:26: error: linux/limits.h: No such file or directory
In file included from /usr/include/sys/socket.h:40,
                 from iozone.c:308:
/usr/include/bits/socket.h:334:24: error: asm/socket.h: No such file or directory
iozone.c: In function âstart_master_listenâ:
iozone.c:19194: error: âSOL_SOCKETâ undeclared (first use in this function)
iozone.c:19194: error: (Each undeclared identifier is reported only once
iozone.c:19194: error: for each function it appears in.)
iozone.c:19194: error: âSO_RCVBUFâ undeclared (first use in this function)
iozone.c: In function âstart_child_listenâ:
iozone.c:19652: error: âSOL_SOCKETâ undeclared (first use in this function)
iozone.c:19652: error: âSO_RCVBUFâ undeclared (first use in this function)
iozone.c: In function âstart_child_listen_asyncâ:
iozone.c:19818: error: âSOL_SOCKETâ undeclared (first use in this function)
iozone.c:19818: error: âSO_RCVBUFâ undeclared (first use in this function)
iozone.c: In function âsp_start_child_listenâ:
iozone.c:21803: error: âSOL_SOCKETâ undeclared (first use in this function)
iozone.c:21803: error: âSO_RCVBUFâ undeclared (first use in this function)
iozone.c: In function âsp_start_master_listenâ:
iozone.c:22025: error: âSOL_SOCKETâ undeclared (first use in this function)
iozone.c:22025: error: âSO_RCVBUFâ undeclared (first use in this function)
make: *** [iozone_linux-AMD64.o] Error 1

Hi
Did you try the src rpm, it should pick up your arch. It will build
with some warning though.


rpmbuild --rebuild  iozone-3-321.src.rpm
sudo rpm -Uhv /usr/src/packages/RPMS/x86_64/iozone-3-321.x86_64.rpm

The files are down in /opt/iozone


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.1 (i586) Kernel 2.6.27.21-0.1-pae
up 0:09, 2 users, load average: 0.61, 0.65, 0.40
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME

Thank you, I’ll try this once my internet connection at home comes back so I can SSH in.

Cause what is there better to do at work besides benchmark your RAID array on my SUSE box?