ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Re: IA: eliminating TEXTRELocations
Date: Mon, 10 Nov 2003 21:39:54 +0300
Message-ID: <20031110183954.GA25382@basalt.office.altlinux.org> (raw)
In-Reply-To: <20031110180945.GK686@osdn.org.ua>

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

On Mon, Nov 10, 2003 at 08:09:45PM +0200, Michael Shigorin wrote:
> On Mon, Nov 10, 2003 at 03:21:05PM +0300, Dmitry V. Levin wrote:
> > libalsa-0.9.8-alt1
> 
> Вот пробую собирать alt2 с приложенным спеком.
> 
> ---
> Verifying and fixing files in /usr/src/RPM/tmp/libalsa-buildroot (binconfig,pkgconfig,libtool)
> /usr/lib/pkgconfig/alsa.pc: Libs: '-L${libdir} -lasound -lm -ldl -lpthread' --> '-lasound -lm -ldl -lpthread'
> /usr/lib/libasound.la: dependency_libs: ' -lm -ldl -lpthread' --> '-lm -ldl -lpthread'
> Compressing files in /usr/src/RPM/tmp/libalsa-buildroot (auto)
> Verifying ELF objects in /usr/src/RPM/tmp/libalsa-buildroot (rpath=normal,textrel=normal)
> verify-elf: ./usr/lib/libasound.so.2.0.0: TEXTREL entry found: 0x0
> error: Bad exit status from /usr/src/RPM/tmp/rpm-tmp.75541 (%install)
> ---
> 
> %optflags_shared в наличии.  Что дальше? (точнее: кто-то может
> поправить?)

Проблема в самом libalsa; %optflags_shared здесь не нужен, ибо (по
результатам вчерашней пересборки)

$ fgrep -e -march=i586 error/libalsa-0.9.8-alt1 |fgrep -e -fPIC |wc -l
     78
$ fgrep -e -march=i586 error/libalsa-0.9.8-alt1 |fgrep -ve -fPIC |wc -l
    175

Если добавить %optflags_shared, то получается вот что:
$ fgrep -e -march=i586 error/libalsa-0.9.8-alt1 |fgrep -ve -fPIC |wc -l
      1
$ fgrep -e -march=i586 error/libalsa-0.9.8-alt1 |fgrep -ve -fPIC
i586-alt-linux-gcc -shared .libs/libasound.la-10.o -Wl,--whole-archive control/.libs/libcontrol.a mixer/.libs/libmixer.a ordinary_mixer/.libs/libordinarymixer.a pcm/.libs/libpcm.a ordinary_pcm/.libs/libordinarypcm.a rawmidi/.libs/librawmidi.a timer/.libs/libtimer.a hwdep/.libs/libhwdep.a seq/.libs/libseq.a instr/.libs/libinstr.a compat/.libs/libcompat.a alisp/.libs/libalisp.a -Wl,--no-whole-archive  -lm -ldl -lpthread  -march=i586 -mcpu=i686 -Wl,--version-script=Versions -Wl,-soname -Wl,libasound.so.2 -o .libs/libasound.so.2.0.0

Проблема очевидна, не правда ли?


-- 
ldv

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

  reply	other threads:[~2003-11-10 18:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-08 15:57 [devel] " Dmitry V. Levin
2003-11-08 17:29 ` [devel] " Michael Shigorin
2003-11-10 12:21 ` [devel] " Dmitry V. Levin
2003-11-10 18:09   ` [devel] " Michael Shigorin
2003-11-10 18:39     ` Dmitry V. Levin [this message]
2003-11-12  9:14   ` Mikhail Zabaluev
2003-11-10 12:27 ` Alexey Tourbin
2003-11-12 15:50 ` [devel] " Vitaly Lugovsky
2003-11-12 15:07   ` Dmitry V. Levin
2003-11-12 16:18     ` Vitaly Lugovsky
2003-11-12 15:34       ` Dmitry V. Levin
2003-11-12 16:21       ` [devel] " Alexey Tourbin

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=20031110183954.GA25382@basalt.office.altlinux.org \
    --to=ldv@altlinux.org \
    --cc=devel@altlinux.ru \
    /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