=> "/opt/local/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-trunk-x86_64/net/barnyard", "all", "MYSQL_VERSION_REQD=mariadb114", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for barnyard-0.2.0nb5 --- ./stamp-h.in --- cd . && autoheader WARNING: 'autoheader' is missing on your system. You should only need it if you modified 'acconfig.h' or 'configure.in'. You might want to install the Autoconf and GNU m4 packages. Grab them from any GNU archive site. --- stamp-h --- cd . && CONFIG_FILES= CONFIG_HEADERS=config.h /bin/sh ./config.status creating config.h config.h is unchanged --- config.h --- --- all-recursive-am --- /opt/local/bin/bmake all-recursive --- all-recursive --- Making all in src --- all-recursive --- Making all in output-plugins --- op_decode.o --- --- op_fast.o --- --- op_decode.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c op_decode.c --- op_fast.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c op_fast.c --- op_decode.o --- op_decode.c: In function 'DecodeEthPkt': op_decode.c:54:15: warning: variable 'pkt_len' set but not used [-Wunused-but-set-variable] 54 | u_int32_t pkt_len; /* suprisingly, the length of the packet */ | ^~~~~~~ op_decode.c: In function 'DecodePppPkt': op_decode.c:198:15: warning: variable 'len' set but not used [-Wunused-but-set-variable] 198 | u_int32_t len; | ^~~ op_decode.c: In function 'DecodePPPoEPkt': op_decode.c:276:15: warning: variable 'ppppoep' set but not used [-Wunused-but-set-variable] 276 | PPPoEHdr *ppppoep=0; | ^~~~~~~ op_decode.c:274:15: warning: variable 'pkt_len' set but not used [-Wunused-but-set-variable] 274 | u_int32_t pkt_len; /* suprisingly, the length of the packet */ | ^~~~~~~ --- op_plugbase.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c op_plugbase.c --- op_logdump.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c op_logdump.c --- op_alert_syslog.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c op_alert_syslog.c --- op_log_pcap.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c op_log_pcap.c --- op_acid_db.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c op_acid_db.c op_acid_db.c: In function 'MysqlClose': op_acid_db.c:1216:8: warning: the address of 'mysql_close' will always evaluate as 'true' [-Waddress] 1216 | if(mysql_close) | ^~~~~~~~~~~ --- op_alert_csv.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c op_alert_csv.c --- op_sguil.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c op_sguil.c op_sguil.c: In function 'OpSguil_LogConfig': op_sguil.c:168:19: warning: variable 'data' set but not used [-Wunused-but-set-variable] 168 | OpSguil_Data *data = NULL; | ^~~~ op_sguil.c: In function 'OpSguil_Start': op_sguil.c:250:23: warning: comparison between pointer and integer 250 | if((data->nospin) == NULL) | ^~ op_sguil.c: In function 'OpSguil_Log': op_sguil.c:308:5: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration] 308 | bzero(syslogMessage, SYSLOG_BUF); | ^~~~~ op_sguil.c:308:5: warning: incompatible implicit declaration of built-in function 'bzero' [-Wbuiltin-declaration-mismatch] op_sguil.c: In function 'sgInsertUDPData': op_sguil.c:494:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 494 | if(!p->udph) | ^~ op_sguil.c:496:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 496 | if(snprintf(sql_buffer, MAX_QUERY_SIZE, | ^~ op_sguil.c: In function 'sgInsertICMPData': op_sguil.c:533:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 533 | if(!p->icmph) | ^~ op_sguil.c:535:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 535 | if(p->icmph->icmp_type == 0 || p->icmph->icmp_type == 8 || | ^~ --- op_alert_syslog2.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c op_alert_syslog2.c --- op_alert_console.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c op_alert_console.c --- libop.a --- rm -f libop.a ar cru libop.a op_decode.o op_fast.o op_plugbase.o op_logdump.o op_alert_syslog.o op_log_pcap.o op_acid_db.o op_alert_csv.o op_sguil.o op_alert_syslog2.o op_alert_console.o ranlib libop.a Making all in input-plugins --- dp_alert.o --- --- dp_log.o --- --- dp_alert.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c dp_alert.c --- dp_log.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c dp_log.c dp_log.c: In function 'LogDpReadRecord': dp_log.c:165:13: warning: variable 'record' set but not used [-Wunused-but-set-variable] 165 | Record *record; | ^~~~~~ dp_log.c:164:9: warning: variable 'fd' set but not used [-Wunused-but-set-variable] 164 | int fd; | ^~ dp_log.c: In function 'LogDpPrintRecord': dp_log.c:269:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 269 | if(data == NULL) | ^~ dp_log.c:272:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 272 | record = (UnifiedLogRecord *)data; | ^~~~~~ --- dp_plugbase.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c dp_plugbase.c --- dp_stream_stat.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c dp_stream_stat.c --- dp_plugbase.o --- dp_plugbase.c: In function 'DataProcessorExit': dp_plugbase.c:143:27: warning: variable 'opln' set but not used [-Wunused-but-set-variable] 143 | OutputPluginListNode *opln; | ^~~~ --- dp_stream_stat.o --- dp_stream_stat.c: In function 'StreamStatDpReadFileHeader': dp_stream_stat.c:102:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'ssize_t' {aka 'long int'} [-Wformat=] 102 | printf("ERROR => Bad header in stream stat spool file \"%s\": %s " | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 103 | "[size: %d should be %d]\n", sph->filepath, strerror(errno), 104 | bytes_read, sizeof(StreamStatFileHeader)); | ~~~~~~~~~~ | | | ssize_t {aka long int} dp_stream_stat.c:103:26: note: format string is defined here 103 | "[size: %d should be %d]\n", sph->filepath, strerror(errno), | ~^ | | | int | %ld dp_stream_stat.c:102:16: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=] 102 | printf("ERROR => Bad header in stream stat spool file \"%s\": %s " | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 103 | "[size: %d should be %d]\n", sph->filepath, strerror(errno), 104 | bytes_read, sizeof(StreamStatFileHeader)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int dp_stream_stat.c:103:39: note: format string is defined here 103 | "[size: %d should be %d]\n", sph->filepath, strerror(errno), | ~^ | | | int | %ld --- libdp.a --- rm -f libdp.a ar cru libdp.a dp_alert.o dp_log.o dp_plugbase.o dp_stream_stat.o ranlib libdp.a --- barnyard.o --- --- mstring.o --- --- barnyard.o --- gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c barnyard.c --- mstring.o --- gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c mstring.c --- strlcatu.o --- gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c strlcatu.c --- strlcpyu.o --- gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c strlcpyu.c --- util.o --- gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c util.c --- spool.o --- --- util.o --- util.c: In function 'InitProtoNames': util.c:278:17: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 278 | tmp = protocol_names[i]; | ^ util.c:280:21: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 280 | for(tmp = protocol_names[i]; *tmp != 0; tmp++) | ^ util.c:285:22: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] 285 | snprintf(protoname, 10, "PROTO%03d", i); | ^~~~~~~~~ | | | u_char * {aka unsigned char *} In file included from /usr/include/stdio.h:152, from util.c:17: /usr/include/iso/stdio_c99.h:82:21: note: expected 'char * restrict' but argument is of type 'u_char *' {aka 'unsigned char *'} 82 | extern int snprintf(char *_RESTRICT_KYWD, size_t, const char *_RESTRICT_KYWD, | ^ util.c:286:40: warning: pointer targets in passing argument 1 of 'strdup' differ in signedness [-Wpointer-sign] 286 | protocol_names[i] = strdup(protoname); | ^~~~~~~~~ | | | u_char * {aka unsigned char *} In file included from util.c:19: /usr/include/string.h:142:21: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 142 | extern char *strdup(const char *); | ^~~~~~~~~~~~ util.c: In function 'fasthex': util.c:301:11: warning: pointer targets in assignment from 'u_char *' {aka 'unsigned char *'} to 'char *' differ in signedness [-Wpointer-sign] 301 | index = xdata; | ^ util.c:302:9: warning: pointer targets in assignment from 'u_char *' {aka 'unsigned char *'} to 'char *' differ in signedness [-Wpointer-sign] 302 | end = xdata + length; | ^ util.c: In function 'PrintNetData': util.c:322:9: warning: variable 'j' set but not used [-Wunused-but-set-variable] 322 | int j; /* counter */ | ^ --- spool.o --- gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c spool.c --- sid.o --- gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c sid.c --- debug.o --- gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c debug.c --- classification.o --- gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c classification.c --- CommandLineArgs.o --- gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c CommandLineArgs.c --- ConfigFile.o --- gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c ConfigFile.c --- ProgVars.o --- gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/opt/local/include/mysql -I/opt/local/include/mysql -I/opt/local/include -DBSD_COMP -DENABLE_MYSQL -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -c ProgVars.c --- ConfigFile.o --- ConfigFile.c: In function 'ConfigFile_Parse': ConfigFile.c:100:17: warning: 'strncat' specified bound depends on the length of the source argument [-Wstringop-overflow=] 100 | strncat(new_line, saved_line, strlen(saved_line)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ConfigFile.c:100:17: note: length computed here 100 | strncat(new_line, saved_line, strlen(saved_line)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ConfigFile.c:101:17: warning: 'strncat' specified bound depends on the length of the source argument [-Wstringop-overflow=] 101 | strncat(new_line, index, strlen(index)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ConfigFile.c:101:17: note: length computed here 101 | strncat(new_line, index, strlen(index)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- barnyard --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/mysql -I/opt/local/include -Wall -L/opt/local/lib -Wl,-R/opt/local/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -lnsl -L/opt/local/lib/mysql -o barnyard barnyard.o mstring.o strlcatu.o strlcpyu.o util.o spool.o sid.o debug.o classification.o CommandLineArgs.o ConfigFile.o ProgVars.o output-plugins/libop.a input-plugins/libdp.a -lsocket -Wl,-R/opt/local/lib/mysql -lresolv -lz -lssl -lmysqlclient --- config.h ---