All of lore.kernel.org
 help / color / mirror / Atom feed
* 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
@ 2006-09-26 20:13 Elimar Riesebieter
  2006-09-26 20:23 ` Lee Revell
  2006-09-27  6:41 ` Jaroslav Kysela
  0 siblings, 2 replies; 27+ messages in thread
From: Elimar Riesebieter @ 2006-09-26 20:13 UTC (permalink / raw)
  To: alsa-devel; +Cc: pkg-alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 378 bytes --]

Hi all,

I am testing 1.0.13rc3 (lib/driver/utils) on PPC/2.6.18

Starting a soundapp like moc gives:

"relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min,
version ALSA_0.9.0rc4 not defined in file libasound.so.2 with link
time reference"

Any hints?

Elimar

-- 
  On the keyboard of life you have always
  to keep a finger at the escape key;-)

[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 348 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-26 20:13 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min Elimar Riesebieter
@ 2006-09-26 20:23 ` Lee Revell
  2006-09-26 20:40   ` Elimar Riesebieter
  2006-09-27  6:41 ` Jaroslav Kysela
  1 sibling, 1 reply; 27+ messages in thread
From: Lee Revell @ 2006-09-26 20:23 UTC (permalink / raw)
  To: Elimar Riesebieter; +Cc: pkg-alsa-devel, alsa-devel

On Tue, 2006-09-26 at 22:13 +0200, Elimar Riesebieter wrote:
> Hi all,
> 
> I am testing 1.0.13rc3 (lib/driver/utils) on PPC/2.6.18
> 
> Starting a soundapp like moc gives:
> 
> "relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min,
> version ALSA_0.9.0rc4 not defined in file libasound.so.2 with link
> time reference"
> 
> Any hints?
> 

Application was compiled against a different alsa-lib version than is
present.

Lee


-------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-26 20:23 ` Lee Revell
@ 2006-09-26 20:40   ` Elimar Riesebieter
  2006-09-26 21:03     ` Lee Revell
  0 siblings, 1 reply; 27+ messages in thread
From: Elimar Riesebieter @ 2006-09-26 20:40 UTC (permalink / raw)
  To: alsa-devel, pkg-alsa-devel

On Tue, 26 Sep 2006 the mental interface of
Lee Revell told:

> On Tue, 2006-09-26 at 22:13 +0200, Elimar Riesebieter wrote:
> > Hi all,
> > 
> > I am testing 1.0.13rc3 (lib/driver/utils) on PPC/2.6.18
> > 
> > Starting a soundapp like moc gives:
> > 
> > "relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min,
> > version ALSA_0.9.0rc4 not defined in file libasound.so.2 with link
> > time reference"
> > 
> > Any hints?
> > 
> 
> Application was compiled against a different alsa-lib version than is
> present.

This was my idea as well, but apps compiled with versions << 1.0.12
are running with 1.0.13rc2?

Elimar

-- 
    .~.
    /V\   L   I   N   U   X
   /( )\ >Phear the Penguin<
   ^^-^^

-------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-26 20:40   ` Elimar Riesebieter
@ 2006-09-26 21:03     ` Lee Revell
  2006-09-26 21:31       ` Elimar Riesebieter
  2006-09-27 12:35       ` Takashi Iwai
  0 siblings, 2 replies; 27+ messages in thread
From: Lee Revell @ 2006-09-26 21:03 UTC (permalink / raw)
  To: Elimar Riesebieter; +Cc: pkg-alsa-devel, alsa-devel

On Tue, 2006-09-26 at 22:40 +0200, Elimar Riesebieter wrote:
> On Tue, 26 Sep 2006 the mental interface of
> Lee Revell told:
> 
> > On Tue, 2006-09-26 at 22:13 +0200, Elimar Riesebieter wrote:
> > > Hi all,
> > > 
> > > I am testing 1.0.13rc3 (lib/driver/utils) on PPC/2.6.18
> > > 
> > > Starting a soundapp like moc gives:
> > > 
> > > "relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min,
> > > version ALSA_0.9.0rc4 not defined in file libasound.so.2 with link
> > > time reference"
> > > 
> > > Any hints?
> > > 
> > 
> > Application was compiled against a different alsa-lib version than is
> > present.
> 
> This was my idea as well, but apps compiled with versions << 1.0.12
> are running with 1.0.13rc2?

It's not guaranteed that using a wrong library version won't work.  It
may or may not.  Just use the same version.

Lee


-------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-26 21:03     ` Lee Revell
@ 2006-09-26 21:31       ` Elimar Riesebieter
  2006-09-27 12:35       ` Takashi Iwai
  1 sibling, 0 replies; 27+ messages in thread
From: Elimar Riesebieter @ 2006-09-26 21:31 UTC (permalink / raw)
  To: alsa-devel, pkg-alsa-devel

On Tue, 26 Sep 2006 the mental interface of
Lee Revell told:

> On Tue, 2006-09-26 at 22:40 +0200, Elimar Riesebieter wrote:
> > On Tue, 26 Sep 2006 the mental interface of
> > Lee Revell told:
> > 
> > > On Tue, 2006-09-26 at 22:13 +0200, Elimar Riesebieter wrote:
> > > > Hi all,
> > > > 
> > > > I am testing 1.0.13rc3 (lib/driver/utils) on PPC/2.6.18
> > > > 
> > > > Starting a soundapp like moc gives:
> > > > 
> > > > "relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min,
> > > > version ALSA_0.9.0rc4 not defined in file libasound.so.2 with link
> > > > time reference"
> > > > 
> > > > Any hints?
> > > > 
> > > 
> > > Application was compiled against a different alsa-lib version than is
> > > present.
> > 
> > This was my idea as well, but apps compiled with versions << 1.0.12
> > are running with 1.0.13rc2?
> 
> It's not guaranteed that using a wrong library version won't work.  It
> may or may not.  Just use the same version.

It must be guaranteed!

Please notice: As a distributor you have to force all sond-app
maintainers to rebuild their package against the new libasound
headers. This is normaly done by ABI's which libasound doesn't
use. In the past I've experienced never a behaviour descibed in the
subject.

Elimar


-- 
  On the keyboard of life you have always
  to keep a finger at the escape key;-)

-------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-26 20:13 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min Elimar Riesebieter
  2006-09-26 20:23 ` Lee Revell
@ 2006-09-27  6:41 ` Jaroslav Kysela
  2006-09-27 18:07   ` Elimar Riesebieter
  2006-09-28 10:23   ` Mike Frysinger
  1 sibling, 2 replies; 27+ messages in thread
From: Jaroslav Kysela @ 2006-09-27  6:41 UTC (permalink / raw)
  To: Elimar Riesebieter; +Cc: pkg-alsa-devel, alsa-devel

On Tue, 26 Sep 2006, Elimar Riesebieter wrote:

> Hi all,
> 
> I am testing 1.0.13rc3 (lib/driver/utils) on PPC/2.6.18
> 
> Starting a soundapp like moc gives:
> 
> "relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min,
> version ALSA_0.9.0rc4 not defined in file libasound.so.2 with link
> time reference"
> 
> Any hints?

What is output from commands 'nm /usr/lib/libasound.so.2 | grep 
snd_pcm_hw_params_get_channels_min' and 'nm mocp | grep 
snd_pcm_hw_params_get_channels_min'?

						Jaroslav

-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs

-------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-26 21:03     ` Lee Revell
  2006-09-26 21:31       ` Elimar Riesebieter
@ 2006-09-27 12:35       ` Takashi Iwai
  2006-09-27 18:13         ` Elimar Riesebieter
  1 sibling, 1 reply; 27+ messages in thread
From: Takashi Iwai @ 2006-09-27 12:35 UTC (permalink / raw)
  To: Lee Revell; +Cc: pkg-alsa-devel, alsa-devel

At Tue, 26 Sep 2006 17:03:29 -0400,
Lee Revell wrote:
> 
> On Tue, 2006-09-26 at 22:40 +0200, Elimar Riesebieter wrote:
> > On Tue, 26 Sep 2006 the mental interface of
> > Lee Revell told:
> > 
> > > On Tue, 2006-09-26 at 22:13 +0200, Elimar Riesebieter wrote:
> > > > Hi all,
> > > > 
> > > > I am testing 1.0.13rc3 (lib/driver/utils) on PPC/2.6.18
> > > > 
> > > > Starting a soundapp like moc gives:
> > > > 
> > > > "relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min,
> > > > version ALSA_0.9.0rc4 not defined in file libasound.so.2 with link
> > > > time reference"
> > > > 
> > > > Any hints?
> > > > 
> > > 
> > > Application was compiled against a different alsa-lib version than is
> > > present.
> > 
> > This was my idea as well, but apps compiled with versions << 1.0.12
> > are running with 1.0.13rc2?
> 
> It's not guaranteed that using a wrong library version won't work.

The backward compatibility is guaranteed.
That's the very reason that such a versioned symbol was introduced.
(And it was a big failure...)

Please don't mix up the things about config files and the library ABI
compatibility.  In a very rare case, the configuration file doesn't
match with the driver version.  This happend once on emu10k1 (and
people now think that it's a frequent case, unforunately, although
we've tried to keep the compatibility of config stuff since then).
But, the ABI is kept backward-compatible for many years. 

So, you don't have to use the same version of alsa-lib.  In general,
the newer version is always better.  The newer one includes more
bugfixes and new features.


BTW, the problem here looks like a build of alsa-lib with versioned
symbols.  Or, the app isn't linked to libasound at compile time, so it
couldn't resolve the versioned symbols properly.  It's a common
problem with versioned symbols.


Takashi

-------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-27  6:41 ` Jaroslav Kysela
@ 2006-09-27 18:07   ` Elimar Riesebieter
  2006-09-27 19:23     ` Takashi Iwai
  2006-09-28 10:23   ` Mike Frysinger
  1 sibling, 1 reply; 27+ messages in thread
From: Elimar Riesebieter @ 2006-09-27 18:07 UTC (permalink / raw)
  To: Jaroslav Kysela; +Cc: pkg-alsa-devel, alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 791 bytes --]

On Wed, 27 Sep 2006 the mental interface of
Jaroslav Kysela told:

> On Tue, 26 Sep 2006, Elimar Riesebieter wrote:
> 
> > Hi all,
> > 
> > I am testing 1.0.13rc3 (lib/driver/utils) on PPC/2.6.18
> > 
> > Starting a soundapp like moc gives:
> > 
> > "relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min,
> > version ALSA_0.9.0rc4 not defined in file libasound.so.2 with link
> > time reference"
> > 
> > Any hints?
> 
> What is output from commands 'nm /usr/lib/libasound.so.2 | grep 
> snd_pcm_hw_params_get_channels_min' 

nm: /usr/lib/libasound.so.2: no symbols

> and 'nm mocp | grep 
> snd_pcm_hw_params_get_channels_min'?

nm: /usr/bin/mocp: no symbols

Elimar

-- 
  Experience is something you don't get until 
  just after you need it!

[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 348 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-27 12:35       ` Takashi Iwai
@ 2006-09-27 18:13         ` Elimar Riesebieter
  2006-09-27 18:55           ` Jaroslav Kysela
  2006-09-28 10:28           ` Mike Frysinger
  0 siblings, 2 replies; 27+ messages in thread
From: Elimar Riesebieter @ 2006-09-27 18:13 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: pkg-alsa-devel, Lee Revell, alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 2524 bytes --]

On Wed, 27 Sep 2006 the mental interface of
Takashi Iwai told:

> At Tue, 26 Sep 2006 17:03:29 -0400,
> Lee Revell wrote:
> > 
> > On Tue, 2006-09-26 at 22:40 +0200, Elimar Riesebieter wrote:
> > > On Tue, 26 Sep 2006 the mental interface of
> > > Lee Revell told:
> > > 
> > > > On Tue, 2006-09-26 at 22:13 +0200, Elimar Riesebieter wrote:
> > > > > Hi all,
> > > > > 
> > > > > I am testing 1.0.13rc3 (lib/driver/utils) on PPC/2.6.18
> > > > > 
> > > > > Starting a soundapp like moc gives:
> > > > > 
> > > > > "relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min,
> > > > > version ALSA_0.9.0rc4 not defined in file libasound.so.2 with link
> > > > > time reference"
> > > > > 
> > > > > Any hints?
> > > > > 
> > > > 
> > > > Application was compiled against a different alsa-lib version than is
> > > > present.
> > > 
> > > This was my idea as well, but apps compiled with versions << 1.0.12
> > > are running with 1.0.13rc2?
> > 
> > It's not guaranteed that using a wrong library version won't work.
> 
> The backward compatibility is guaranteed.
> That's the very reason that such a versioned symbol was introduced.
> (And it was a big failure...)
> 
> Please don't mix up the things about config files and the library ABI
> compatibility.  In a very rare case, the configuration file doesn't
> match with the driver version.  This happend once on emu10k1 (and
> people now think that it's a frequent case, unforunately, although
> we've tried to keep the compatibility of config stuff since then).
> But, the ABI is kept backward-compatible for many years. 
> 
> So, you don't have to use the same version of alsa-lib.  In general,
> the newer version is always better.  The newer one includes more
> bugfixes and new features.
> 
> 
> BTW, the problem here looks like a build of alsa-lib with versioned
> symbols.  Or, the app isn't linked to libasound at compile time, so it
> couldn't resolve the versioned symbols properly.  It's a common
> problem with versioned symbols.

The libs where build as follows:

../configure --prefix=/usr \
--mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info \
--datadir=\$${prefix}/share \
--host=$(DEB_HOST_GNU_TYPE) \
--enable-static --disable-maintainer-mode

where --enable-shared[=PKGS]  build shared libraries
points by default to yes

Elimar

-- 
  >what IMHO then?
  IMHO - Inhalation of a Multi-leafed Herbal Opiate ;)
              --posting from alex in debian-user--

[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 348 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-27 18:13         ` Elimar Riesebieter
@ 2006-09-27 18:55           ` Jaroslav Kysela
  2006-09-28 10:28           ` Mike Frysinger
  1 sibling, 0 replies; 27+ messages in thread
From: Jaroslav Kysela @ 2006-09-27 18:55 UTC (permalink / raw)
  To: Elimar Riesebieter; +Cc: Takashi Iwai, pkg-alsa-devel, Lee Revell, alsa-devel

On Wed, 27 Sep 2006, Elimar Riesebieter wrote:

> On Wed, 27 Sep 2006 the mental interface of
> Takashi Iwai told:
> 
> > At Tue, 26 Sep 2006 17:03:29 -0400,
> > Lee Revell wrote:
> > > 
> > > On Tue, 2006-09-26 at 22:40 +0200, Elimar Riesebieter wrote:
> > > > On Tue, 26 Sep 2006 the mental interface of
> > > > Lee Revell told:
> > > > 
> > > > > On Tue, 2006-09-26 at 22:13 +0200, Elimar Riesebieter wrote:
> > > > > > Hi all,
> > > > > > 
> > > > > > I am testing 1.0.13rc3 (lib/driver/utils) on PPC/2.6.18
> > > > > > 
> > > > > > Starting a soundapp like moc gives:
> > > > > > 
> > > > > > "relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min,
> > > > > > version ALSA_0.9.0rc4 not defined in file libasound.so.2 with link
> > > > > > time reference"
> > > > > > 
> > > > > > Any hints?
> > > > > > 
> > > > > 
> > > > > Application was compiled against a different alsa-lib version than is
> > > > > present.
> > > > 
> > > > This was my idea as well, but apps compiled with versions << 1.0.12
> > > > are running with 1.0.13rc2?
> > > 
> > > It's not guaranteed that using a wrong library version won't work.
> > 
> > The backward compatibility is guaranteed.
> > That's the very reason that such a versioned symbol was introduced.
> > (And it was a big failure...)
> > 
> > Please don't mix up the things about config files and the library ABI
> > compatibility.  In a very rare case, the configuration file doesn't
> > match with the driver version.  This happend once on emu10k1 (and
> > people now think that it's a frequent case, unforunately, although
> > we've tried to keep the compatibility of config stuff since then).
> > But, the ABI is kept backward-compatible for many years. 
> > 
> > So, you don't have to use the same version of alsa-lib.  In general,
> > the newer version is always better.  The newer one includes more
> > bugfixes and new features.
> > 
> > 
> > BTW, the problem here looks like a build of alsa-lib with versioned
> > symbols.  Or, the app isn't linked to libasound at compile time, so it
> > couldn't resolve the versioned symbols properly.  It's a common
> > problem with versioned symbols.
> 
> The libs where build as follows:
> 
> ../configure --prefix=/usr \
> --mandir=\$${prefix}/share/man \
> --infodir=\$${prefix}/share/info \
> --datadir=\$${prefix}/share \
> --host=$(DEB_HOST_GNU_TYPE) \
> --enable-static --disable-maintainer-mode
> 
> where --enable-shared[=PKGS]  build shared libraries
> points by default to yes

I would follow this paragraph from the INSTALL file:

Compilation of static library
-----------------------------

If you would like to use the static ALSA library, you need to use these
options for the configure script:

        ./configure --enable-shared=no --enable-static=yes

Unfortunately, due to bug in the libtool script, the shared and static
library cannot be built together.

						Jaroslav

-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs

-------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-27 18:07   ` Elimar Riesebieter
@ 2006-09-27 19:23     ` Takashi Iwai
  2006-09-27 19:48       ` Elimar Riesebieter
  0 siblings, 1 reply; 27+ messages in thread
From: Takashi Iwai @ 2006-09-27 19:23 UTC (permalink / raw)
  To: Elimar Riesebieter; +Cc: pkg-alsa-devel, alsa-devel, Jaroslav Kysela

At Wed, 27 Sep 2006 20:07:56 +0200,
Elimar Riesebieter wrote:
> 
> On Wed, 27 Sep 2006 the mental interface of
> Jaroslav Kysela told:
> 
> > On Tue, 26 Sep 2006, Elimar Riesebieter wrote:
> > 
> > > Hi all,
> > > 
> > > I am testing 1.0.13rc3 (lib/driver/utils) on PPC/2.6.18
> > > 
> > > Starting a soundapp like moc gives:
> > > 
> > > "relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min,
> > > version ALSA_0.9.0rc4 not defined in file libasound.so.2 with link
> > > time reference"
> > > 
> > > Any hints?
> > 
> > What is output from commands 'nm /usr/lib/libasound.so.2 | grep 
> > snd_pcm_hw_params_get_channels_min' 
> 
> nm: /usr/lib/libasound.so.2: no symbols
> 
> > and 'nm mocp | grep 
> > snd_pcm_hw_params_get_channels_min'?
> 
> nm: /usr/bin/mocp: no symbols

The symbols are stripped.
Use objdump, e.g. with -T option, instead.


Takashi

-------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-27 19:23     ` Takashi Iwai
@ 2006-09-27 19:48       ` Elimar Riesebieter
  2006-09-28 10:18         ` Takashi Iwai
  0 siblings, 1 reply; 27+ messages in thread
From: Elimar Riesebieter @ 2006-09-27 19:48 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: pkg-alsa-devel, alsa-devel, Jaroslav Kysela


[-- Attachment #1.1: Type: text/plain, Size: 1594 bytes --]

On Wed, 27 Sep 2006 the mental interface of
Takashi Iwai told:

> At Wed, 27 Sep 2006 20:07:56 +0200,
> Elimar Riesebieter wrote:
> > 
> > On Wed, 27 Sep 2006 the mental interface of
> > Jaroslav Kysela told:
> > 
> > > On Tue, 26 Sep 2006, Elimar Riesebieter wrote:
> > > 
> > > > Hi all,
> > > > 
> > > > I am testing 1.0.13rc3 (lib/driver/utils) on PPC/2.6.18
> > > > 
> > > > Starting a soundapp like moc gives:
> > > > 
> > > > "relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min,
> > > > version ALSA_0.9.0rc4 not defined in file libasound.so.2 with link
> > > > time reference"
> > > > 
> > > > Any hints?
> > > 
> > > What is output from commands 'nm /usr/lib/libasound.so.2 | grep 
> > > snd_pcm_hw_params_get_channels_min' 
> > 
> > nm: /usr/lib/libasound.so.2: no symbols
> > 
> > > and 'nm mocp | grep 
> > > snd_pcm_hw_params_get_channels_min'?
> > 
> > nm: /usr/bin/mocp: no symbols
> 
> The symbols are stripped.
> Use objdump, e.g. with -T option, instead.

root@samweis ~ # objdump -T  `which mocp` | grep
snd_pcm_hw_params_get_channels_min
1005ca20      DF *UND*  0000002c  ALSA_0.9.0rc4 \
snd_pcm_hw_params_get_channels_min
root@samweis ~ # objdump -T /usr/lib/libasound.so.2 | grep
snd_pcm_hw_params_get_channels_min
00057aa0 g    DF .text  0000002c  ALSA_0.9 \
__snd_pcm_hw_params_get_channels_min
00057aa0  w   DF .text  0000002c  ALSA_0.9 \
snd_pcm_hw_params_get_channels_min

Hmmm, why there are different versions? 1.0.13rc2 works fine.

Elimar


-- 
  Do you smell something burning or ist it me?


[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 348 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-27 19:48       ` Elimar Riesebieter
@ 2006-09-28 10:18         ` Takashi Iwai
  2006-09-28 10:34           ` Mike Frysinger
  2006-09-28 18:02           ` Elimar Riesebieter
  0 siblings, 2 replies; 27+ messages in thread
From: Takashi Iwai @ 2006-09-28 10:18 UTC (permalink / raw)
  To: Elimar Riesebieter; +Cc: pkg-alsa-devel, alsa-devel, Jaroslav Kysela

At Wed, 27 Sep 2006 21:48:40 +0200,
Elimar Riesebieter wrote:
> 
> On Wed, 27 Sep 2006 the mental interface of
> Takashi Iwai told:
> 
> > At Wed, 27 Sep 2006 20:07:56 +0200,
> > Elimar Riesebieter wrote:
> > > 
> > > On Wed, 27 Sep 2006 the mental interface of
> > > Jaroslav Kysela told:
> > > 
> > > > On Tue, 26 Sep 2006, Elimar Riesebieter wrote:
> > > > 
> > > > > Hi all,
> > > > > 
> > > > > I am testing 1.0.13rc3 (lib/driver/utils) on PPC/2.6.18
> > > > > 
> > > > > Starting a soundapp like moc gives:
> > > > > 
> > > > > "relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min,
> > > > > version ALSA_0.9.0rc4 not defined in file libasound.so.2 with link
> > > > > time reference"
> > > > > 
> > > > > Any hints?
> > > > 
> > > > What is output from commands 'nm /usr/lib/libasound.so.2 | grep 
> > > > snd_pcm_hw_params_get_channels_min' 
> > > 
> > > nm: /usr/lib/libasound.so.2: no symbols
> > > 
> > > > and 'nm mocp | grep 
> > > > snd_pcm_hw_params_get_channels_min'?
> > > 
> > > nm: /usr/bin/mocp: no symbols
> > 
> > The symbols are stripped.
> > Use objdump, e.g. with -T option, instead.
> 
> root@samweis ~ # objdump -T  `which mocp` | grep
> snd_pcm_hw_params_get_channels_min
> 1005ca20      DF *UND*  0000002c  ALSA_0.9.0rc4 \
> snd_pcm_hw_params_get_channels_min
> root@samweis ~ # objdump -T /usr/lib/libasound.so.2 | grep
> snd_pcm_hw_params_get_channels_min
> 00057aa0 g    DF .text  0000002c  ALSA_0.9 \
> __snd_pcm_hw_params_get_channels_min
> 00057aa0  w   DF .text  0000002c  ALSA_0.9 \
> snd_pcm_hw_params_get_channels_min

Hm, the versions are not seen here.

> Hmmm, why there are different versions? 1.0.13rc2 works fine.

If 1.0.13rc2 works, a skeptical change is the prefix check below.
Could you revert this patch and try whether it works?

Also, what is defined as __SYMBOL_PREFIX in config.h?


Takashi


# HG changeset patch
# User tiwai
# Date 1158682071 -7200
# Node ID aea9a680d2825ad040aa8a427d6c55d643a75f56
# Parent  8bdd686087881ce878ab56be3768f2077308a00d
add support for hosts that have custom symbol prefixes

From: Mike Frysinger <vapier@gentoo.org>

some architectures, like Blackfin, have a prefix added to all symbols (in our
case it's historical baggage)

while normally packages shouldnt care, when code starts mixing assembler with
C (like symbol versioning), you need to dip down into the inner details.
find attached a patch which queries gcc for the prefix (all gcc toolchains
have a builtin define of __USER_LABEL_PREFIX__) and then automatically has
asm() constructs utilize this

since most targets define __USER_LABEL_PREFIX__ to nothing, hopefully this
shouldnt cause any problems :)

diff -r 8bdd68608788 -r aea9a680d282 configure.in
--- a/configure.in	Mon Sep 18 17:57:58 2006 +0200
+++ b/configure.in	Tue Sep 19 18:07:51 2006 +0200
@@ -34,6 +34,7 @@ fi
 	    
 
 AC_PROG_CC
+AC_PROG_CPP
 AC_PROG_INSTALL
 AC_PROG_LN_S 
 AC_DISABLE_STATIC
@@ -104,6 +105,16 @@ else
   AC_MSG_RESULT(no)
 fi
 AM_CONDITIONAL(VERSIONED_SYMBOLS, test x$versioned = xyes)
+
+dnl See if toolchain has a custom prefix for symbols ...
+AC_MSG_CHECKING(for custom symbol prefixes)
+SYMBOL_PREFIX=` \
+	echo "PREFIX=__USER_LABEL_PREFIX__" \
+		| ${CPP-${CC-gcc} -E} - 2>&1 \
+		| ${EGREP-grep} "^PREFIX=" \
+		| ${SED-sed} "s:^PREFIX=::"`
+AC_DEFINE_UNQUOTED([__SYMBOL_PREFIX], "$SYMBOL_PREFIX", [Toolchain Symbol Prefix])
+AC_MSG_RESULT($SYMBOL_PREFIX)
 
 dnl Check for debug...
 AC_MSG_CHECKING(for debug)
diff -r 8bdd68608788 -r aea9a680d282 include/alsa-symbols.h
--- a/include/alsa-symbols.h	Mon Sep 18 17:57:58 2006 +0200
+++ b/include/alsa-symbols.h	Tue Sep 19 18:07:51 2006 +0200
@@ -31,16 +31,16 @@
 
 #ifdef __powerpc64__
 # define symbol_version(real, name, version) 			\
-	__asm__ (".symver " #real "," #name "@" #version);	\
-	__asm__ (".symver ." #real ",." #name "@" #version)
+	__asm__ (".symver " ASM_NAME(#real) "," ASM_NAME(#name) "@" #version);	\
+	__asm__ (".symver ." ASM_NAME(#real) ",." ASM_NAME(#name) "@" #version)
 # define default_symbol_version(real, name, version) 		\
-	__asm__ (".symver " #real "," #name "@@" #version);	\
-	__asm__ (".symver ." #real ",." #name "@@" #version)
+	__asm__ (".symver " ASM_NAME(#real) "," ASM_NAME(#name) "@@" #version);	\
+	__asm__ (".symver ." ASM_NAME(#real) ",." ASM_NAME(#name) "@@" #version)
 #else
 # define symbol_version(real, name, version) \
-	__asm__ (".symver " #real "," #name "@" #version)
+	__asm__ (".symver " ASM_NAME(#real) "," ASM_NAME(#name) "@" #version)
 # define default_symbol_version(real, name, version) \
-	__asm__ (".symver " #real "," #name "@@" #version)
+	__asm__ (".symver " ASM_NAME(#real) "," ASM_NAME(#name) "@@" #version)
 #endif
 
 #ifdef USE_VERSIONED_SYMBOLS
@@ -52,19 +52,19 @@
 #define use_symbol_version(real, name, version) /* nothing */
 #ifdef __powerpc64__
 #define use_default_symbol_version(real, name, version) \
-	__asm__ (".weak " #name); 			\
-	__asm__ (".weak ." #name); 			\
-	__asm__ (".set " #name "," #real);		\
-	__asm__ (".set ." #name ",." #real)
+	__asm__ (".weak " ASM_NAME(#name)); 			\
+	__asm__ (".weak ." ASM_NAME(#name)); 			\
+	__asm__ (".set " ASM_NAME(#name) "," ASM_NAME(#real));		\
+	__asm__ (".set ." ASM_NAME(#name) ",." ASM_NAME(#real))
 #else
 #if defined(__alpha__) || defined(__mips__)
 #define use_default_symbol_version(real, name, version) \
-        __asm__ (".weak " #name); \
-        __asm__ (#name " = " #real)
+        __asm__ (".weak " ASM_NAME(#name)); \
+        __asm__ (ASM_NAME(#name) " = " ASM_NAME(#real))
 #else
 #define use_default_symbol_version(real, name, version) \
-	__asm__ (".weak " #name); \
-	__asm__ (".set " #name "," #real)
+	__asm__ (".weak " ASM_NAME(#name)); \
+	__asm__ (".set " ASM_NAME(#name) "," ASM_NAME(#real))
 #endif
 #endif
 #endif
diff -r 8bdd68608788 -r aea9a680d282 include/local.h
--- a/include/local.h	Mon Sep 18 17:57:58 2006 +0200
+++ b/include/local.h	Tue Sep 19 18:07:51 2006 +0200
@@ -192,6 +192,9 @@ extern snd_lib_error_handler_t snd_err_m
 
 /* When a reference to SYMBOL is encountered, the linker will emit a
    warning message MSG.  */
+
+#define ASM_NAME(name) __SYMBOL_PREFIX name
+
 #ifdef HAVE_GNU_LD
 # ifdef HAVE_ELF
 
@@ -210,19 +213,19 @@ extern snd_lib_error_handler_t snd_err_m
    section attributes on what looks like a comment to the assembler.  */
 #  ifdef HAVE_SECTION_QUOTES
 #   define link_warning(symbol, msg) \
-  __make_section_unallocated (".gnu.warning." #symbol) \
+  __make_section_unallocated (".gnu.warning." ASM_NAME(#symbol)) \
   static const char __evoke_link_warning_##symbol[]	\
-    __attribute__ ((section (".gnu.warning." #symbol "\"\n\t#\""))) = msg;
+    __attribute__ ((section (".gnu.warning." ASM_NAME(#symbol) "\"\n\t#\""))) = msg;
 #  else
 #   define link_warning(symbol, msg) \
-  __make_section_unallocated (".gnu.warning." #symbol) \
+  __make_section_unallocated (".gnu.warning." ASM_NAME(#symbol)) \
   static const char __evoke_link_warning_##symbol[]	\
-    __attribute__ ((section (".gnu.warning." #symbol "\n\t#"))) = msg;
+    __attribute__ ((section (".gnu.warning." ASM_NAME(#symbol) "\n\t#"))) = msg;
 #  endif
 # else
 #  define link_warning(symbol, msg)		\
   asm (".stabs \"" msg "\",30,0,0,0\n\t"	\
-       ".stabs \"" __SYMBOL_PREFIX #symbol "\",1,0,0,0\n");
+       ".stabs \"" ASM_NAME(#symbol) "\",1,0,0,0\n");
 # endif
 #else
 /* We will never be heard; they will all die horribly.  */

-------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-27  6:41 ` Jaroslav Kysela
  2006-09-27 18:07   ` Elimar Riesebieter
@ 2006-09-28 10:23   ` Mike Frysinger
  1 sibling, 0 replies; 27+ messages in thread
From: Mike Frysinger @ 2006-09-28 10:23 UTC (permalink / raw)
  To: alsa-devel; +Cc: pkg-alsa-devel, Jaroslav Kysela


[-- Attachment #1.1: Type: text/plain, Size: 264 bytes --]

On Wednesday 27 September 2006 02:41, Jaroslav Kysela wrote:
> What is output from commands 'nm /usr/lib/libasound.so.2 | grep
> snd_pcm_hw_params_get_channels_min' and 'nm mocp | grep
> snd_pcm_hw_params_get_channels_min'?

`readelf -W -s` is nicer i think
-mike

[-- Attachment #1.2: Type: application/pgp-signature, Size: 827 bytes --]

[-- Attachment #2: Type: text/plain, Size: 348 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-27 18:13         ` Elimar Riesebieter
  2006-09-27 18:55           ` Jaroslav Kysela
@ 2006-09-28 10:28           ` Mike Frysinger
  1 sibling, 0 replies; 27+ messages in thread
From: Mike Frysinger @ 2006-09-28 10:28 UTC (permalink / raw)
  To: alsa-devel; +Cc: Takashi Iwai, pkg-alsa-devel, Lee Revell


[-- Attachment #1.1: Type: text/plain, Size: 667 bytes --]

On Wednesday 27 September 2006 14:13, Elimar Riesebieter wrote:
> The libs where build as follows:
>
> ../configure

i dont see how 1.0.13rc3 or older would work out of the box with this ... it 
doesnt include my build-out-of-tree patches

you'd see fun things like:
checking for aload* device file directory... /dev/
../configure: line 20271: src/pcm/pcm_symbols_list.c: No such file or 
directory
../configure: line 20271: src/pcm/pcm_symbols_list.c: No such file or 
directory
../configure: line 20271: src/pcm/pcm_symbols_list.c: No such file or 
directory
../configure: line 20271: src/pcm/pcm_symbols_list.c: No such file or 
directory
-mike

[-- Attachment #1.2: Type: application/pgp-signature, Size: 827 bytes --]

[-- Attachment #2: Type: text/plain, Size: 348 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-28 10:18         ` Takashi Iwai
@ 2006-09-28 10:34           ` Mike Frysinger
  2006-09-28 18:02           ` Elimar Riesebieter
  1 sibling, 0 replies; 27+ messages in thread
From: Mike Frysinger @ 2006-09-28 10:34 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: pkg-alsa-devel, alsa-devel, Jaroslav Kysela


[-- Attachment #1.1: Type: text/plain, Size: 744 bytes --]

On Thursday 28 September 2006 06:18, Takashi Iwai wrote:
> Hm, the versions are not seen here.

here's what i'm getting on my ppc with 1.0.13rc3:
$ tar xf alsa-lib-1.0.13rc3.tar.bz2
$ cd alsa-lib-1.0.13rc3
$ ./configure --enable-static
$ make -j6
$ objdump -T src/.libs/libasound.so | grep snd_pcm_hw_params_get_channels_min
00054fd4 g    DF .text  0000002c  ALSA_0.9    
__snd_pcm_hw_params_get_channels_min
00055000 g    DF .text  00000034 (ALSA_0.9)   
snd_pcm_hw_params_get_channels_min
00054fd4 g    DF .text  0000002c  ALSA_0.9.0rc4 
snd_pcm_hw_params_get_channels_min

> Also, what is defined as __SYMBOL_PREFIX in config.h?

$ grep __SYMBOL_PREFIX include/config.h
include/config.h:#define __SYMBOL_PREFIX ""
-mike

[-- Attachment #1.2: Type: application/pgp-signature, Size: 827 bytes --]

[-- Attachment #2: Type: text/plain, Size: 348 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-28 10:18         ` Takashi Iwai
  2006-09-28 10:34           ` Mike Frysinger
@ 2006-09-28 18:02           ` Elimar Riesebieter
  2006-09-28 18:16             ` Mike Frysinger
  2006-09-29 10:03             ` Takashi Iwai
  1 sibling, 2 replies; 27+ messages in thread
From: Elimar Riesebieter @ 2006-09-28 18:02 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: pkg-alsa-devel, alsa-devel, Jaroslav Kysela

On Thu, 28 Sep 2006 the mental interface of
Takashi Iwai told:

> At Wed, 27 Sep 2006 21:48:40 +0200,
> Elimar Riesebieter wrote:
> > 
> > On Wed, 27 Sep 2006 the mental interface of
> > Takashi Iwai told:
> > 
> > > At Wed, 27 Sep 2006 20:07:56 +0200,
> > > Elimar Riesebieter wrote:
> > > > 
> > > > On Wed, 27 Sep 2006 the mental interface of
> > > > Jaroslav Kysela told:
> > > > 
> > > > > On Tue, 26 Sep 2006, Elimar Riesebieter wrote:
> > > > > 
> > > > > > Hi all,
> > > > > > 
> > > > > > I am testing 1.0.13rc3 (lib/driver/utils) on PPC/2.6.18
> > > > > > 
> > > > > > Starting a soundapp like moc gives:
> > > > > > 
> > > > > > "relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min,
> > > > > > version ALSA_0.9.0rc4 not defined in file libasound.so.2 with link
> > > > > > time reference"
> > > > > > 
> > > > > > Any hints?
> > > > > 
> > > > > What is output from commands 'nm /usr/lib/libasound.so.2 | grep 
> > > > > snd_pcm_hw_params_get_channels_min' 
> > > > 
> > > > nm: /usr/lib/libasound.so.2: no symbols
> > > > 
> > > > > and 'nm mocp | grep 
> > > > > snd_pcm_hw_params_get_channels_min'?
> > > > 
> > > > nm: /usr/bin/mocp: no symbols
> > > 
> > > The symbols are stripped.
> > > Use objdump, e.g. with -T option, instead.
> > 
> > root@samweis ~ # objdump -T  `which mocp` | grep
> > snd_pcm_hw_params_get_channels_min
> > 1005ca20      DF *UND*  0000002c  ALSA_0.9.0rc4 \
> > snd_pcm_hw_params_get_channels_min
> > root@samweis ~ # objdump -T /usr/lib/libasound.so.2 | grep
> > snd_pcm_hw_params_get_channels_min
> > 00057aa0 g    DF .text  0000002c  ALSA_0.9 \
> > __snd_pcm_hw_params_get_channels_min
> > 00057aa0  w   DF .text  0000002c  ALSA_0.9 \
> > snd_pcm_hw_params_get_channels_min
> 
> Hm, the versions are not seen here.
> 
> > Hmmm, why there are different versions? 1.0.13rc2 works fine.
> 
> If 1.0.13rc2 works, a skeptical change is the prefix check below.
> Could you revert this patch and try whether it works?

No changes.

> Also, what is defined as __SYMBOL_PREFIX in config.h?

grep __SYMBOL_PREFIX include/config.h

#define __SYMBOL_PREFIX ""

# readelf -W -s /usr/lib/libasound.so.2 | grep snd_pcm_hw_params_get_channels_min
141: 00057aa0    44 FUNC    GLOBAL DEFAULT   10 __snd_pcm_hw_params_get_channels_min@@ALSA_0.9
614: 00057aa0    44 FUNC    WEAK   DEFAULT   10 snd_pcm_hw_params_get_channels_min@@ALSA_0.9
# readelf -W -s /usr/bin/mocp | grep snd_pcm_hw_params_get_channels_min
201: 1005c8c0    44 FUNC    GLOBAL DEFAULT  UND snd_pcm_hw_params_get_channels_min@ALSA_0.9.0rc4 (11)
141: 00057aa0    44 FUNC    GLOBAL DEFAULT   10 __snd_pcm_hw_params_get_channels_min@@ALSA_0.9

Elimar


-- 
  It's a good thing we don't get all 
  the government we pay for.

-------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-28 18:02           ` Elimar Riesebieter
@ 2006-09-28 18:16             ` Mike Frysinger
  2006-09-28 18:44               ` Elimar Riesebieter
  2006-09-29 10:03             ` Takashi Iwai
  1 sibling, 1 reply; 27+ messages in thread
From: Mike Frysinger @ 2006-09-28 18:16 UTC (permalink / raw)
  To: Elimar Riesebieter
  Cc: Takashi Iwai, pkg-alsa-devel, alsa-devel, Jaroslav Kysela


[-- Attachment #1.1: Type: text/plain, Size: 484 bytes --]

On Thursday 28 September 2006 14:02, Elimar Riesebieter wrote:
> # readelf -W -s /usr/lib/libasound.so.2 | ...
> __snd_pcm_hw_params_get_channels_min@@ALSA_0.9
> snd_pcm_hw_params_get_channels_min@@ALSA_0.9

so the question is where did your 0.9.0rc4 go ... unpacked 1.0.12 and 
1.0.13rc3 and both give me the same list with the rc4 in it ...

what version binutils ?  can you capture the entire configure & make output 
into a log file and compress it and post it ?
-mike

[-- Attachment #1.2: Type: application/pgp-signature, Size: 827 bytes --]

[-- Attachment #2: Type: text/plain, Size: 348 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-28 18:16             ` Mike Frysinger
@ 2006-09-28 18:44               ` Elimar Riesebieter
  2006-09-28 18:52                 ` Lee Revell
  2006-09-28 18:59                 ` Mike Frysinger
  0 siblings, 2 replies; 27+ messages in thread
From: Elimar Riesebieter @ 2006-09-28 18:44 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: Takashi Iwai, pkg-alsa-devel, alsa-devel, Jaroslav Kysela


[-- Attachment #1.1.1: Type: text/plain, Size: 991 bytes --]

On Thu, 28 Sep 2006 the mental interface of
Mike Frysinger told:

> On Thursday 28 September 2006 14:02, Elimar Riesebieter wrote:
> > # readelf -W -s /usr/lib/libasound.so.2 | ...
> > __snd_pcm_hw_params_get_channels_min@@ALSA_0.9
> > snd_pcm_hw_params_get_channels_min@@ALSA_0.9
> 
> so the question is where did your 0.9.0rc4 go ... unpacked 1.0.12 and 
> 1.0.13rc3 and both give me the same list with the rc4 in it ...
> 
> what version binutils ?  

$ ld -v
GNU ld version 2.17 Debian GNU/Linux

> can you capture the entire configure & make output 
> into a log file and compress it and post it ?

The output of
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--datadir=/usr/share \
--build=powerpc-linux-gnu \
--enable-static=yes \
--enable--shared=no \
--disable-maintainer-mode \
> config.log
is attached.

THX
Elimar


-- 
  The path to source is always uphill!
                                -unknown-


[-- Attachment #1.1.2: config.log.gz --]
[-- Type: application/x-gunzip, Size: 8349 bytes --]

[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 348 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-28 18:44               ` Elimar Riesebieter
@ 2006-09-28 18:52                 ` Lee Revell
  2006-09-28 19:15                   ` Elimar Riesebieter
  2006-09-28 18:59                 ` Mike Frysinger
  1 sibling, 1 reply; 27+ messages in thread
From: Lee Revell @ 2006-09-28 18:52 UTC (permalink / raw)
  To: Elimar Riesebieter
  Cc: Takashi Iwai, alsa-devel, pkg-alsa-devel, Jaroslav Kysela

On Thu, 2006-09-28 at 20:44 +0200, Elimar Riesebieter wrote:
> --enable--shared=no \

Was this typo pasted from your actual build script?

Lee


-------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-28 18:44               ` Elimar Riesebieter
  2006-09-28 18:52                 ` Lee Revell
@ 2006-09-28 18:59                 ` Mike Frysinger
  2006-09-28 19:28                   ` Elimar Riesebieter
  1 sibling, 1 reply; 27+ messages in thread
From: Mike Frysinger @ 2006-09-28 18:59 UTC (permalink / raw)
  To: Elimar Riesebieter
  Cc: Takashi Iwai, pkg-alsa-devel, alsa-devel, Jaroslav Kysela


[-- Attachment #1.1: Type: text/plain, Size: 123 bytes --]

On Thursday 28 September 2006 14:44, Elimar Riesebieter wrote:
> is attached.

ok, but that doesnt have:
make >& log
-mike

[-- Attachment #1.2: Type: application/pgp-signature, Size: 827 bytes --]

[-- Attachment #2: Type: text/plain, Size: 348 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-28 18:52                 ` Lee Revell
@ 2006-09-28 19:15                   ` Elimar Riesebieter
  2006-09-28 19:33                     ` Mike Frysinger
  0 siblings, 1 reply; 27+ messages in thread
From: Elimar Riesebieter @ 2006-09-28 19:15 UTC (permalink / raw)
  To: pkg-alsa-devel, alsa-devel

On Thu, 28 Sep 2006 the mental interface of
Lee Revell told:

> On Thu, 2006-09-28 at 20:44 +0200, Elimar Riesebieter wrote:
> > --enable--shared=no \
> 
> Was this typo pasted from your actual build script?

Why is that a typo? This I've done as adviced from Jaroslav:

"If you would like to use the static ALSA library, you need to use
these options for the configure script:

        ./configure --enable-shared=no --enable-static=yes

Unfortunately, due to bug in the libtool script, the shared and
static library cannot be built together."

Elimar


-- 
  On the keyboard of life you have always
  to keep a finger at the escape key;-)

-------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-28 18:59                 ` Mike Frysinger
@ 2006-09-28 19:28                   ` Elimar Riesebieter
  2006-09-28 19:52                     ` Mike Frysinger
  0 siblings, 1 reply; 27+ messages in thread
From: Elimar Riesebieter @ 2006-09-28 19:28 UTC (permalink / raw)
  To: pkg-alsa-devel, alsa-devel

[-- Attachment #1: Type: text/plain, Size: 355 bytes --]

On Thu, 28 Sep 2006 the mental interface of
Mike Frysinger told:

> On Thursday 28 September 2006 14:44, Elimar Riesebieter wrote:
> > is attached.
> 
> ok, but that doesnt have:
> make >& log

Please find attached the complete Debian buildlog.

THX
Elimar


-- 
  Planung:
  Ersatz des Zufalls durch den Irrtum.
                                -unknown-

[-- Attachment #2: alsa-lib_1.0.13rc3-1_powerpc.build.gz --]
[-- Type: application/x-gunzip, Size: 30498 bytes --]

[-- Attachment #3: Type: text/plain, Size: 348 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #4: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-28 19:15                   ` Elimar Riesebieter
@ 2006-09-28 19:33                     ` Mike Frysinger
  0 siblings, 0 replies; 27+ messages in thread
From: Mike Frysinger @ 2006-09-28 19:33 UTC (permalink / raw)
  To: alsa-devel; +Cc: pkg-alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 487 bytes --]

On Thursday 28 September 2006 15:15, Elimar Riesebieter wrote:
> On Thu, 28 Sep 2006 the mental interface of Lee Revell told:
> > On Thu, 2006-09-28 at 20:44 +0200, Elimar Riesebieter wrote:
> > > --enable--shared=no \
> >
> > Was this typo pasted from your actual build script?
>
> Why is that a typo?

you have too many dashes in there

and the point here is to check out versioned symbols in the shared library; 
symbol versioning has no value in static libraries
-mike

[-- Attachment #1.2: Type: application/pgp-signature, Size: 827 bytes --]

[-- Attachment #2: Type: text/plain, Size: 348 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-28 19:28                   ` Elimar Riesebieter
@ 2006-09-28 19:52                     ` Mike Frysinger
  0 siblings, 0 replies; 27+ messages in thread
From: Mike Frysinger @ 2006-09-28 19:52 UTC (permalink / raw)
  To: alsa-devel; +Cc: pkg-alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 849 bytes --]

why dont you try building it by hand first and see if you have the same 
problem

the build looked ok, but i'm still suspicious of the fact you're building out 
of tree

another thing you could try is to copy & paste that final link which produces 
the libasound.so with the Versions file and stick -Wl,-M and review the 
output ... you should see something like:
 .text	0x000000000004d394    0xb574 pcm/.libs/libpcm.a(pcm.o)
	0x0000000000054f9c	 __snd_pcm_hw_params_get_channels_min
	0x0000000000054fc8	snd_pcm_hw_params_get_channels_min@ALSA_0.9
	0x0000000000054f9c	snd_pcm_hw_params_get_channels_min@@ALSA_0.9.0rc4
there is of course a lot more output; i just snipped a ton

i'd also wager that this symbol isnt your only problem ... in your readelf, 
grep for 0.9.0rc4 and make sure you have a whole bunch of symbols ...
-mike

[-- Attachment #1.2: Type: application/pgp-signature, Size: 827 bytes --]

[-- Attachment #2: Type: text/plain, Size: 348 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-28 18:02           ` Elimar Riesebieter
  2006-09-28 18:16             ` Mike Frysinger
@ 2006-09-29 10:03             ` Takashi Iwai
  2006-09-29 19:54               ` Elimar Riesebieter
  1 sibling, 1 reply; 27+ messages in thread
From: Takashi Iwai @ 2006-09-29 10:03 UTC (permalink / raw)
  To: Elimar Riesebieter; +Cc: pkg-alsa-devel, alsa-devel, Jaroslav Kysela

At Thu, 28 Sep 2006 20:02:07 +0200,
Elimar Riesebieter wrote:
> 
> On Thu, 28 Sep 2006 the mental interface of
> Takashi Iwai told:
> 
> > At Wed, 27 Sep 2006 21:48:40 +0200,
> > Elimar Riesebieter wrote:
> > > 
> > > On Wed, 27 Sep 2006 the mental interface of
> > > Takashi Iwai told:
> > > 
> > > > At Wed, 27 Sep 2006 20:07:56 +0200,
> > > > Elimar Riesebieter wrote:
> > > > > 
> > > > > On Wed, 27 Sep 2006 the mental interface of
> > > > > Jaroslav Kysela told:
> > > > > 
> > > > > > On Tue, 26 Sep 2006, Elimar Riesebieter wrote:
> > > > > > 
> > > > > > > Hi all,
> > > > > > > 
> > > > > > > I am testing 1.0.13rc3 (lib/driver/utils) on PPC/2.6.18
> > > > > > > 
> > > > > > > Starting a soundapp like moc gives:
> > > > > > > 
> > > > > > > "relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min,
> > > > > > > version ALSA_0.9.0rc4 not defined in file libasound.so.2 with link
> > > > > > > time reference"
> > > > > > > 
> > > > > > > Any hints?
> > > > > > 
> > > > > > What is output from commands 'nm /usr/lib/libasound.so.2 | grep 
> > > > > > snd_pcm_hw_params_get_channels_min' 
> > > > > 
> > > > > nm: /usr/lib/libasound.so.2: no symbols
> > > > > 
> > > > > > and 'nm mocp | grep 
> > > > > > snd_pcm_hw_params_get_channels_min'?
> > > > > 
> > > > > nm: /usr/bin/mocp: no symbols
> > > > 
> > > > The symbols are stripped.
> > > > Use objdump, e.g. with -T option, instead.
> > > 
> > > root@samweis ~ # objdump -T  `which mocp` | grep
> > > snd_pcm_hw_params_get_channels_min
> > > 1005ca20      DF *UND*  0000002c  ALSA_0.9.0rc4 \
> > > snd_pcm_hw_params_get_channels_min
> > > root@samweis ~ # objdump -T /usr/lib/libasound.so.2 | grep
> > > snd_pcm_hw_params_get_channels_min
> > > 00057aa0 g    DF .text  0000002c  ALSA_0.9 \
> > > __snd_pcm_hw_params_get_channels_min
> > > 00057aa0  w   DF .text  0000002c  ALSA_0.9 \
> > > snd_pcm_hw_params_get_channels_min
> > 
> > Hm, the versions are not seen here.
> > 
> > > Hmmm, why there are different versions? 1.0.13rc2 works fine.
> > 
> > If 1.0.13rc2 works, a skeptical change is the prefix check below.
> > Could you revert this patch and try whether it works?
> 
> No changes.

There are only three changes in between 1.0.13rc2 and rc3.  The patch
I attached in my last mail was one of them.  Other two are definitely
irrelevant with build stuff.  So, I suspect the fact it worked with
1.0.13rc2 now.

Could you recheck whether rc2 works and the patched rc3 really doesn't
work again?


Takashi

-------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min ..
  2006-09-29 10:03             ` Takashi Iwai
@ 2006-09-29 19:54               ` Elimar Riesebieter
  0 siblings, 0 replies; 27+ messages in thread
From: Elimar Riesebieter @ 2006-09-29 19:54 UTC (permalink / raw)
  To: pkg-alsa-devel, alsa-devel

On Fri, 29 Sep 2006 the mental interface of
Takashi Iwai told:

[...]
> Could you recheck whether rc2 works and the patched rc3 really doesn't
> work again?

My apologies. I reworked all Debian patches. One has to relibtoolize
which I created wrong. rc3 works _*without*_ rediff the sym patch.

Sorry for the noise and thank you very much for cooperation.

Elimar


-- 
  Experience is something you don't get until 
  just after you need it!

-------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2006-09-29 19:54 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-26 20:13 1.0.13rc3: relocation error: mocp: symbol snd_pcm_hw_params_get_channels_min Elimar Riesebieter
2006-09-26 20:23 ` Lee Revell
2006-09-26 20:40   ` Elimar Riesebieter
2006-09-26 21:03     ` Lee Revell
2006-09-26 21:31       ` Elimar Riesebieter
2006-09-27 12:35       ` Takashi Iwai
2006-09-27 18:13         ` Elimar Riesebieter
2006-09-27 18:55           ` Jaroslav Kysela
2006-09-28 10:28           ` Mike Frysinger
2006-09-27  6:41 ` Jaroslav Kysela
2006-09-27 18:07   ` Elimar Riesebieter
2006-09-27 19:23     ` Takashi Iwai
2006-09-27 19:48       ` Elimar Riesebieter
2006-09-28 10:18         ` Takashi Iwai
2006-09-28 10:34           ` Mike Frysinger
2006-09-28 18:02           ` Elimar Riesebieter
2006-09-28 18:16             ` Mike Frysinger
2006-09-28 18:44               ` Elimar Riesebieter
2006-09-28 18:52                 ` Lee Revell
2006-09-28 19:15                   ` Elimar Riesebieter
2006-09-28 19:33                     ` Mike Frysinger
2006-09-28 18:59                 ` Mike Frysinger
2006-09-28 19:28                   ` Elimar Riesebieter
2006-09-28 19:52                     ` Mike Frysinger
2006-09-29 10:03             ` Takashi Iwai
2006-09-29 19:54               ` Elimar Riesebieter
2006-09-28 10:23   ` Mike Frysinger

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.