ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] libalsa (FAILED mplayer.git=1.0-alt35.29311.1)
Date: Sun, 17 May 2009 17:27:47 +0400
Message-ID: <20090517132747.GY10323@altlinux.org> (raw)
In-Reply-To: <20090517130752.GB9495@wo.int.altlinux.org>

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

On Sun, May 17, 2009 at 05:07:52PM +0400, Dmitry V. Levin wrote:
> On Sun, May 17, 2009 at 10:12:09AM +0400, Alexey Tourbin wrote:
> > On Sat, May 16, 2009 at 10:34:22PM +0400, Girar Builder robot wrote:
> > > http://git.altlinux.org/tasks/6576/task/log
> > > 
> > > 2009-May-16 22:14:01 :: task #6576 for sisyphus started:
> > > #1 build 1.0-alt35.29311.1 from /people/ender/packages/mplayer.git
> > > 2009-May-16 22:14:05 :: created pkg.tar for mplayer.git tag 1.0-alt35.29311.1
> > > 2009-May-16 22:14:06 :: [i586] mplayer.git 1.0-alt35.29311.1: build start
> > > 2009-May-16 22:14:06 :: [x86_64] mplayer.git 1.0-alt35.29311.1: build start
> > > TOOLS/bmovl-test.c:39: warning: ignoring return value of 'write', declared with attribute warn_unused_result
> > > /usr/lib64/libSDL-1.2.so.0: undefined reference to `snd_pcm_hw_params_set_period_size_near@ALSA_0.9'
> > > /usr/lib64/libSDL-1.2.so.0: undefined reference to `snd_pcm_hw_params_set_periods_near@ALSA_0.9'
> > > /usr/lib64/libSDL-1.2.so.0: undefined reference to `snd_pcm_hw_params_set_rate_near@ALSA_0.9'
> > > /usr/lib64/libSDL-1.2.so.0: undefined reference to `snd_pcm_hw_params_get_channels@ALSA_0.9'
> > > collect2: ld returned 1 exit status
> > 
> > После обновления libalsa что-то сломалось в symbol versioning.
> > 
> > [at@altair ~]$ rpmpeek /ALT/archive/Sisyphus/2009/05/01/files/x86_64/RPMS/libalsa-1.0.19-alt1.x86_64.rpm readelf -aW ./usr/lib64/libasound.so.2 |grep -w snd_pcm_hw_params_get_channels
> >    231: 00000000000519d0    31 FUNC    GLOBAL DEFAULT   12 snd_pcm_hw_params_get_channels@ALSA_0.9
> >    233: 00000000000519c0    15 FUNC    GLOBAL DEFAULT   12 snd_pcm_hw_params_get_channels@@ALSA_0.9.0rc4
> > [at@altair ~]$ rpmpeek /ALT/Sisyphus/files/x86_64/RPMS/libalsa-1.0.20-alt1.x86_64.rpm readelf -aW ./usr/lib64/libasound.so.2 |grep -w snd_pcm_hw_params_get_channels
> >    493: 0000000000051080    15 FUNC    WEAK   DEFAULT   12 snd_pcm_hw_params_get_channels@@ALSA_0.9.0rc4
> > [at@altair ~]$ 
> > 
> > Похоже, что это связано не с изменениями в libalsa, а с изменениями
> > в binutils.
> 
> У libalsa и раньше случались неприятности с symbol versioning, так что
> надо сперва проверить предыдущую версию libalsa.

Я немного проверил.  В libalsa не видно ничего такого, что должно
задевать ABI столь странным образом.  В частности, файл src/Versions.in
не изменился.

$ git clone git://git.altlinux.org/gears/l/libalsa.git
$ cd libalsa
$ git diff --stat 1.0.19-alt1..1.0.20-alt1
 .../tags/0f2005a18a1444d5ac93beac1581549bc9397007  |    8 +
 .../tags/b015ae2d51734e11d44d4f11f3d053a74f88041c  |    8 -
 .gear/tags/list                                    |    2 +-
 configure.in                                       |    4 +-
 include/sound/asound.h                             |    2 +-
 libalsa.spec                                       |    5 +-
 src/conf/cards/CMI8788.conf                        |   13 +-
 src/conf/cards/GUS.conf                            |   47 ----
 src/conf/cards/HDA-Intel.conf                      |    3 +
 src/control/control_ext.c                          |   18 ++-
 src/mixer/simple_none.c                            |    7 +
 src/pcm/pcm.c                                      |   58 +++--
 src/pcm/pcm_file.c                                 |  266 ++++++++++++++++----
 src/pcm/pcm_hw.c                                   |    4 +
 src/pcm/pcm_plug.c                                 |   35 ++-
 src/seq/seq.c                                      |   44 ++--
 src/seq/seqmid.c                                   |    4 +-
 17 files changed, 349 insertions(+), 179 deletions(-)
