[netperf-talk] Request for help in compiling netperf in Solaris 2.7
Jay Kim
jay.m.kim at samsung.com
Fri Jan 4 01:12:12 PST 2008
Hi, I'm a newbie in using netperf.
After downloading the source code (v2.4.4), I've successfully compiled it in Solaris 2.8.
However, when I did the same compile in Solaris 2.7, I've encountered the following error message in compiling netlib.c.
Since the include file does nothing wrong, I'm really stuck here. Could you help me out?
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c `test -f 'netlib.c' || echo './'`netlib.c
In file included from netlib.c:1968:
/usr/include/sys/processor.h: In function `bind_to_specific_processor':
/usr/include/sys/processor.h:29: parse error before `typedef'
/usr/include/sys/processor.h: At top level:
/usr/include/sys/processor.h:58: warning: data definition has no type or storage class
/usr/include/sys/processor.h:73: parse error before `processorid'
/usr/include/sys/processor.h:74: parse error before `processorid'
/usr/include/sys/processor.h:75: parse error before `processorid_t'
netlib.c:1970: parse error before `('
netlib.c:1970: parse error before `0'
I'm using gcc v2.95.3, and the logfiles of configure and make are like the followings;
$ ./configure
checking build system type... sparc-sun-solaris2.7
checking host system type... sparc-sun-solaris2.7
checking target system type... sparc-sun-solaris2.7
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
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 ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc
checking for ranlib... no
checking for an ANSI C-conforming const... yes
checking for main in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
checking for egrep... /usr/xpg4/bin/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 arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking endian.h usability... no
checking endian.h presence... no
checking for endian.h... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.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 for main in -lsocket... yes
checking for main in -lnsl... yes
checking for main in -lsendfile... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for main in -lmach... no
checking for an ANSI C-conforming const... (cached) yes
checking for off_t... yes
checking for size_t... yes
checking for socklen_t equivalent... configure: WARNING: Cannot find a type to use in place of socklen_t, guessing socklen_t
socklen_t
checking for h_errno declaration in netdb.h... yes
checking for struct sockaddr_storage... no
checking whether time.h and sys/time.h may both be included... yes
checking for stdbool.h that conforms to C99... no
checking for _Bool... no
checking for pid_t... 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 stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking whether setpgrp takes no argument... yes
checking return type of signal handlers... void
checking for alarm... yes
checking for bzero... yes
checking for gethostbyname... yes
checking for gethrtime... yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for memset... yes
checking for memcpy... yes
checking for munmap... yes
checking for select... yes
checking for socket... yes
checking for sqrt... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strstr... yes
checking for strtoul... yes
checking for uname... yes
checking for getnameinfo... no
checking for getaddrinfo... no
checking for inet_ntop... no
configure: Requesting replacement getaddrinfo/getnameinfo
configure: Requesting replacement inet_ntop
checking for sendfile... no
checking for mpctl... no
checking for processor_bind... yes
checking for sched_setaffinity... no
checking for bind_to_cpu_id... no
checking for bindprocessor... no
checking whether to include histogram support... no
checking whether to include dirty support... no
checking whether to include demo support... no
checking whether to include Unix-domain socket tests... no
checking whether to include DLPI tests... no
checking whether to include XTI tests... no
checking whether to include SDP tests... no
checking whether to include ICSC-EXS tests... no
checking whether to include SCTP tests... no
checking whether to include paced send (intervals) support... no
checking whether paced sends should spin... no
checking whether to include initial burst support in _RR tests... no
checking which CPU utilization measurement type to use... checking for main in -lkstat... yes
"kstat - auto"
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/netperf_version.h
config.status: creating src/Makefile
config.status: creating src/missing/Makefile
config.status: creating src/missing/m4/Makefile
config.status: creating doc/Makefile
config.status: creating doc/examples/Makefile
config.status: creating netperf.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
$
$ make
make all-recursive
make[1]: Entering directory `/home/jaykim/netperf/netperf-2.4.4'
Making all in src
make[2]: Entering directory `/home/jaykim/netperf/netperf-2.4.4/src'
Making all in missing
make[3]: Entering directory `/home/jaykim/netperf/netperf-2.4.4/src/missing'
Making all in m4
make[4]: Entering directory `/home/jaykim/netperf/netperf-2.4.4/src/missing/m4'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/jaykim/netperf/netperf-2.4.4/src/missing/m4'
make[4]: Entering directory `/home/jaykim/netperf/netperf-2.4.4/src/missing'
source='getaddrinfo.c' object='getaddrinfo.o' libtool=no \
depfile='.deps/getaddrinfo.Po' tmpdepfile='.deps/getaddrinfo.TPo' \
depmode=gcc /bin/ksh ../../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -g -O2 -c `test -f 'getaddrinfo.c' || echo './'`getaddrinfo.c
source='inet_ntop.c' object='inet_ntop.o' libtool=no \
depfile='.deps/inet_ntop.Po' tmpdepfile='.deps/inet_ntop.TPo' \
depmode=gcc /bin/ksh ../../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -g -O2 -c `test -f 'inet_ntop.c' || echo './'`inet_ntop.c
rm -f libcompat.a
ar cru libcompat.a getaddrinfo.o inet_ntop.o
: libcompat.a
make[4]: Leaving directory `/home/jaykim/netperf/netperf-2.4.4/src/missing'
make[3]: Leaving directory `/home/jaykim/netperf/netperf-2.4.4/src/missing'
make[3]: Entering directory `/home/jaykim/netperf/netperf-2.4.4/src'
source='netperf.c' object='netperf.o' libtool=no \
depfile='.deps/netperf.Po' tmpdepfile='.deps/netperf.TPo' \
depmode=gcc /bin/ksh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c `test -f 'netperf.c' || echo './'`netperf.c
source='netlib.c' object='netlib.o' libtool=no \
depfile='.deps/netlib.Po' tmpdepfile='.deps/netlib.TPo' \
depmode=gcc /bin/ksh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c `test -f 'netlib.c' || echo './'`netlib.c
In file included from netlib.c:1968:
/usr/include/sys/processor.h: In function `bind_to_specific_processor':
/usr/include/sys/processor.h:29: parse error before `typedef'
/usr/include/sys/processor.h: At top level:
/usr/include/sys/processor.h:58: warning: data definition has no type or storage class
/usr/include/sys/processor.h:73: parse error before `processorid'
/usr/include/sys/processor.h:74: parse error before `processorid'
/usr/include/sys/processor.h:75: parse error before `processorid_t'
netlib.c:1970: parse error before `('
netlib.c:1970: parse error before `0'
make[3]: *** [netlib.o] Error 1
make[3]: Leaving directory `/home/jaykim/netperf/netperf-2.4.4/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jaykim/netperf/netperf-2.4.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jaykim/netperf/netperf-2.4.4'
make: *** [all] Error 2
More information about the netperf-talk
mailing list