[libav-bugs] [Bug 1090] New: configure fails to recognize static libmp3lame

bugzilla at libav.org bugzilla at libav.org
Sat Oct 14 16:55:54 CEST 2017


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

            Bug ID: 1090
           Summary: configure fails to recognize static libmp3lame
           Product: Libav
           Version: git HEAD
          Hardware: X86
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: ---
         Component: general
          Assignee: bugzilla at libav.org
          Reporter: basic.master at gmx.de

Created attachment 690
  --> https://bugzilla.libav.org/attachment.cgi?id=690&action=edit
Fix

Distribution: Ubuntu MATE 16.04 AMD64

When I try to build libav in combination with a static libmp3lame, configure
fails with the following result:

  ERROR: libmp3lame >= 3.98.3 not found

Used command line:
  ./configure --enable-libmp3lame

Lame (version 3.99.5) was compiled with:
  ./configure --disable-shared

The reason is that the presence check in "configure" (line 4770; just search
for ">= 3.98.3") is done by compiling a minimal C program that invokes the
library.

However linking the static version of libmp3lame in addition to "-lmp3lame"
(see end of the mentioned line of "configure") also requires "-lm"
(/avbuild/config.log shows math.h related error messages).

To solve this, "-lm" can just be appended to the end of the mentioned
"configure" line; afterwards, configure succeeds. Please find the simple patch
attached.

(the bug occured in the first place when I tried to build libav as part of the
VLC contribs, but I also reproduced it with the most recend git version of
stand-alone libav)

-- 
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/20171014/ee075f8e/attachment.html>


More information about the libav-bugs mailing list