From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jul 30 06:00:08 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A27916A41A for ; Mon, 30 Jul 2007 06:00:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6977713C46E for ; Mon, 30 Jul 2007 06:00:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l6U608q2017503 for ; Mon, 30 Jul 2007 06:00:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l6U6081X017502; Mon, 30 Jul 2007 06:00:08 GMT (envelope-from gnats) Resent-Date: Mon, 30 Jul 2007 06:00:08 GMT Resent-Message-Id: <200707300600.l6U6081X017502@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Don Lewis Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C732116A417 for ; Mon, 30 Jul 2007 05:51:17 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from gw.catspoiler.org (adsl-75-1-14-242.dsl.scrm01.sbcglobal.net [75.1.14.242]) by mx1.freebsd.org (Postfix) with ESMTP id A5E7313C458 for ; Mon, 30 Jul 2007 05:51:17 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from mousie.catspoiler.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id l6U5pG4i089421 for ; Sun, 29 Jul 2007 22:51:16 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Received: from mousie.catspoiler.org (localhost [127.0.0.1]) by mousie.catspoiler.org (8.14.1/8.14.1) with ESMTP id l6U5pG3A064458 for ; Sun, 29 Jul 2007 22:51:16 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Received: (from dl@localhost) by mousie.catspoiler.org (8.14.1/8.14.1/Submit) id l6U5pGdM064457; Sun, 29 Jul 2007 22:51:16 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <200707300551.l6U5pGdM064457@mousie.catspoiler.org> Date: Sun, 29 Jul 2007 22:51:16 -0700 (PDT) From: Don Lewis To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/115028: [patch] audio/snd build fails due to complex trig confusion X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Don Lewis List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2007 06:00:08 -0000 >Number: 115028 >Category: ports >Synopsis: [patch] audio/snd build fails due to complex trig confusion >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 30 06:00:07 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Don Lewis >Release: FreeBSD 7.0-CURRENT i386 >Organization: totally disorganized >Environment: System: FreeBSD mousie.catspoiler.org 7.0-CURRENT FreeBSD 7.0-CURRENT #16: Fri Jul 27 21:11:42 PDT 2007 dl@mousie.catspoiler.org:/usr/obj/usr/src/sys/GENERICDDB i386 >Description: The audio/snd port fails to build on -CURRENT because the code in the test program that configure uses to detect the presence of complex trig support gets optimized away. The empty program then compiles, links, and runs without error, fooling configure into thinking that complex trig is supported. When the actual code attempts to use the complex trig functions, the linker returns an error because the functions are not present in the system libraries. >How-To-Repeat: Attempt to build the audio/snd port on 7-CURRENT with the system gcc. >Fix: One possible fix is to declare the variable in the test program as a volatile to keep the code being tested from being optimized away. --- configure.orig 2004-11-16 06:47:00.000000000 -0800 +++ configure 2007-07-29 22:04:42.000000000 -0700 @@ -8335,7 +8335,7 @@ int main () { - _Complex double val; + volatile _Complex double val; val = ccosh(cacosh(1.5) / 100.0) ; >Release-Note: >Audit-Trail: >Unformatted: