From nobody Wed Jan 18 22:31:37 2023 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ny0qG30nnz2tx6H for ; Wed, 18 Jan 2023 22:31:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ny0qG0sC3z4Gjk for ; Wed, 18 Jan 2023 22:31:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674081098; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8TbWGLFzxXpcn9P7eAWtffQwI9vGxaKVFHLUSGi+NXs=; b=j2mzc7BWaQUgIKepLnVllbZWHAuNA0TNMWluNZYjFTtvboPf0z7zpv9LP9UbfaAl5e+Uj4 rZid39kGMl4inPyoDaJ6rKiU51oUgnidWn7f+WodmCnA4MDp/jg09xpEduUg1fHcAWkouK htqbJr3cALnAOI2RtAMQreU6LHGr1xjQCiu5TVqPz0VQlpk8296CL909RkDHNRvrnbwP1J tgzES/J/ujQs+ikCuvIkKswDLU798o9vfIe0GnL/JaLbbu0yrfgpxiO6ObAQN/OfFfyXz6 lF0GN2c7bKofQ7mZ+1DpDBzDfIUYsQBkUaA3ae8ps01vUsGretI7CBq+hASPFA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674081098; a=rsa-sha256; cv=none; b=v/ykMKB93aZf72KzfzNWHzAHHTIAVrgENNXS8Y7f5mKQovpK1qNYNE84tCVqlyJQ18vmGE YfDOWGZf1um7udHA4kCzh+6r8jyYSWfoHSvy3zDSLjkq3hlR3xkf262VGut3RugYbhx78o FBdL7Sf4kXpyGn9wEbTAht+MV6dd6nkHBMC0VhZ9opXdl4mHlSe3pgIYti/MwspoEJGd3U 7xE4qOX3pxrw19vOgl+Spp/VwJ0SFG9F4PwbLd4Qf6xpgm9oqMh1M01Ss0BeyIdcxZ6Qcw 3MdkifnNgdYQQxRY7dCvu2Zt6FdgU+akqPUGj+DoH1sa5KPW64T/Dz1Sgycmmw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Ny0qF72LNzSc3 for ; Wed, 18 Jan 2023 22:31:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 30IMVbdM013411 for ; Wed, 18 Jan 2023 22:31:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 30IMVbrX013410 for ports-bugs@FreeBSD.org; Wed, 18 Jan 2023 22:31:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 269039] net/libvncserver: error: use of undeclared identifier 'PF_INET' Date: Wed, 18 Jan 2023 22:31:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: vvd@unislabs.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: nc@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269039 Bug ID: 269039 Summary: net/libvncserver: error: use of undeclared identifier 'PF_INET' Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: nc@FreeBSD.org Reporter: vvd@unislabs.com Assignee: nc@FreeBSD.org Flags: maintainer-feedback?(nc@FreeBSD.org) 13.1-p5 amd64. After this commit https://cgit.freebsd.org/ports/commit/?id=3D180d33e6f234e6c485ec29f7c4d2367= b06e28ef1 build fails: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= client_examples/sshtunnel.c:56:18: warning: implicit declaration of function 'accept' is invalid in C99 [-Wimplicit-function-declaration] proxy_sock =3D accept(data->local_listensock, (struct sockaddr *)&sin, &sinlen); ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= client_examples/sshtunnel.c:63:5: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] rfbCloseSocket(data->local_listensock); ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= rfb/rfbproto.h:117:6: note: expanded from macro 'rfbCloseSocket' _rfbCloseSocket(s); \ ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= rfb/rfbproto.h:107:25: note: expanded from macro '_rfbCloseSocket' #define _rfbCloseSocket close ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= client_examples/sshtunnel.c:94:19: warning: implicit declaration of function 'recv' is invalid in C99 [-Wimplicit-function-declaration] len =3D recv(proxy_sock, buf, sizeof(buf), 0); ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= client_examples/sshtunnel.c:127:21: warning: implicit declaration of function 'send' is invalid in C99 [-Wimplicit-function-declaration] i =3D send(proxy_sock, buf + wr, len - wr, 0); ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= client_examples/sshtunnel.c:146:5: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] rfbCloseSocket(proxy_sock); ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= rfb/rfbproto.h:117:6: note: expanded from macro 'rfbCloseSocket' _rfbCloseSocket(s); \ ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= rfb/rfbproto.h:107:25: note: expanded from macro '_rfbCloseSocket' #define _rfbCloseSocket close ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= client_examples/sshtunnel.c:154:5: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] rfbCloseSocket(data->ssh_sock); ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= rfb/rfbproto.h:117:6: note: expanded from macro 'rfbCloseSocket' _rfbCloseSocket(s); \ ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= rfb/rfbproto.h:107:25: note: expanded from macro '_rfbCloseSocket' #define _rfbCloseSocket close ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= client_examples/sshtunnel.c:213:22: warning: implicit declaration of function 'socket' is invalid in C99 [-Wimplicit-function-declaration] data->ssh_sock =3D socket(PF_INET, SOCK_STREAM, IPPROTO_TCP); ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= client_examples/sshtunnel.c:213:29: error: use of undeclared identifier 'PF_INET' data->ssh_sock =3D socket(PF_INET, SOCK_STREAM, IPPROTO_TCP); ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= client_examples/sshtunnel.c:213:38: error: use of undeclared identifier 'SOCK_STREAM' data->ssh_sock =3D socket(PF_INET, SOCK_STREAM, IPPROTO_TCP); ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= client_examples/sshtunnel.c:220:25: error: use of undeclared identifier 'AF_INET' hints.ai_family =3D AF_INET; ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= client_examples/sshtunnel.c:221:25: error: use of undeclared identifier 'SOCK_STREAM' hints.ai_socktype =3D SOCK_STREAM; ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= client_examples/sshtunnel.c:224:19: error: use of undeclared identifier 'AF_INET' sin.sin_family =3D AF_INET; ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= client_examples/sshtunnel.c:233:8: warning: implicit declaration of function 'connect' is invalid in C99 [-Wimplicit-function-declaration] if(connect(data->ssh_sock, (struct sockaddr*)(&sin), sizeof(struct sockaddr_in)) !=3D 0) { ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= client_examples/sshtunnel.c:288:37: error: use of undeclared identifier 'PF_INET' data->local_listensock =3D socket(PF_INET, SOCK_STREAM, IPPROTO_TCP); ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= client_examples/sshtunnel.c:288:46: error: use of undeclared identifier 'SOCK_STREAM' data->local_listensock =3D socket(PF_INET, SOCK_STREAM, IPPROTO_TCP); ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= client_examples/sshtunnel.c:293:22: error: use of undeclared identifier 'AF_INET' sin.sin_family =3D AF_INET; ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= client_examples/sshtunnel.c:301:14: warning: implicit declaration of function 'bind' is invalid in C99 [-Wimplicit-function-declaration] if(-1 =3D=3D bind(data->local_listensock, (struct sockaddr *)&sin, sinl= en)) { ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= client_examples/sshtunnel.c:305:14: warning: implicit declaration of function 'listen' is invalid in C99 [-Wimplicit-function-declaration] if(-1 =3D=3D listen(data->local_listensock, 1)) { ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= client_examples/sshtunnel.c:311:9: warning: implicit declaration of function 'getsockname' is invalid in C99 [-Wimplicit-function-declaration] if (getsockname(data->local_listensock, (struct sockaddr *)&sin, &sinle= n ) =3D=3D -1){ ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= client_examples/sshtunnel.c:340:5: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] rfbCloseSocket(data->local_listensock); ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= rfb/rfbproto.h:117:6: note: expanded from macro 'rfbCloseSocket' _rfbCloseSocket(s); \ ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= rfb/rfbproto.h:107:25: note: expanded from macro '_rfbCloseSocket' #define _rfbCloseSocket close ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= client_examples/sshtunnel.c:341:5: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] rfbCloseSocket(data->ssh_sock); ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= rfb/rfbproto.h:117:6: note: expanded from macro 'rfbCloseSocket' _rfbCloseSocket(s); \ ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= rfb/rfbproto.h:107:25: note: expanded from macro '_rfbCloseSocket' #define _rfbCloseSocket close ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= client_examples/sshtunnel.c:423:6: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] rfbCloseSocket(client->sock); ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= rfb/rfbproto.h:117:6: note: expanded from macro 'rfbCloseSocket' _rfbCloseSocket(s); \ ^ /tmp/work/usr/ports/net/libvncserver/work/libvncserver-LibVNCServer-0.9.14/= rfb/rfbproto.h:107:25: note: expanded from macro '_rfbCloseSocket' #define _rfbCloseSocket close ^ 14 warnings and 8 errors generated. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Maybe maintainer forgot to commit patch file net/libvncserver/files/patch-client__examples_sshtunnel.c: --- client_examples/sshtunnel.c.orig +++ client_examples/sshtunnel.c @@ -10,6 +10,9 @@ * - added name resolution for the ssh host */ +#include +#include +#include #include #include #include --=20 You are receiving this mail because: You are the assignee for the bug.=