[Bug,5768] New: Not able to build ALSA-Lib for static build

Submitted by bugzilla@busybox.net on Dec. 7, 2012, 4:45 a.m.


Message ID bug-5768-163@https.bugs.busybox.net/
State Not Applicable
Headers show

Commit Message

bugzilla@busybox.net Dec. 7, 2012, 4:45 a.m.

           Summary: Not able to build ALSA-Lib for static build
           Product: buildroot
           Version: 2012.08
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: critical
          Priority: P5
         Component: Other
        AssignedTo: unassigned@buildroot.uclibc.org
        ReportedBy: pankaj.dev@st.com
                CC: buildroot@uclibc.org
   Estimated Hours: 0.0

When building ALSA-Lib for static build, there is a compilation faliure. Added
a patch(attached) inside "package/alsa-lib" directory to build properly.

Not able to log this bug in ALSA project, the web-site hangs. The bug also
exists in ALSA 1.0.26(latest) included in buildroot 2012.11

Changes are following :


bugzilla@busybox.net Dec. 7, 2012, 4:47 a.m.

--- Comment #1 from Pankaj Dev <pankaj.dev@st.com> 2012-12-07 04:47:33 UTC ---
Created attachment 4682
  --> https://bugs.busybox.net/attachment.cgi?id=4682
Patch added inside package/alsa-lib
bugzilla@busybox.net Feb. 23, 2014, 2:38 p.m.

Thomas De Schampheleire <patrickdepinguin+buildroot@gmail.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Thomas De Schampheleire <patrickdepinguin+buildroot@gmail.com> 2014-02-23 14:38:53 UTC ---
Fixed with commits

Thanks for reporting!

Patch hide | download patch | download mbox

--- a/modules/mixer/simple/sbasedl.c
+++ b/modules/mixer/simple/sbasedl.c
@@ -27,7 +27,11 @@ 
 #include <fcntl.h>
 #include <sys/ioctl.h>
 #include <math.h>
+#ifdef HAVE_LIBDL
 #include <dlfcn.h>
+#define RTLD_NOW  0
 #include "config.h"
 #include "asoundlib.h"
 #include "mixer_abst.h"
--- a/src/mixer/simple_abst.c
+++ b/src/mixer/simple_abst.c
@@ -34,7 +34,12 @@ 
 #include <fcntl.h>
 #include <sys/ioctl.h>
 #include <math.h>
+#ifdef HAVE_LIBDL
 #include <dlfcn.h>
+#define RTLD_NOW  0
+#define RTLD_GLOBAL             8
 #include "config.h"
 #include "asoundlib.h"
 #include "mixer_simple.h"