[httperf] Problem in compiling in Solaris 7

Chan Chi Hung httperf@napali.hpl.hp.com
Wed, 08 Aug 2001 17:42:17 +0800


This is a multi-part message in MIME format.
--------------CBD7EE8D580EC451722378EB
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi httperf experts,

I download the httperf-0.8 and tried to compile the source on my Ultra
10 running Solaris 7. However, I encountered compilation error which I
cannot solve. Any help is appreciated.

Below is the messages:

% uname -a
SunOS aspsunrays 5.7 Generic_106541-15 sun4u sparc SUNW,Ultra-5_10
% gcc --version
2.95.3
% mkdir build
% cd build
% ../configure
% make
making all in lib
gcc -c -DHAVE_CONFIG_H -I.. -I../.. -I../../lib   -DNDEBUG -D_GNU_SOURCE
-D_XOPEN_SOURCE -g -O2 -Wall ../../lib/getopt.c
../../lib/getopt.c: In function `_getopt_initialize':
../../lib/getopt.c:356: warning: implicit declaration of function
`getpid'
../../lib/getopt.c: In function `_getopt_internal':
../../lib/getopt.c:557: warning: implicit declaration of function
`strncmp'
../../lib/getopt.c:601: warning: suggest explicit braces to avoid
ambiguous `else'
../../lib/getopt.c:548: warning: `indfound' might be used uninitialized
in this function
gcc -c -DHAVE_CONFIG_H -I.. -I../.. -I../../lib   -DNDEBUG -D_GNU_SOURCE
-D_XOPEN_SOURCE -g -O2 -Wall ../../lib/getopt1.c
gcc -c -DHAVE_CONFIG_H -I.. -I../.. -I../../lib   -DNDEBUG -D_GNU_SOURCE
-D_XOPEN_SOURCE -g -O2 -Wall ../../lib/ssl_writev.c
ar r libutil.a getopt.o getopt1.o ssl_writev.o
ar: creating libutil.a
ranlib libutil.a
making all in gen
gcc -c -DHAVE_CONFIG_H -I.. -I../../gen -I../.. -I../../lib   -DNDEBUG
-D_GNU_SOURCE -D_XOPEN_SOURCE -g -O2 -Wall ../../gen/call_seq.c
In file included from ../../httperf.h:32,
                 from ../../gen/call_seq.c:29:
/usr/include/sys/resource.h:144: field `ru_utime' has incomplete type
/usr/include/sys/resource.h:145: field `ru_stime' has incomplete type
In file included from /usr/include/sys/stream.h:22,
                 from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/include/sys/stream.h:5,

                 from /usr/include/netinet/in.h:38,
                 from ../../core.h:27,
                 from ../../gen/call_seq.c:31:
/usr/include/sys/vnode.h:167: parse error before `timestruc_t'
/usr/include/sys/vnode.h:167: warning: no semicolon at end of struct or
union
/usr/include/sys/vnode.h:168: warning: data definition has no type or
storage class
/usr/include/sys/vnode.h:169: parse error before `va_ctime'
/usr/include/sys/vnode.h:169: warning: data definition has no type or
storage class
/usr/include/sys/vnode.h:174: parse error before `}'
/usr/include/sys/vnode.h:174: warning: data definition has no type or
storage class
/usr/include/sys/vnode.h:201: parse error before `vattr32_t'
/usr/include/sys/vnode.h:201: warning: data definition has no type or
storage class
*** Error code 1
make: Fatal error: Command failed for target `call_seq.o'
Current working directory /data/chihung/src/httperf-0.8/build/gen
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'



--
CHAN CHI HUNG
ASP Centre
Unit 216, NTU Innovation Centre
16 Nanyang Drive, Singapore 637722
Tel: +65 790 4420    Fax: +65 316 0042
Email: chihung@aspcentre.org
URL: www.aspcentre.org


--------------CBD7EE8D580EC451722378EB
Content-Type: text/x-vcard; charset=us-ascii;
 name="chihung.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Chan Chi Hung
Content-Disposition: attachment;
 filename="chihung.vcf"

begin:vcard 
n:Chan;Chi Hung
tel;pager:+65-9325-2873
tel;fax:+65-316-0042
tel;work:+65-790-4420
x-mozilla-html:FALSE
url:http://www.aspcentre.org/
org:Application Service Providers Centre
version:2.1
email;internet:chihung@aspcentre.org
title:Systems Manager
adr;quoted-printable:;;Unit 216, NTU Innovation Centre=0D=0A16 Nanyang Drive S(637722)=0D=0A;;;;Republic of Singapore
fn:CHAN CHI HUNG
end:vcard

--------------CBD7EE8D580EC451722378EB--


--
To unsubscribe: echo unsubscribe httperf | mail majordomo@linux.hpl.hp.com