* Correction for fixing alsa-lib static build (patch attached)
@ 2006-05-12 12:09 Hans-Christian Egtvedt
2006-05-12 12:44 ` Takashi Iwai
0 siblings, 1 reply; 3+ messages in thread
From: Hans-Christian Egtvedt @ 2006-05-12 12:09 UTC (permalink / raw)
To: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 497 bytes --]
Hi!
While trying to compile the alsa library static, without dynamic lib at
all, I encountered an error with two symbols being unresolved.
The attached patch corrects the compile errors when doing a standard
configure and build. I haven't disabled or enabled anything else than
what is compiled in by default.
Please comment if my patch breaks the library or similar.
--
With kind regards,
Med vennlig hilsen,
Hans-Christian Egtvedt
Applications Engineer - AVR Applications Lab
Atmel Norway
[-- Attachment #2: alsa-lib-1.0.11-fix-static-linking.patch --]
[-- Type: text/x-patch, Size: 718 bytes --]
--- alsa-lib-1.0.11.orig/src/pcm/pcm_ioplug.c 2005-06-28 12:24:45.000000000 +0200
+++ alsa-lib-1.0.11/src/pcm/pcm_ioplug.c 2006-05-12 10:53:00.000000000 +0200
@@ -30,6 +30,9 @@
#include "pcm_ioplug.h"
#include "pcm_ext_parm.h"
+/* entry for static linking */
+const char *_snd_module_pcm_ioplug = "";
+
#ifndef DOC_HIDDEN
/* hw_params */
--- alsa-lib-1.0.11.orig/src/pcm/pcm_extplug.c 2006-03-21 11:30:44.000000000 +0100
+++ alsa-lib-1.0.11/src/pcm/pcm_extplug.c 2006-05-12 10:53:23.000000000 +0200
@@ -31,6 +31,9 @@
#include "pcm_extplug.h"
#include "pcm_ext_parm.h"
+/* entry for static linking */
+const char *_snd_module_pcm_extplug = "";
+
#ifndef DOC_HIDDEN
typedef struct snd_pcm_extplug_priv {
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Correction for fixing alsa-lib static build (patch attached)
2006-05-12 12:09 Correction for fixing alsa-lib static build (patch attached) Hans-Christian Egtvedt
@ 2006-05-12 12:44 ` Takashi Iwai
0 siblings, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2006-05-12 12:44 UTC (permalink / raw)
To: Hans-Christian Egtvedt; +Cc: alsa-devel
At Fri, 12 May 2006 14:09:09 +0200,
Hans-Christian Egtvedt wrote:
>
> Hi!
>
> While trying to compile the alsa library static, without dynamic lib at
> all, I encountered an error with two symbols being unresolved.
>
> The attached patch corrects the compile errors when doing a standard
> configure and build. I haven't disabled or enabled anything else than
> what is compiled in by default.
>
> Please comment if my patch breaks the library or similar.
They are unnecessary for shared lib, so better to wrap with ifndef
PIC. I applied it with that fix. Thanks!
Takashi
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 3+ messages in thread
* Correction for fixing alsa-lib static build (patch attached)
@ 2006-05-12 11:24 Hans-Christian Egtvedt
0 siblings, 0 replies; 3+ messages in thread
From: Hans-Christian Egtvedt @ 2006-05-12 11:24 UTC (permalink / raw)
To: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 497 bytes --]
Hi!
While trying to compile the alsa library static, without dynamic lib at
all, I encountered an error with two symbols being unresolved.
The attached patch corrects the compile errors when doing a standard
configure and build. I haven't disabled or enabled anything else than
what is compiled in by default.
Please comment if my patch breaks the library or similar.
--
With kind regards,
Med vennlig hilsen,
Hans-Christian Egtvedt
Applications Engineer - AVR Applications Lab
Atmel Norway
[-- Attachment #2: alsa-lib-1.0.11-fix-static-linking.patch --]
[-- Type: text/x-patch, Size: 718 bytes --]
--- alsa-lib-1.0.11.orig/src/pcm/pcm_ioplug.c 2005-06-28 12:24:45.000000000 +0200
+++ alsa-lib-1.0.11/src/pcm/pcm_ioplug.c 2006-05-12 10:53:00.000000000 +0200
@@ -30,6 +30,9 @@
#include "pcm_ioplug.h"
#include "pcm_ext_parm.h"
+/* entry for static linking */
+const char *_snd_module_pcm_ioplug = "";
+
#ifndef DOC_HIDDEN
/* hw_params */
--- alsa-lib-1.0.11.orig/src/pcm/pcm_extplug.c 2006-03-21 11:30:44.000000000 +0100
+++ alsa-lib-1.0.11/src/pcm/pcm_extplug.c 2006-05-12 10:53:23.000000000 +0200
@@ -31,6 +31,9 @@
#include "pcm_extplug.h"
#include "pcm_ext_parm.h"
+/* entry for static linking */
+const char *_snd_module_pcm_extplug = "";
+
#ifndef DOC_HIDDEN
typedef struct snd_pcm_extplug_priv {
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-05-12 12:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-12 12:09 Correction for fixing alsa-lib static build (patch attached) Hans-Christian Egtvedt
2006-05-12 12:44 ` Takashi Iwai
-- strict thread matches above, loose matches on Subject: below --
2006-05-12 11:24 Hans-Christian Egtvedt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.