Re: alsa-lib: alsa.pc's Libs shouldn't contain -lm -ldl -lpthread

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At Tue, 21 Nov 2006 09:58:01 -0600,
r10 kindsofpeople wrote:
> 
> I'm further along on my goal, but now even more confused.
> 
> Benoit's comment about 'plug-ins' sparked the thought that, since my 
> interest is in midi, not audio, I could try --disable-pcm.  This turned out 
> to be insufficient, but combined with --disable-mixer, alsa-lib now builds 
> without the -ldl errors.
> 
> This turned out to be a small victory, however.  When I try to link my 
> application with the resulting asound library, I'm back to having pthread 
> and dl undefined references, and also snd_pcm_async among others.  The 
> application only makes 'snd_seq*' calls, but I haven't tried tracing them to 
> see what they call.

Does the patch below fix the references?


Takashi

diff -r 1c84c4d3c803 src/async.c
--- a/src/async.c	Thu Nov 16 07:49:24 2006 +0100
+++ b/src/async.c	Tue Nov 21 18:13:37 2006 +0100
@@ -151,9 +151,11 @@ int snd_async_del_handler(snd_async_hand
 	if (!list_empty(&handler->hlist))
 		goto _end;
 	switch (handler->type) {
+#ifdef BUILD_PCM
 	case SND_ASYNC_HANDLER_PCM:
 		err = snd_pcm_async(handler->u.pcm, -1, 1);
 		break;
+#endif
 	case SND_ASYNC_HANDLER_CTL:
 		err = snd_ctl_async(handler->u.ctl, -1, 1);
 		break;
diff -r 1c84c4d3c803 src/confmisc.c
--- a/src/confmisc.c	Thu Nov 16 07:49:24 2006 +0100
+++ b/src/confmisc.c	Tue Nov 21 18:16:11 2006 +0100
@@ -933,6 +933,8 @@ SND_DLSYM_BUILD_VERSION(snd_func_card_id
 SND_DLSYM_BUILD_VERSION(snd_func_card_id, SND_CONFIG_DLSYM_VERSION_EVALUATE);
 #endif
 
+#ifdef BUILD_PCM
+
 /**
  * \brief Returns the pcm identification of a device.
  * \param dst The function puts the handle to the result configuration node
@@ -1199,6 +1201,8 @@ int snd_func_private_pcm_subdevice(snd_c
 #ifndef DOC_HIDDEN
 SND_DLSYM_BUILD_VERSION(snd_func_private_pcm_subdevice, SND_CONFIG_DLSYM_VERSION_EVALUATE);
 #endif
+
+#endif /* BUILD_PCM */
 
 /**
  * \brief Copies the specified configuration node.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux