Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Dec 2015 18:11:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 205732] audio/sox: strange --version output
Message-ID:  <bug-205732-13-pHUDpdkoSe@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-205732-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-205732-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205732

Dan Nelson <dnelson@allantgroup.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #164873|                            |maintainer-approval+
              Flags|                            |

--- Comment #1 from Dan Nelson <dnelson@allantgroup.com> ---
Created attachment 164873
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D164873&action=
=3Dedit
fetch a patch that removes the pure attribute from sox_version

Interesting bug :)  The underlying cause is that the sox_version function is
marked "pure", which means that it causes no side-effects.  In reality, it =
does
cause a side-effect, by filling in an internal version string buffer.  clang
optimizes away the function call, which means that the string never gets
filled.  A bug had already been filed against the upstream sox source tree (
https://sourceforge.net/p/sox/patches/104/ ) , so here's a patch that simply
fetches that patch before building.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-205732-13-pHUDpdkoSe>