From owner-svn-ports-head@freebsd.org Thu Aug 20 09:06:16 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5065E3B79EF; Thu, 20 Aug 2020 09:06:16 +0000 (UTC) (envelope-from eugen@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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BXJfc1Twnz46nr; Thu, 20 Aug 2020 09:06:16 +0000 (UTC) (envelope-from eugen@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1673911E23; Thu, 20 Aug 2020 09:06:16 +0000 (UTC) (envelope-from eugen@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 07K96FrM004569; Thu, 20 Aug 2020 09:06:15 GMT (envelope-from eugen@FreeBSD.org) Received: (from eugen@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 07K96Fg6004566; Thu, 20 Aug 2020 09:06:15 GMT (envelope-from eugen@FreeBSD.org) Message-Id: <202008200906.07K96Fg6004566@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: eugen set sender to eugen@FreeBSD.org using -f From: Eugene Grosbein Date: Thu, 20 Aug 2020 09:06:15 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r545509 - head/net/echoping/files X-SVN-Group: ports-head X-SVN-Commit-Author: eugen X-SVN-Commit-Paths: head/net/echoping/files X-SVN-Commit-Revision: 545509 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Aug 2020 09:06:16 -0000 Author: eugen Date: Thu Aug 20 09:06:14 2020 New Revision: 545509 URL: https://svnweb.freebsd.org/changeset/ports/545509 Log: net/echoping: fix build with -fno-common (clang 11 and gcc 10) PORTREVISION not bumped as it fixes build for FreeBSD 13. Reported by: pkg-fallout Added: head/net/echoping/files/patch-echoping.c (contents, props changed) head/net/echoping/files/patch-echoping.h (contents, props changed) head/net/echoping/files/patch-smtp.c (contents, props changed) Modified: head/net/echoping/files/patch-http.c Added: head/net/echoping/files/patch-echoping.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/echoping/files/patch-echoping.c Thu Aug 20 09:06:14 2020 (r545509) @@ -0,0 +1,25 @@ +--- echoping.c.orig 2020-08-20 15:47:00 UTC ++++ echoping.c +@@ -38,6 +38,22 @@ struct result results[MAX_ITERATIONS]; + struct timeval good_results[MAX_ITERATIONS]; + extern int tvcmp(); + ++boolean timeout_flag; ++static char *server; ++#ifdef LIBIDN ++static char *locale_server, *ace_server, *utf8_server; ++#endif ++ ++static init_f plugin_init; ++static start_f plugin_start; ++static start_raw_f plugin_raw_start; ++static execute_f plugin_execute; ++static execute_f plugin_execute; ++static terminate_f plugin_terminate; ++ ++struct timeval null_timeval; ++static struct timeval max_timeval; ++ + int + main(argc, argv) + int argc; Added: head/net/echoping/files/patch-echoping.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/echoping/files/patch-echoping.h Thu Aug 20 09:06:14 2020 (r545509) @@ -0,0 +1,45 @@ +--- echoping.h.orig 2020-08-20 15:39:43 UTC ++++ echoping.h +@@ -121,7 +121,6 @@ struct result + struct timeval timevalue; + }; + +-boolean timeout_flag; + struct echoping_struct + { + boolean udp; /* Use the UDP protocol (TCP is the default) */ +@@ -136,21 +135,15 @@ typedef struct echoping_struct echoping_options; + /* Initializes the plugin with its arguments. Returns the port name or number or NULL if the plugin wants to use the raw interface. */ + typedef char *(*init_f) (const int argc, const char **argv, + const echoping_options global_options); +-init_f plugin_init; + typedef void (*start_f) (struct addrinfo *); +-start_f plugin_start; + typedef void (*start_raw_f) (); +-start_raw_f plugin_raw_start; + typedef int (*execute_f) (); +-execute_f plugin_execute; + typedef void (*terminate_f) (); +-terminate_f plugin_terminate; + #endif + + #endif + +-struct timeval null_timeval; +-struct timeval max_timeval; ++extern struct timeval null_timeval; + + #define ECHO_TCP_PORT "echo" + #define DISCARD_TCP_PORT "discard" +@@ -172,11 +165,6 @@ struct timeval max_timeval; + #define USE_SMTP 6 + + #define CHARGENERATED " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefg"; +- +-char *server; +-#ifdef LIBIDN +-char *locale_server, *ace_server, *utf8_server; +-#endif + + /* My functions */ + Modified: head/net/echoping/files/patch-http.c ============================================================================== --- head/net/echoping/files/patch-http.c Thu Aug 20 08:22:13 2020 (r545508) +++ head/net/echoping/files/patch-http.c Thu Aug 20 09:06:14 2020 (r545509) @@ -1,6 +1,15 @@ ---- http.c.orig 2015-06-03 13:06:16 UTC +--- http.c.orig 2019-12-29 10:14:41 UTC +++ http.c -@@ -113,6 +113,8 @@ read_from_server(CHANNEL fs, short ssl, +@@ -6,7 +6,7 @@ + #include "HTParse.h" + + +-char big_recvline[MAXTOREAD]; ++static char big_recvline[MAXTOREAD]; + + char * + make_http_sendline(char *url, char *host, int port, int nocache) +@@ -113,6 +113,8 @@ read_from_server(CHANNEL fs, short ssl, boolean accept /* 204 No Content is not an error, message body is empty by definition, see RFC 2616 */ if (reply_code == 204) return 0; /* zero bytes is correct */ Added: head/net/echoping/files/patch-smtp.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/echoping/files/patch-smtp.c Thu Aug 20 09:06:14 2020 (r545509) @@ -0,0 +1,11 @@ +--- smtp.c.orig 2019-12-29 10:14:41 UTC ++++ smtp.c +@@ -8,7 +8,7 @@ + + #ifdef SMTP + +-char big_recvline[MAXTOREAD]; ++static char big_recvline[MAXTOREAD]; + + int + smtp_read_response_from_server(FILE * fs)