Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Fortini Matteo <matteo.fortini@mta.it>
Cc: alsa-devel@alsa-project.org
Subject: Re: Alsa not working when linked to a library
Date: Tue, 29 Sep 2009 11:27:35 +0200	[thread overview]
Message-ID: <s5htyymrth4.wl%tiwai@suse.de> (raw)
In-Reply-To: <4ABCF86E.40801@mta.it>

At Fri, 25 Sep 2009 19:05:50 +0200,
Fortini Matteo wrote:
> 
> Hi,
> I'm experiencing a very strange behavior.
> 
> I'm using alsa 1.0.18 on a powerpc platform.
> 
> If I run the following simple code from the main of a .c file, it works 
> perfectly, but if I put into a shared .so library (libaudio.so), then I 
> link the main with -laudio -lasound, then the hwparams structure is not 
> filled with anything, while the alsa functions don't return any error.
> 
> Do you have any clue why this could happen?

I guess it's an issue regarding the versioned symbols.
Your library (libaudio.so) should be also linked with libasound.so
so that the linker can pick up the proper versioned symbols.


Takashi

      parent reply	other threads:[~2009-09-29  9:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-25 17:05 Alsa not working when linked to a library Fortini Matteo
2009-09-25 17:10 ` Fortini Matteo
2009-09-29  9:27 ` Takashi Iwai [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5htyymrth4.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=matteo.fortini@mta.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox