From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Dec 11 20:40:01 2012 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F2BC423F for ; Tue, 11 Dec 2012 20:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id C65248FC20 for ; Tue, 11 Dec 2012 20:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBBKe0IC007457 for ; Tue, 11 Dec 2012 20:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBBKe0EN007453; Tue, 11 Dec 2012 20:40:00 GMT (envelope-from gnats) Resent-Date: Tue, 11 Dec 2012 20:40:00 GMT Resent-Message-Id: <201212112040.qBBKe0EN007453@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, Mark Atkinson Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2803EE8E for ; Tue, 11 Dec 2012 20:36:15 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 057618FC12 for ; Tue, 11 Dec 2012 20:36:15 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qBBKaEFT032331 for ; Tue, 11 Dec 2012 20:36:14 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id qBBKaELK032330; Tue, 11 Dec 2012 20:36:14 GMT (envelope-from nobody) Message-Id: <201212112036.qBBKaELK032330@red.freebsd.org> Date: Tue, 11 Dec 2012 20:36:14 GMT From: Mark Atkinson To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/174376: [patch] audio/audacity: fix build with clang X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Dec 2012 20:40:01 -0000 >Number: 174376 >Category: ports >Synopsis: [patch] audio/audacity: fix build with clang >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Dec 11 20:40:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Mark Atkinson >Release: FreeBSD 10.0-CURRENT >Organization: >Environment: FreeBSD 10.0-CURRENT #15 r243027 >Description: Audacity has a link time failure during compilation in libnyquist with clang as the base compiler: ./lib-src/libnyquist.a(fftlib.o): In function `fftrecurs': nyquist/ffts/src/fftlib.c:(.text+0x139): undefined reference to `bfstages' nyquist/ffts/src/fftlib.c:(.text+0x303): undefined reference to `bfstages' ./lib-src/libnyquist.a(fftlib.o): In function `ffts1': nyquist/ffts/src/fftlib.c:(.text+0x382): undefined reference to `bitrevR2' nyquist/ffts/src/fftlib.c:(.text+0x496): undefined reference to `bfR4' nyquist/ffts/src/fftlib.c:(.text+0x4c7): undefined reference to `bfstages' ./lib-src/libnyquist.a(fftlib.o): In function `ifftrecurs': nyquist/ffts/src/fftlib.c:(.text+0x849): undefined reference to `ibfstages' nyquist/ffts/src/fftlib.c:(.text+0xa13): undefined reference to `ibfstages' ./lib-src/libnyquist.a(fftlib.o): In function `iffts1': nyquist/ffts/src/fftlib.c:(.text+0xac3): undefined reference to `scbitrevR2' nyquist/ffts/src/fftlib.c:(.text+0xbdf): undefined reference to `ibfR4' nyquist/ffts/src/fftlib.c:(.text+0xc13): undefined reference to `ibfstages' nyquist/ffts/src/fftlib.c:(.text+0xdaa): undefined reference to `ifft8pt' ./lib-src/libnyquist.a(fftlib.o): In function `rffts1': nyquist/ffts/src/fftlib.c:(.text+0xe57): undefined reference to `scbitrevR2' nyquist/ffts/src/fftlib.c:(.text+0xf66): undefined reference to `bfR4' nyquist/ffts/src/fftlib.c:(.text+0xf97): undefined reference to `bfstages' nyquist/ffts/src/fftlib.c:(.text+0xfd5): undefined reference to `frstage' nyquist/ffts/src/fftlib.c:(.text+0x11a6): undefined reference to `rfft8pt' ./lib-src/libnyquist.a(fftlib.o): In function `riffts1': nyquist/ffts/src/fftlib.c:(.text+0x1285): undefined reference to `ifrstage' nyquist/ffts/src/fftlib.c:(.text+0x12a0): undefined reference to `scbitrevR2' nyquist/ffts/src/fftlib.c:(.text+0x13c0): undefined reference to `ibfR4' nyquist/ffts/src/fftlib.c:(.text+0x13f3): undefined reference to `ibfstages' nyquist/ffts/src/fftlib.c:(.text+0x165a): undefined reference to `rifft8pt' c++: error: linker command failed with exit code 1 (use -v to see invocation) gmake[1]: *** [../audacity] Error 1 gmake[1]: Leaving directory `/usr/ports/audio/audacity/work/audacity-src-2.0.2/src' gmake: *** [audacity] Error 2 *** [do-build] Error code 1 >How-To-Repeat: make on recent current/ports tree: >Fix: $ svn diff Makefile Index: Makefile =================================================================== --- Makefile (revision 308234) +++ Makefile (working copy) @@ -186,4 +186,6 @@ @${REINPLACE_CMD} -e 's|libresample.a -lsamplerate $(LIBS)|libresample.a $(LIBS)|' ${WRKSRC}/lib-src/libresample/Makefile.in .endif + @${REINPLACE_CMD} -e 's|inline void|static inline void|' ${WRKSRC}/lib-src/libnyquist/nyquist/ffts/src/fftlib.c + .include >Release-Note: >Audit-Trail: >Unformatted: