I am having issues trying to compile filebench for Win SFU 3.5, for some
comparitive testing.
I have have had to address a couple of issues already along the way, but I am
stuck at this one.
source='flowop_library.c' object='flowop_library.o' libtool=no
depfile='.deps/flowop_library.Po' tmpdepfile='.deps/flowop_library.TPo'
depmode=gcc3 /bin/sh ../config/depcomp gcc -D_REENTRANT -I. -I. -I.. -I../intl
-I-I/usr/include/ -DFILEBENCHDIR=\"/usr/local/filebench\" -g -O2 -c `test
-f 'flowop_library.c' ||echo './'`flowop_library.c flowop_library.c: In
function `flowoplib_semblock':
flowop_library.c:1065: error: storage size of `timeout' isn't known
flowop_library.c: In function `flowoplib_sempost':
flowop_library.c:1154: error: storage size of `timeout' isn't known
*** Error code 1
I have tried to make sure the correct includes are in place, and my searching
has pointed at #include <sys/time.h> aswell as <time.h>, which i have in
filebench/flowop_library.c . Any ideas??
I have attached the configure and make output, also some other changes I have
made to get this far.
Thanks,
Ciaran
This message posted from opensolaris.org
% ./configure --with-gsl=/usr/include/
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking dependency style of gcc... (cached) gcc3
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for a BSD-compatible install... /bin/install -c
checking build system type... i586-pc-interix3
checking host system type... i586-pc-interix3
checking for UINT64_MAX in limits.h... yes
checking for kstat_open in -lkstat... no
checking for pthread_mutex_lock in -lpthread... yes
checking for pthread_mutexattr_setrobust_np in -lpthread... no
checking for pthread_mutexattr_setpshared in -lpthread... yes
checking for pthread_mutexattr_setprotocol in -lpthread... no
checking for _lwp_self... no
checking for aio_write in -lrt... no
checking for aio_waitn in -lrt... no
checking for nanosleep in -lrt... no
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for memory.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) no
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking values.h usability... no
checking values.h presence... no
checking for values.h... no
checking procfs.h usability... no
checking procfs.h presence... no
checking for procfs.h... no
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... yes
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for struct stat.st_blksize... yes
checking for struct stat.st_blocks... yes
checking for struct stat.st_rdev... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for working volatile... yes
checking for ptrdiff_t... yes
checking for unistd.h... (cached) yes
checking for working chown... yes
checking for unistd.h... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for fseeko... no
checking type of array argument to getgroups... gid_t
checking for getgroups... yes
checking for working getgroups... yes
checking whether getpgrp requires zero arguments... yes
checking whether gcc needs -traditional... no
checking whether lstat dereferences a symlink specified with a trailing slash...
yes
checking whether lstat accepts an empty string... no
checking whether lstat dereferences a symlink specified with a trailing slash...
(cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking whether setpgrp takes no argument... yes
checking for function prototypes... yes
checking whether setvbuf arguments are reversed... no
checking return type of signal handlers... void
checking whether stat accepts an empty string... no
checking for working strcoll... yes
checking for strftime... yes
checking for working strtod... yes
checking for vprintf... yes
checking for _doprnt... no
checking for basename... yes
checking for close... yes
checking for signal... yes
checking for sigsend... no
checking for sleep... yes
checking for sprintf... yes
checking for strlen... yes
checking for strncmp... yes
checking for strncpy... yes
checking for setrlimit... yes
checking for strrchr... yes
checking for strstr... yes
checking for times... yes
checking for unlink... yes
checking for vfprintf... yes
checking for vsprintf... yes
checking for waitpid... yes
checking for write... yes
checking for stat... yes
checking for stralloc... no
checking for strcat... yes
checking for strcmp... yes
checking for strcpy... yes
checking for strerror... yes
checking for pwrite... yes
checking for read... yes
checking for execl... yes
checking for execname... no
checking for exit... yes
checking for fflush... yes
checking for fork... (cached) yes
checking for fork1... no
checking for fprintf... yes
checking for free... yes
checking for fstat... yes
checking for fsync... yes
checking for getpid... yes
checking for kill... yes
checking for malloc... yes
checking for memcpy... yes
checking for memset... yes
checking for mmap... yes
checking for nice... yes
checking for open... yes
checking for pread... yes
checking for printf... yes
checking for pthread_cond_broadcast... yes
checking for pthread_cond_init... yes
checking for pthread_cond_signal... yes
checking for pthread_cond_wait... yes
checking for pthread_create... yes
checking for pthread_exit... yes
checking for pthread_join... yes
checking for pthread_mutex_init... yes
checking for pthread_mutex_lock... yes
checking for pthread_mutex_unlock... yes
checking for pthread_rwlock_init... yes
checking for pthread_rwlock_rdlock... yes
checking for pthread_rwlock_unlock... yes
checking for pthread_rwlock_wrlock... yes
checking for gethrtime... no
checking for ftok... yes
checking for semget... yes
checking for semop... yes
checking for semtimedop... no
checking utility.h usability... no
checking utility.h presence... no
checking for utility.h... no
checking sys/int_limits.h usability... no
checking sys/int_limits.h presence... no
checking for sys/int_limits.h... no
checking libaio.h usability... no
checking libaio.h presence... no
checking for libaio.h... no
checking aio.h usability... no
checking aio.h presence... no
checking for aio.h... no
checking sys/async.h usability... no
checking sys/async.h presence... no
checking for sys/async.h... no
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking for uint_t... yes
checking for off64_t... no
checking for hrtime_t... no
checking for caddr_t... yes
checking for cftime... no
checking for sigsend... (cached) no
checking for mkstemp... yes
checking for aiocb64... no
checking for SHM_SHARE_MMU... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating filebench/Makefile
config.status: creating fastsu/Makefile
config.status: creating workloads/Makefile
config.status: creating workloads/build/Makefile
config.status: creating scripts/Makefile
config.status: creating benchpoint/Makefile
config.status: creating benchpoint/bin/Makefile
config.status: creating benchpoint/config/Makefile
config.status: creating benchpoint/functions/Makefile
config.status: creating benchpoint/profiles/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
%
% make clean
Making clean in benchpoint
Making clean in functions
Making clean in config
Making clean in profiles
Making clean in bin
Making clean in .
Making clean in scripts
Making clean in workloads
Making clean in build
Making clean in .
Making clean in fastsu
test -z "fastsu" || rm -f fastsu
rm -f *.o core *.core
Making clean in filebench
test -z "filebench" || rm -f filebench
rm -f *.o core *.core
Making clean in .
%
%make all
make all-recursive
Making all in filebench
source='fileobj.c' object='fileobj.o' libtool=no depfile='.deps/fileobj.Po' tmp
depfile='.deps/fileobj.TPo' depmode=gcc3 /bin/sh ../config/depcomp gcc -D_REEN
TRANT -I. -I. -I.. -I../intl -I-I/usr/include/ -DFILEBENCHDIR=\"/usr/local/fileb
ench\" -g -O2 -c `test -f 'fileobj.c' || echo './'`fileobj.c
source='misc.c' object='misc.o' libtool=no depfile='.deps/misc.Po' tmpdepfile='
.deps/misc.TPo' depmode=gcc3 /bin/sh ../config/depcomp gcc -D_REENTRANT -I. -I
. -I.. -I../intl -I-I/usr/include/ -DFILEBENCHDIR=\"/usr/local/filebench\" -
g -O2 -c `test -f 'misc.c' || echo './'`misc.c
misc.c: In function `date_var':
misc.c:319: warning: passing arg 4 of `strftime' from incompatible pointer type
misc.c: In function `script_var':
misc.c:347: warning: passing arg 1 of `stralloc' makes pointer from integer with
out a cast
source='procflow.c' object='procflow.o' libtool=no depfile='.deps/procflow.Po'
tmpdepfile='.deps/procflow.TPo' depmode=gcc3 /bin/sh ../config/depcomp gcc -D_
REENTRANT -I. -I. -I.. -I../intl -I-I/usr/include/ -DFILEBENCHDIR=\"/usr/local/f
ilebench\" -g -O2 -c `test -f 'procflow.c' || echo './'`procflow.c
source='threadflow.c' object='threadflow.o' libtool=no depfile='.deps/threadflo
w.Po' tmpdepfile='.deps/threadflow.TPo' depmode=gcc3 /bin/sh ../config/depcomp
gcc -D_REENTRANT -I. -I. -I.. -I../intl -I-I/usr/include/ -DFILEBENCHDIR=\"/usr
/local/filebench\" -g -O2 -c `test -f 'threadflow.c' || echo './'`threadflow
.c
source='utils.c' object='utils.o' libtool=no depfile='.deps/utils.Po' tmpdepfil
e='.deps/utils.TPo' depmode=gcc3 /bin/sh ../config/depcomp gcc -D_REENTRANT -I
. -I. -I.. -I../intl -I-I/usr/include/ -DFILEBENCHDIR=\"/usr/local/filebench\"
-g -O2 -c `test -f 'utils.c' || echo './'`utils.c
In file included from utils.c:19:
parsertypes.h:13: warning: redefinition of `uchar_t'
/usr/include/sys/types.h:143: warning: `uchar_t' previously declared here
source='flowop.c' object='flowop.o' libtool=no depfile='.deps/flowop.Po' tmpdep
file='.deps/flowop.TPo' depmode=gcc3 /bin/sh ../config/depcomp gcc -D_REENTRAN
T -I. -I. -I.. -I../intl -I-I/usr/include/ -DFILEBENCHDIR=\"/usr/local/filebench
\" -g -O2 -c `test -f 'flowop.c' || echo './'`flowop.c
source='flowop_library.c' object='flowop_library.o' libtool=no depfile='.deps/f
lowop_library.Po' tmpdepfile='.deps/flowop_library.TPo' depmode=gcc3 /bin/sh ..
/config/depcomp gcc -D_REENTRANT -I. -I. -I.. -I../intl -I-I/usr/include/ -DFIL
EBENCHDIR=\"/usr/local/filebench\" -g -O2 -c `test -f 'flowop_library.c' ||
echo './'`flowop_library.c
flowop_library.c: In function `flowoplib_semblock':
flowop_library.c:1065: error: storage size of `timeout' isn't known
flowop_library.c: In function `flowoplib_sempost':
flowop_library.c:1154: error: storage size of `timeout' isn't known
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
%
% make all
make all-recursive
Making all in filebench
source='flowop_library.c' object='flowop_library.o' libtool=no depfile='.deps/f
lowop_library.Po' tmpdepfile='.deps/flowop_library.TPo' depmode=gcc3 /bin/sh ..
/config/depcomp gcc -D_REENTRANT -I. -I. -I.. -I../intl -I-I/usr/include/ -DFIL
EBENCHDIR=\"/usr/local/filebench\" -g -O2 -c `test -f 'flowop_library.c' ||
echo './'`flowop_library.c
flowop_library.c: In function `flowoplib_semblock':
flowop_library.c:1065: error: storage size of `timeout' isn't known
flowop_library.c: In function `flowoplib_sempost':
flowop_library.c:1154: error: storage size of `timeout' isn't known
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
%
fileobj.c:284: error: `O_FSYNC' undeclared (first use in this function)
open_attrs |= O_FSYNC;
fileset.c:150: error: `O_FSYNC' undeclared (first use in this function)
open_attrs |= O_FSYNC;
/usr/include/fcntl.h
#define o_FSYNC 0x00000010
<source_dir>/filebench/vars.h
#define uint64_t u_int64_t
/usr/include/limits.h
#define UINT32_MAX 0xffffffff
#define UINT64_MAX 0xffffffff
/usr/include/sys/param.h
#define MAXPATHLEN 1024
include <inttypes.h>
/usr/include #> ln -s sys/types.h inttypes.h
_______________________________________________
perf-discuss mailing list
perf-discuss@opensolaris.org