Skip to contentSkip to conversation

New: Not able to build ALSA-Lib for static build

Buildroot bugzilla at busybox.net 1 participant 3 messages Dec 7, 2012 – Feb 23, 2014

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=5768

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 at buildroot.uclibc.org
ReportedBy: pankaj.dev at st.com
CC: buildroot at 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 :

modules/mixer/simple/sbasedl.c +4 -0
@@ -27,7 +27,11 @@
 #include <fcntl.h>
 #include <sys/ioctl.h>
 #include <math.h>
+#ifdef HAVE_LIBDL
 #include <dlfcn.h>
+#else
+#define RTLD_NOW  0
+#endif
 #include "config.h"
 #include "asoundlib.h"
 #include "mixer_abst.h"
src/mixer/simple_abst.c +5 -0
@@ -34,7 +34,12 @@
 #include <fcntl.h>
 #include <sys/ioctl.h>
 #include <math.h>
+#ifdef HAVE_LIBDL
 #include <dlfcn.h>
+#else
+#define RTLD_NOW  0
+#define RTLD_GLOBAL             8
+#endif 
 #include "config.h"
 #include "asoundlib.h"
 #include "mixer_simple.h"
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 5768] Not able to build ALSA-Lib for static build

https://bugs.busybox.net/show_bug.cgi?id=5768

--- Comment #1 from Pankaj Dev <[email protected]> 2012-12-07 04:47:33 UTC --- Created attachment 4682
--> https://bugs.busybox.net/attachment.cgi?id=4682
Patch added inside package/alsa-lib

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 5768] Not able to build ALSA-Lib for static build

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5768

Thomas De Schampheleire <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Thomas De Schampheleire <[email protected]> 2014-02-23 14:38:53 UTC --- Fixed with commits
http://git.buildroot.org/buildroot/commit/?id=8d911f9b7bd7beac94a3255b29ebe432405d511f
and
http://git.buildroot.org/buildroot/commit/?id=ffd7a00aef72359c630046fbb84d735a9f06db8a.

Thanks for reporting!

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.