Skip to content

make warning on Linux #4

@janusloo

Description

@janusloo

Please supply the following with bug reports to allow for diagnostics:

  • Output of sslsplit -V
  • Output of uname -a
  • Exact command line arguments used to run sslsplit
  • Relevant part of debug mode (-D) output, if applicable
  • NAT redirection rules you are using, if applicable
  • List of failing unit tests in make test output
  • Other relevant data such as PCAPs, logs, screenshots etc

For build problems, please supply:

  • Output of uname -a
    Linux DietPi 4.14.22-v7+ #1096 SMP Mon Feb 26 19:14:22 GMT 2018 armv7l GNU/Linux
  • Full output of failed make including the header
    Not failed make but warnings:
    Via pkg-config: openssl libevent libevent_openssl libevent_pthreads check
    Build options: -DHAVE_NETFILTER
    uname -a: Linux DietPi 4.14.22-v7+ #1096 SMP Mon Feb 26 19:14:22 GMT 2018 armv7l GNU/Linux

pxythrmgr.c:94:50: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘long int’ [-Wformat=]
if (asprintf(&msg, "EXPIRED: thr=%d, time=%lld%s%s\n",
^
pxythrmgr.c: In function ‘pxy_thrmgr_print_thr_info’:
pxythrmgr.c:203:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (atime >= tctx->thrmgr->opts->expired_conn_check_period) {
^~
pxythrmgr.c:204:66: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 7 has type ‘time_t {aka long int}’ [-Wformat=]
if (asprintf(&smsg, "IDLE: thr=%d, id=%u, ce=%d cc=%d, at=%lld ct=%lld%s%s\n",
^
pxythrmgr.c:204:74: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 8 has type ‘time_t {aka long int}’ [-Wformat=]
if (asprintf(&smsg, "IDLE: thr=%d, id=%u, ce=%d cc=%d, at=%lld ct=%lld%s%s\n",
^
pxythrmgr.c:238:44: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t {aka unsigned int}’ [-Wformat=]
if (asprintf(&smsg, "STATS: thr=%d, mld=%lu, mfd=%d, mat=%lld, mct=%lld, iib=%llu, iob=%llu, eib=%llu, eob=%llu, swm=%lu, uwm=%lu, to=%lu, err=%lu, si=%u\n",
^
pxythrmgr.c:238:62: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 6 has type ‘time_t {aka long int}’ [-Wformat=]
if (asprintf(&smsg, "STATS: thr=%d, mld=%lu, mfd=%d, mat=%lld, mct=%lld, iib=%llu, iob=%llu, eib=%llu, eob=%llu, swm=%lu, uwm=%lu, to=%lu, err=%lu, si=%u\n",
^
pxythrmgr.c:238:72: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 7 has type ‘time_t {aka long int}’ [-Wformat=]
if (asprintf(&smsg, "STATS: thr=%d, mld=%lu, mfd=%d, mat=%lld, mct=%lld, iib=%llu, iob=%llu, eib=%llu, eob=%llu, swm=%lu, uwm=%lu, to=%lu, err=%lu, si=%u\n",
^
pxythrmgr.c:238:121: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 12 has type ‘size_t {aka unsigned int}’ [-Wformat=]
=%d, mld=%lu, mfd=%d, mat=%lld, mct=%lld, iib=%llu, iob=%llu, eib=%llu, eob=%llu, swm=%lu, uwm=%lu, to=%lu, err=%lu, si=%u\n",
^
pxythrmgr.c:238:130: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 13 has type ‘size_t {aka unsigned int}’ [-Wformat=]
%lu, mfd=%d, mat=%lld, mct=%lld, iib=%llu, iob=%llu, eib=%llu, eob=%llu, swm=%lu, uwm=%lu, to=%lu, err=%lu, si=%u\n",
^
pxythrmgr.c:238:138: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 14 has type ‘size_t {aka unsigned int}’ [-Wformat=]
=%d, mat=%lld, mct=%lld, iib=%llu, iob=%llu, eib=%llu, eob=%llu, swm=%lu, uwm=%lu, to=%lu, err=%lu, si=%u\n",
^
pxythrmgr.c:238:147: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 15 has type ‘size_t {aka unsigned int}’ [-Wformat=]
%lld, mct=%lld, iib=%llu, iob=%llu, eib=%llu, eob=%llu, swm=%lu, uwm=%lu, to=%lu, err=%lu, si=%u\n",
^

I don't recall having these warnings while on Dietpi Jessie. Maybe some configuration issue? The make was successful however but I am not sure if it is stable. Thank you for your time.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions