Bug 5774 - Not able to build ALSA-Utils for static build
Summary: Not able to build ALSA-Utils for static build
Status: RESOLVED WONTFIX
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 05:06 UTC by Pankaj Dev
Modified: 2014-02-23 14:43 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
Patch to build alsa-utils statically (743 bytes, application/octet-stream)
2012-12-07 05:06 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 05:06:17 UTC
Created attachment 4688 [details]
Patch to build alsa-utils statically

When building ALSA-Utils for static build, there is a compilation faliure. Added
a patch(attached) inside "package/multimedia\alsa-utils" 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

The correction is not a generic, one. Not able to figure out how to modify the configure script such that it includes "-ldl" only for non-static builds
Comment 1 Thomas De Schampheleire 2014-02-07 12:55:56 UTC
Hi, 

Could you provide a config file that exhibits the problem?

FYI, a similar problem was reported on alsa-lib on the alsa mailing list a while back. A patch was then added to alsa-lib upstream to add --with-dl / without-dl switches to the configure script:
http://www.spinics.net/lists/alsa-devel/msg06454.html

In any case, the patch attached to this bug report is not ok: it would remove -ldl unconditionally, even if shared libraries were requested.

Thanks,
Thomas
Comment 2 Vicente Olivert Riera 2014-02-21 14:34:49 UTC
(In reply to comment #1)
> In any case, the patch attached to this bug report is not ok: it would remove
> -ldl unconditionally, even if shared libraries were requested.

Hi Thomas,

even if you remove -ldl from configure it will still failing. I have tried it.
Comment 3 Thomas De Schampheleire 2014-02-23 14:43:27 UTC
Although the problem can be solved with a patch like http://patchwork.ozlabs.org/patch/319707/, we do not like to have such feature patches in buildroot without them being accepted upstream. 
Please discuss the situation upstream on the alsa-devel mailing list. If the patch can be accepted there, the buildroot build can be fixed with a version bump.