[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


            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

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

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

(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