Strange. Iozone builds successfully, but not within our OpenPKG environment.
Here's the build output of my hand patched pristine sources:

    ms@dt4:/u/ms/tmp/vip/src/current:> /sw/bin/make --no-print-directory
    CC=/sw/bin/cc 'CFLAGS=-O2 -pipe' freebsd

    Build iozone for FreeBSD

    cc -c -O -Dunix -Dbsd4_2 -DHAVE_ANSIC_C -DNO_THREADS \
            -DSHARED_MEM iozone.c -o iozone_freebsd.o
    iozone.c:318:1: warning: "MS_SYNC" redefined
    In file included from iozone.c:211:
    /usr/include/sys/mman.h:99:1: warning: this is the location of the previous
    definition
    iozone.c:319:1: warning: "MS_ASYNC" redefined
    /usr/include/sys/mman.h:100:1: warning: this is the location of the previous
    definition
    iozone.c: In function `initfile':
    iozone.c:12853: warning: passing arg 2 of `mmap' makes integer from pointer
    without a cast
    iozone.c: In function `child_attach':
    iozone.c:14504: warning: passing arg 2 of `accept' from incompatible pointer
    type
    cc -c -O -Dunix -Dbsd4_2 -DHAVE_ANSIC_C -DNO_THREADS \
            -DSHARED_MEM libbif.c -o libbif.o
    cc -O -Dunix -DHAVE_ANSIC_C -DNO_THREADS -DSHARED_MEM \
            iozone_freebsd.o libbif.o -o iozone
    ms@dt4:/u/ms/tmp/vip/src/current:> 

Here's the build output of the OpenPKG package after rpm -bb iozone.spec:

    ms@dt4:/u/ms/work/openpkg/src/iozone:> rpm -bb iozone.spec
    Executing(%prep): env -i /sw/lib/openpkg/bash --norc --noprofile --posix -e
    /tmp/rpm-tmp.63275
    [...]
    + /sw/bin/make --no-print-directory CC=/sw/bin/cc 'CFLAGS=-O2 -pipe' freebsd

    Build iozone for FreeBSD

    cc -c -O -Dunix -Dbsd4_2 -DHAVE_ANSIC_C -DNO_THREADS \
            -DSHARED_MEM iozone.c -o iozone_freebsd.o
    iozone.c:308:1: warning: "MS_SYNC" redefined
    In file included from iozone.c:211:
    /usr/include/sys/mman.h:99:1: warning: this is the location of the previous
    definition
    iozone.c:309:1: warning: "MS_ASYNC" redefined
    /usr/include/sys/mman.h:100:1: warning: this is the location of the previous
    definition
    iozone.c: In function `initfile':
    iozone.c:12944: warning: passing arg 2 of `mmap' makes integer from pointer
    without a cast
    iozone.c: At top level:
    iozone.c:13039: conflicting types for `async_write_no_copy'
    iozone.c:817: previous declaration of `async_write_no_copy'
    iozone.c:13044: conflicting types for `async_write'
    iozone.c:813: previous declaration of `async_write'
    iozone.c:13054: conflicting types for `async_release'
    iozone.c:814: previous declaration of `async_release'
    make: *** [iozone_freebsd.o] Error 1
    error: Bad exit status from /tmp/rpm-tmp.78520 (%build)


    RPM build errors:
        Bad exit status from /tmp/rpm-tmp.78520 (%build)
    ms@dt4:/u/ms/work/openpkg/src/iozone:> 

Attachment: msg00369/pgp00000.pgp
Description: PGP signature

Reply via email to