[Bug 205732] audio/sox: strange --version output

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Dec 30 18:11:40 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205732

Dan Nelson <dnelson at allantgroup.com> changed:

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

--- Comment #1 from Dan Nelson <dnelson at allantgroup.com> ---
Created attachment 164873
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=164873&action=edit
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.

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


More information about the freebsd-ports-bugs mailing list