Bug 280304 - net/dante: build fail
Summary: net/dante: build fail
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-15 18:07 UTC by Ivan Rozhuk
Modified: 2024-07-16 08:16 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (danfe)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Rozhuk 2024-07-15 18:07:32 UTC
...
--- config_parse.lo ---
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -isystem /usr/local/include -DDEBUG=0 -D_FORTIFY_SOURCE=2 -DFD_SETSIZE=65536 -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=0 -DSTANDALONE_UNIT_TEST=0 -O2 -pipe -O3 -pipe -funroll-loops -mretpoline -fno-delete-null-pointer-checks -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -fdebug-prefix-map=/tmp/ports/usr/ports/net/dante/work/dante-1.4.3=. -O2 -ggdb -pipe -Wbounded -MT config_parse.lo -MD -MP -MF .deps/config_parse.Tpo -c config_parse.c  -fPIC -DPIC -o .libs/config_parse.o
--- udp.lo ---
mv -f .deps/udp.Tpo .deps/udp.Plo
--- tostring.lo ---
mv -f .deps/tostring.Tpo .deps/tostring.Plo
--- upnp.lo ---
warning: unknown warning option '-Wbounded'; did you mean '-Wundef'? [-Wunknown-warning-option]
upnp.c:62:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
   62 | socks_initupnp(gw, emsg, emsglen)
      | ^
upnp.c:211:74: error: too few arguments to function call, expected 7, have 5
  211 |       devtype = UPNP_GetValidIGD(dev, &url, &data, myaddr, sizeof(myaddr));
      |                 ~~~~~~~~~~~~~~~~                                         ^
/usr/local/include/miniupnpc/miniupnpc.h:122:1: note: 'UPNP_GetValidIGD' declared here
  122 | UPNP_GetValidIGD(struct UPNPDev * devlist,
      | ^                ~~~~~~~~~~~~~~~~~~~~~~~~~
  123 |                  struct UPNPUrls * urls,
      |                  ~~~~~~~~~~~~~~~~~~~~~~~
  124 |                  struct IGDdatas * data,
      |                  ~~~~~~~~~~~~~~~~~~~~~~~
  125 |                  char * lanaddr, int lanaddrlen,
      |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  126 |                  char * wanaddr, int wanaddrlen);
      |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
upnp.c:310:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
  310 | upnp_negotiate(s, packet, gw, emsg, emsglen)
      | ^
upnp.c:831:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
  831 | sighandler(sig)
      | ^
upnp.c:850:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
  850 | upnpcleanup(s)
      | ^
5 warnings and 1 error generated.
*** [upnp.lo] Error code 1
...
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-07-16 08:13:29 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5a73a52238fef2d144f2a4eeeea16a3d09f5cad9

commit 5a73a52238fef2d144f2a4eeeea16a3d09f5cad9
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2024-07-16 08:11:22 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2024-07-16 08:11:22 +0000

    net/dante: unbreak the port's build (chase commit a270dbfaa9ce)

    PR:             280298, 280304
    Reported by:    Mark McBride, pkg-fallout

 net/dante/files/patch-lib_upnp.c (new) | 15 +++++++++++++++
 1 file changed, 15 insertions(+)