[libav-bugs] [Bug 1173] New: Math constants undeclared on Cygwin

bugzilla at libav.org bugzilla at libav.org
Sun Jul 28 00:29:03 CEST 2019


https://bugzilla.libav.org/show_bug.cgi?id=1173

            Bug ID: 1173
           Summary: Math constants undeclared on Cygwin
           Product: Libav
           Version: 12
          Hardware: X86
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: ---
         Component: general
          Assignee: bugzilla at libav.org
          Reporter: allegristas at gmail.com

In a fresh download of https://libav.org/releases/libav-12.3.tar.xz I ran
./configure, and then make.  This gave me the errors like the following in
several source files:

libavfilter/af_compand.c:343:43: error: ‘M_LN10’ undeclared (first use in this
function); did you mean ‘_M_LN2’?
     double radius         = s->curve_dB * M_LN10 / 20.0;
                                           ^~~~~~
                                           _M_LN2

I am running Cygwin 3.0.7(0.338/5/3).

The solution was to edit configure and add, in the "case $target_os in …
cygwin*)" section after line 3895, the following:

add_cppflags -D_BSD_SOURCE

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-bugs/attachments/20190727/306f877e/attachment.html>


More information about the libav-bugs mailing list