You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* Compression is enabled */#defineCOMPRESSED_OUTPUT 1
#undef FORCED_COMPRESSED_OUTPUT_OFF
Step2: modify p2f.c as follows:
// decomment line 1831zflush(ctx->output);
Step3: then make
$make
Error occurs:
../src/p2f.c: In function'flow_record_list_print_json':
../src/include/output.h:115:35: error: too few arguments to function'gzflush'#define zflush(FILEp) (gzflush(FILEp))
^~~~~~~
../src/p2f.c:1831:5: note: in expansion of macro 'zflush'
zflush(ctx->output);
^~~~~~
In file included from ../src/include/output.h:103,
from ../src/include/hdr_dsc.h:47,
from ../src/include/p2f.h:59,
from ../src/include/pkt_proc.h:47,
from ../src/p2f.c:58:
/usr/local/include/zlib.h:1531:21: note: declared here
ZEXTERN int ZEXPORT gzflush OF((gzFile file, int flush));
This will happen when zflush called if gzip enabled.
Reason
According to Linux specification, gzflush needs 2 parameters which the last should be either:
Z_SYNC_FLUSH
Z_FULL_FLUSH
Z_FINISH
But there's only 1 parameter in definition of zflush:
Files involved
joy-master/joy_config.h
joy-master/src/p2f.c
Platform
Ubuntu 14.04 4.4.0-148
Problem
Step1: modify
joy_config.h
as follows:Step2: modify
p2f.c
as follows:Step3: then make
$make
Error occurs:
This will happen when zflush called if gzip enabled.
Reason
According to Linux specification, gzflush needs 2 parameters which the last should be either:
But there's only 1 parameter in definition of zflush:
Fix
The text was updated successfully, but these errors were encountered: