From owner-freebsd-ports-bugs@freebsd.org Fri Jan 22 03:19:31 2021 Return-Path: Delivered-To: freebsd-ports-bugs@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 8837A4E8B0C for ; Fri, 22 Jan 2021 03:19:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4DMPcz2rVHz3qCv for ; Fri, 22 Jan 2021 03:19:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 4F9064E8765; Fri, 22 Jan 2021 03:19:31 +0000 (UTC) Delivered-To: ports-bugs@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 4DE764E856E for ; Fri, 22 Jan 2021 03:19:31 +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 4DMPcz10frz3qB5 for ; Fri, 22 Jan 2021 03:19:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 06B2E17926 for ; Fri, 22 Jan 2021 03:19:31 +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 10M3JUgX012797 for ; Fri, 22 Jan 2021 03:19:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 10M3JUSB012796 for ports-bugs@FreeBSD.org; Fri, 22 Jan 2021 03:19:30 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 252884] www/gatling: does not listen on IPv4 Date: Fri, 22 Jan 2021 03:19:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: oldpopsong@qq.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2021 03:19:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252884 --- Comment #1 from Song Bo Run --- change the content of patch-gatling.c to the following solves the problem: --- gatling.c.orig 2021-01-22 11:07:51.264973000 +0800 +++ gatling.c 2021-01-22 11:07:51.264931000 +0800 @@ -100,7 +100,7 @@ int forksock[2]; #endif -#if defined(__OpenBSD__) || defined(__NetBSD__) +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) #define __broken_itojun_v6__ #endif @@ -1863,7 +1863,7 @@ Y=3Dsizeof(workgroup_utf16); x=3Dworkgroup; y=3Dworkgroup_utf16; -#ifdef __sun__ +#if defined(__sun__) || defined(__FreeBSD__) if (iconv(i,(const char**)&x,&X,&y,&Y)) panic("UTF-16 conversion of workgroup failed.\n"); #else if (iconv(i,&x,&X,&y,&Y)) panic("UTF-16 conversion of workgroup failed.\n"); However gatling will complain that FreeBSD does not have real IPv6 support: % gatling WARNING: We are taking heavy losses working around itojun KAME madness here. Please consider using an operating system with real IPv6 support instead! starting_up 0 :: 8000 start_ftp 0 :: 2121 And the performance is far more bad comparing with Linux version :( --=20 You are receiving this mail because: You are the assignee for the bug.=