[httperf] make command error in Cygwin

banjanap at mix.wvu.edu banjanap at mix.wvu.edu
Thu Aug 3 12:02:43 PDT 2006


HI martin previously,
   I had sena mail stating the error I used to recieve when i issue a 
make command the error displayed is as follows ONLY A PART OF THE ERROR 
DISPLAYED AS IT IS A VERY LONG LIST IF THE COMPLETE LIST IS NEEDED THEN 
I WOULD SEND IT:

"/cygdrive/d/Abhi/http/test/httperf-0.8/stat/basic.c:84: warning: data 
definition has no type or storage class
/cygdrive/d/Abhi/http/test/httperf-0.8/stat/basic.c:85: error: parse 
error before "footer_bytes_received"
/cygdrive/d/Abhi/http/test/httperf-0.8/stat/basic.c:85: warning: type 
defaults to `int' in declaration of `footer_bytes_received'
/cygdrive/d/Abhi/http/test/httperf-0.8/stat/basic.c:85: warning: data 
definition has no type or storage class
/cygdrive/d/Abhi/http/test/httperf-0.8/stat/basic.c:88: error: parse 
error before '}' token
/cygdrive/d/Abhi/http/test/httperf-0.8/stat/basic.c:89: warning: type 
defaults to `int' in declaration of `basic'
/cygdrive/d/Abhi/http/test/httperf-0.8/stat/basic.c:89: warning: data 
definition has no type or storage class
/cygdrive/d/Abhi/http/test/httperf-0.8/stat/basic.c: In function 
`perf_sample':
/cygdrive/d/Abhi/http/test/httperf-0.8/stat/basic.c:107: error: request 
for member `reply_rate_sum' in something not a structure or union
/cygdrive/d/Abhi/http/test/httperf-0.8/stat/basic.c:108: error: request 
for member `reply_rate_sum2' in something not a structure or union"

and at the end of the error I get this

make[1]: *** [basic.o] Error 1
make[1]: Leaving directory `/cygdrive/c/cygwin/home/Abhi/build/stat'
make: *** [all-recursive] Error 1

for which I got a reply stating that you thought that it seemd like the 
u_wide type is either not getting defined, or is getting defined 
incorrectly.  check what u_wide is
defined as in the file 'config.h' in your build directory.

it should be one of

#define u_wide unsigned long long

or

#define u_wide unsigned long

HOWEVER IN THE BUILD DIRECTORY THE config.h file shows this

"/* config.h.  Generated automatically by configure.  */
/* config.h.in.  Generated automatically from configure.in by 
autoheader.  */

/* Define if using alloca.c.  */
/* #undef C_ALLOCA */

/* Define to empty if the keyword does not work.  */
/* #undef const */

/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP 
systems.
   This function is required for alloca.c support on those systems.  */
/* #undef CRAY_STACKSEG_END */

/* Define if you have alloca, as a function or macro.  */
/* #undef HAVE_ALLOCA */

/* Define if you have <alloca.h> and it should be used (not on 
Ultrix).  */
/* #undef HAVE_ALLOCA_H */

/* Define if you don't have vprintf but do have _doprnt.  */
/* #undef HAVE_DOPRNT */

/* Define if you have a working `mmap' system call.  */
/* #undef HAVE_MMAP */

/* Define if you have the vprintf function.  */
/* #undef HAVE_VPRINTF */

/* Define as the return type of signal handlers (int or void).  */
/* #undef RETSIGTYPE */

/* Define to `unsigned' if <sys/types.h> doesn't define.  */
/* #undef size_t */

/* If using the C implementation of alloca, define if you know the
   direction of stack growth for your system; otherwise it will be
   automatically deduced at run-time.
 STACK_DIRECTION > 0 => grows toward higher addresses
 STACK_DIRECTION < 0 => grows toward lower addresses
 STACK_DIRECTION = 0 => direction of growth unknown
 */
/* #undef STACK_DIRECTION */

/* Define if you have the ANSI C header files.  */
/* #undef STDC_HEADERS */

/* Define if you can safely include both <sys/time.h> and <time.h>.  */
/* #undef TIME_WITH_SYS_TIME */

/* Define if you have the getpagesize function.  */
/* #undef HAVE_GETPAGESIZE */

/* Define if you have the gettimeofday function.  */
/* #undef HAVE_GETTIMEOFDAY */

/* Define if you have the select function.  */
/* #undef HAVE_SELECT */

/* Define if you have the socket function.  */
/* #undef HAVE_SOCKET */

/* Define if you have the strdup function.  */
/* #undef HAVE_STRDUP */

/* Define if you have the strerror function.  */
/* #undef HAVE_STRERROR */

/* Define if you have the strtod function.  */
/* #undef HAVE_STRTOD */

/* Define if you have the strtol function.  */
/* #undef HAVE_STRTOL */

/* Define if you have the strtoul function.  */
/* #undef HAVE_STRTOUL */

/* Define if you have the <fcntl.h> header file.  */
/* #undef HAVE_FCNTL_H */

/* Define if you have the <openssl/ssl.h> header file.  */
/* #undef HAVE_OPENSSL_SSL_H */

/* Define if you have the <sys/ioctl.h> header file.  */
/* #undef HAVE_SYS_IOCTL_H */

/* Define if you have the <sys/time.h> header file.  */
/* #undef HAVE_SYS_TIME_H */

/* Define if you have the <unistd.h> header file.  */
/* #undef HAVE_UNISTD_H */

/* Define if you have the crypto library (-lcrypto).  */
/* #undef HAVE_LIBCRYPTO */

/* Define if you have the m library (-lm).  */
/* #undef HAVE_LIBM */

/* Define if you have the ssl library (-lssl).  */
/* #undef HAVE_LIBSSL */

/* Define if you have Open SSL (header files, libssl.a, libcrypto.a).  
*/
/* #undef HAVE_SSL */

/* Define to the size of a long (in bytes).  */
/* #undef SIZEOF_LONG */

/* Define to `unsigned char' if <sys/types.h> doesn't define.  */
/* #undef u_char */

/* Define to `unsigned short' if <sys/types.h> doesn't define.  */
/* #undef u_short */

/* Define to `unsigned int' if <sys/types.h> doesn't define.  */
/* #undef u_int */

/* Define to `unsigned long' if <sys/types.h> doesn't define.  */
/* #undef u_long */

/* Define to widest `unsigned' integer type available.  */
/* #undef u_wide */
"

as we see the u_wide is at the end and the syntax is different. Based 
on thses steps what should I do next.


More information about the httperf mailing list