Bug 5768 - Not able to build ALSA-Lib for static build
Summary: Not able to build ALSA-Lib for static build
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2012.08
Hardware: PC Windows
: P5 critical
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-07 04:45 UTC by Pankaj Dev
Modified: 2014-02-23 14:38 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
Patch added inside package/alsa-lib (1.16 KB, patch)
2012-12-07 04:47 UTC, Pankaj Dev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pankaj Dev 2012-12-07 04:45:26 UTC
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 :
--- 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>
+#else
+#define RTLD_NOW  0
+#endif
 #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>
+#else
+#define RTLD_NOW  0
+#define RTLD_GLOBAL             8
+#endif 
 #include "config.h"
 #include "asoundlib.h"
 #include "mixer_simple.h"
Comment 1 Pankaj Dev 2012-12-07 04:47:33 UTC
Created attachment 4682 [details]
Patch added inside package/alsa-lib