Log
[1m===> Building for dbs-1.1.5_2[0m
cd /magus/work/usr/mports/benchmarks/dbs/work/dbs-1.1.5/src; /usr/bin/make dir
(cd ../obj/`uname|tr -d '/'`; ln -sf ../../src/*.[hc] .)
cp Makefile ../obj/`uname|tr -d '/'`/makefile
cd /magus/work/usr/mports/benchmarks/dbs/work/dbs-1.1.5/obj/MidnightBSD; /usr/bin/make all PREFIX=/usr/local
cc -O2 -pipe -DHAVE_SYS_PARAM_H -c dbsc.c -o dbsc.o
dbsc.c:120:1: warning: return type of 'main' is not 'int' [-Wmain-return-type]
void main(argc, argv)
^
dbsc.c:120:1: note: change return type to 'int'
void main(argc, argv)
^~~~
int
dbsc.c:584:27: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat]
cmd->start_time.tv_sec, cmd->start_time.tv_usec,
^~~~~~~~~~~~~~~~~~~~~~~
dbsc.c:587:25: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat]
cmd->end_time.tv_sec, cmd->end_time.tv_usec,
^~~~~~~~~~~~~~~~~~~~~
dbsc.c:1062:74: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat]
fprintf(stderr, "Current Time = (%-12d, %-12d)\n", current_time.tv_sec, current_time.tv_usec);
~~~~~ ^~~~~~~~~~~~~~~~~~~~
%-12ld
dbsc.c:1063:74: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat]
fprintf(stderr, "Offset = (%-12d, %-12d)\n", offset_time.tv_sec, offset_time.tv_usec);
~~~~~ ^~~~~~~~~~~~~~~~~~~
%-12ld
dbsc.c:1064:75: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat]
fprintf(stderr, "Origin Time = (%-12d, %-12d)\n", origin_time->tv_sec, origin_time->tv_usec);
~~~~~ ^~~~~~~~~~~~~~~~~~~~
%-12ld
6 warnings generated.
cc -O2 -pipe -DHAVE_SYS_PARAM_H -c scan.c -o scan.o
scan.c:162:10: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration]
if (strcmp(word, "") == 0) {
^
scan.c:162:10: note: include the header or explicitly provide a declaration for 'strcmp'
scan.c:167:7: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration]
strcpy(word, "}");
^
scan.c:167:7: note: include the header or explicitly provide a declaration for 'strcpy'
scan.c:189:88: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat]
fprintf(stderr, "Start Time =(%-12d %-12d)\n",(*scan)->start_time.tv_sec, (*scan)->start_time.tv_usec);
~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~
%-12ld
scan.c:190:88: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat]
fprintf(stderr, "End Time =(%-12d %-12d)\n",(*scan)->end_time.tv_sec, (*scan)->start_time.tv_usec);
~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~
%-12ld
4 warnings generated.
cc -O2 -pipe -DHAVE_SYS_PARAM_H -c dbs.c -o dbs.o
cc dbsc.o scan.o dbs.o -o dbsc -lm
cc -O2 -pipe -DHAVE_SYS_PARAM_H -c sendrecv.c -o sendrecv.o
In file included from sendrecv.c:68:
In file included from ./record.h:84:
/usr/include/netinet/tcp_debug.h:60:15: error: field has incomplete type 'struct tcpcb'
struct tcpcb td_cb;
^
/usr/include/netinet/tcp_debug.h:60:9: note: forward declaration of 'struct tcpcb'
struct tcpcb td_cb;
^
sendrecv.c:199:74: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
if ((cmd->fd = accept(cmd->sockfd, (struct sockaddr *)&cmd->d_address, &d_len)) < 0)
^~~~~~
/usr/include/sys/socket.h:661:69: note: passing argument to parameter here
int accept(int, struct sockaddr * __restrict, socklen_t * __restrict);
^
sendrecv.c:400:74: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
if ((cmd->fd = accept(cmd->sockfd, (struct sockaddr *)&cmd->d_address, &d_len)) < 0) {
^~~~~~
/usr/include/sys/socket.h:661:69: note: passing argument to parameter here
int accept(int, struct sockaddr * __restrict, socklen_t * __restrict);
^
sendrecv.c:760:88: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
if ((r = (int)recvfrom(cmd->fd, (char *)data + offset, traffic->packet, 0, dest, &length)) < 0)
^~~~~~~
/usr/include/sys/socket.h:674:96: note: passing argument to parameter here
ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict);
^
sendrecv.c:833:59: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat]
fprintf(stderr, "Current Time (%12d %12d)\n", tp.tv_sec, tp.tv_usec);
~~~~ ^~~~~~~~~~
%12ld
sendrecv.c:834:61: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat]
fprintf(stderr, "Sleep To (%12d %12d)\n", tpp->tv_sec, tpp->tv_usec);
~~~~ ^~~~~~~~~~~~
%12ld
sendrecv.c:842:59: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat]
fprintf(stderr, "Sleep Time (%12d %12d)\n", tp.tv_sec, tp.tv_usec);
~~~~ ^~~~~~~~~~
%12ld
sendrecv.c:846:59: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat]
fprintf(stderr, "Waked Up At (%12d %12d)\n", tp.tv_sec, tp.tv_usec);
~~~~ ^~~~~~~~~~
%12ld
sendrecv.c:872:75: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat]
DEBUGMSG2(3, fprintf(stderr, "Current Time (%12d %12d)\n", tp.tv_sec, tp.tv_usec));
~~~~ ^~~~~~~~~~
%12ld
./dbs.h:191:42: note: expanded from macro 'DEBUGMSG2'
#define DEBUGMSG2(A,B) if(debug >= (A)) {B; fflush(stderr);}
^
sendrecv.c:881:77: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat]
DEBUGMSG2(3, fprintf(stderr, "Alarm Set (%12d %12d)\n", tpp->tv_sec, tpp->tv_usec));
~~~~ ^~~~~~~~~~~~
%12ld
./dbs.h:191:42: note: expanded from macro 'DEBUGMSG2'
#define DEBUGMSG2(A,B) if(debug >= (A)) {B; fflush(stderr);}
^
9 warnings and 1 error generated.
*** Error code 1
Stop.
make[1]: stopped in /magus/work/usr/mports/benchmarks/dbs/work/dbs-1.1.5/obj/MidnightBSD
*** Error code 1
Stop.
make: stopped in /usr/mports/benchmarks/dbs