$

А результат сборки изменился очень странно.  Было
GLOBAL DEFAULT   12 snd_pcm_hw_params_get_channels@ALSA_0.9
GLOBAL DEFAULT   12 snd_pcm_hw_params_get_channels@@ALSA_0.9.0rc4

Стало
WEAK   DEFAULT   12 snd_pcm_hw_params_get_channels@@ALSA_0.9.0rc4

Заметь что дефолтного символа теперь нет, а тот который остался стал weak.
Там ещё много символов стало weak.

$ rpmsodiff /ALT/archive/Sisyphus/2009/05/01/files/x86_64/RPMS/libalsa-1.0.19-alt1.x86_64.rpm  /ALT/Sisyphus/files/x86_64/RPMS/libalsa-1.0.20-alt1.x86_64.rpm
        common sonames:
libasound.so.2  /usr/lib64/libasound.so.2.0.0   /usr/lib64/libasound.so.2.0.0
--- libalsa-1.0.19-alt1/libasound.so.2  2009-01-19 22:38:13 +0300
+++ libalsa-1.0.20-alt1/libasound.so.2  2009-05-15 15:31:37 +0400
@@ -243,4 +243,4 @@
 snd_ctl_elem_info_get_device   T
-snd_ctl_elem_info_get_dimension        T
-snd_ctl_elem_info_get_dimensions       T
+snd_ctl_elem_info_get_dimension        W
+snd_ctl_elem_info_get_dimensions       W
 snd_ctl_elem_info_get_id       T
@@ -760,3 +760,3 @@
 snd_pcm_format_width   T
-snd_pcm_forward        T
+snd_pcm_forward        W
 snd_pcm_forwardable    T
...

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2009-05-17 13:27 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-17  6:12 ` Alexey Tourbin
2009-05-17  7:30   ` Afanasov Dmitry
2009-05-17 12:54     ` Alexey Tourbin
2009-05-17 14:21       ` Afanasov Dmitry
2009-05-17 14:26         ` Valery V. Inozemtsev
2009-05-17 15:16           ` Afanasov Dmitry
2009-05-17 13:07   ` Dmitry V. Levin
2009-05-17 13:27     ` Alexey Tourbin [this message]
2009-05-17 13:28     ` Valery V. Inozemtsev
2009-05-17 13:28   ` [devel] libalsa ABI breakage Dmitry V. Levin
2009-05-17 13:32     ` Dmitry V. Levin
2009-05-17 14:11       ` Valery V. Inozemtsev
2009-05-17 14:26         ` Dmitry V. Levin
2009-05-17 14:33           ` Valery V. Inozemtsev
2009-05-17 15:05             ` Alexey Tourbin
2009-05-17 15:08               ` Valery V. Inozemtsev
2009-05-17 15:52                 ` Max Ivanov
2009-05-17 17:31                   ` Sergey Vlasov
2009-05-24 10:30                     ` Michael Shigorin
2009-05-17 16:33               ` Sergey Vlasov
2009-05-17 16:47                 ` Alexey Tourbin
2009-05-17 17:22                   ` Sergey Vlasov
2009-05-18  0:25                     ` Dmitry V. Levin
2009-05-17 13:33     ` Valery V. Inozemtsev
2009-05-24 10:32       ` Michael Shigorin
2009-05-24 12:17         ` Damir Shayhutdinov
2009-05-17 14:07   ` [devel] libalsa (FAILED mplayer.git=1.0-alt35.29311.1) Sergey Vlasov
2009-05-17 15:20     ` Sergey Vlasov
2009-05-17 15:43       ` Valery V. Inozemtsev
2009-05-17 16:39         ` Sergey Vlasov

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=20090517132747.GY10323@altlinux.org \
    --to=at@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    /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

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git