From owner-freebsd-ports@FreeBSD.ORG Fri May 12 21:01:03 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7BC0516AF2D for ; Fri, 12 May 2006 21:01:03 +0000 (UTC) (envelope-from Cy.Schubert@komquats.com) Received: from spqr.komquats.com (S0106002078125c0c.gv.shawcable.net [24.108.150.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4222543D76 for ; Fri, 12 May 2006 21:01:01 +0000 (GMT) (envelope-from Cy.Schubert@komquats.com) Received: from cwsys.cwsent.com (cwsys [10.1.1.1]) by spqr.komquats.com (Postfix) with ESMTP id 3C8814C5C5 for ; Fri, 12 May 2006 14:01:01 -0700 (PDT) Received: from cwsys (localhost [127.0.0.1]) by cwsys.cwsent.com (8.13.6/8.13.6) with ESMTP id k4CL0wZx001036 for ; Fri, 12 May 2006 14:00:59 -0700 (PDT) (envelope-from Cy.Schubert@komquats.com) Message-Id: <200605122100.k4CL0wZx001036@cwsys.cwsent.com> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.komquats.com/ To: freebsd-ports@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 12 May 2006 14:00:58 -0700 Sender: Cy.Schubert@komquats.com Subject: net/tcpview bug X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Cy Schubert List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 May 2006 21:01:03 -0000 I've noticed quirky little bug in net/tcpview that manifests itself with various outputs being redirected to stdout rather than the Motif widget they are supposed to display in. The application has its own printf function which, depending on the value of a global variable called Zflag, will either vsprintf the output to a buffer destined to be displayed in the Motif window or spit it out to stdout using fprintf. My make.conf contains the statement, CFLAGS=-O -pipe. This works for buildworld, buildkernel, and all my 1170 installed ports so far, except net/tcpview. Building tcpview with make CFLAGS=-O0 fixes the problem. As a heads up, when I get the chance I will commit a patch to the port to fix this problem, unless some other committer beats me to it. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org e**(i*pi)+1=0