iozone on solaris 10 amd64 i86pc

Trying compile iozone 3.319 benchmark tool on Solaris 10 amd64 just simply did not work out of the box like I hoped. Here were my errors:

gmake Solaris10gcc-64

 

Building iozone for Solaris10gcc-64

 

gcc -O -c  -Dunix -DHAVE_ANSIC_C -DASYNC_IO -D__LP64__ \

                -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dsolaris \

                 -m64 libbif.c -o libbif10-64.o

gcc -O -c  -Dunix -DHAVE_ANSIC_C -DASYNC_IO -D__LP64__ \

                -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dsolaris \

                -DNAME='”Solaris10gcc-64″‘  -m64 libasync.c -o libasync10-64.o

gcc -c -O -Dunix -DHAVE_ANSIC_C -DASYNC_IO \

                -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dsolaris \

                -DNAME='”Solaris10gcc-64″‘  -m64 iozone.c -o iozone_solaris10gcc-64.o

iozone.c: In function `random_perf_test’:

iozone.c:8205: error: `test_foo’ undeclared (first use in this function)

iozone.c:8205: error: (Each undeclared identifier is reported only once

iozone.c:8205: error: for each function it appears in.)

iozone.c: In function `reverse_perf_test’:

iozone.c:8658: error: `test_foo’ undeclared (first use in this function)

iozone.c: In function `rewriterec_perf_test’:

iozone.c:8949: error: `test_foo’ undeclared (first use in this function)

iozone.c: In function `read_stride_perf_test’:

iozone.c:9260: error: `test_foo’ undeclared (first use in this function)

iozone.c: In function `thread_write_test’:

iozone.c:11829: error: `test_foo’ undeclared (first use in this function)

iozone.c: In function `thread_rwrite_test’:

iozone.c:13078: error: `test_foo’ undeclared (first use in this function)

iozone.c: In function `thread_read_test’:

iozone.c:13597: error: `test_foo’ undeclared (first use in this function)

iozone.c: In function `thread_rread_test’:

iozone.c:14663: error: `test_foo’ undeclared (first use in this function)

iozone.c: In function `thread_reverse_read_test’:

iozone.c:15190: error: `test_foo’ undeclared (first use in this function)

iozone.c: In function `thread_stride_read_test’:

iozone.c:15690: error: `test_foo’ undeclared (first use in this function)

iozone.c: In function `thread_ranread_test’:

iozone.c:16304: error: `test_foo’ undeclared (first use in this function)

iozone.c: In function `thread_ranwrite_test’:

iozone.c:16908: error: `test_foo’ undeclared (first use in this function)

gmake: *** [iozone_solaris10gcc-64.o] Error 1

So I went into iozone.c and added one line at the top (after the beginner’s hints):

int test_foo;

Compiled just fine! Hopefully problems were caused by this =).

This entry was posted in software and tagged , , . Bookmark the permalink.

2 Responses to iozone on solaris 10 amd64 i86pc

  1. svrocket says:

    I use opensolaris community edition (SXCE b108) NOT opensolaris 11.2008
    installed gcc ver 3.4.6 and the default solaris make (not your gmake)

    # make solars10gcc

    works great! compiled and usable without error on my AMD X2 3.11Ghz

    according to the author of iozone, 64bit is not required, iozone only uses a smidgen of RAM, and once you start using it for real, you will see it is all IO and no RAM or cpu consumption.

  2. Ryan says:

    Very cool svrocket. I think I was using Solaris 10 update 6 and not Open Solaris when I was compiling. Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *