ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Mikhail Yakshin <greycat@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: [devel] Q: linuxsampler
Date: Mon, 05 Dec 2005 01:40:24 +0300
Message-ID: <43937058.4010208@altlinux.org> (raw)

Приветствую и попробую попросить помощи у сообщества.

Есть связка пакетов проекта linuxsampler, которую я пытаюсь собирает. 
Состоит из 2 независимых приложений: frontend и backend. Весь frontend 
собрался и прошел в Сизиф, без проблем.

Проблемы с backend: он состоит из libgig, которая парсит файлы, 
liblinuxsampler.so.0, которая содержит собственно функциональность 
сэмплера и тривиального бинарника linuxsampler, который тупо загружает и 
выполняет по сути код из этой библиотеки. libgig собрался без проблем, 
все в порядке, TEXTREL нет, в Сизиф прошел. А вот linuxsampler и его lib 
собираются из одного и того же тарболла (впрочем, пакуются они тоже в 
один бинарный пакет), и здесь начинаются проблемы с TEXTREL: пакет 
собирается, но в результате почему-то внутри получаются эти самые text 
relocations и проверки оно не проходит.

Что характерно, сам продукт написан достаточно грамотно и сам 
обрабатывает ситуацию с -fPIC, что видно по логам:

[...]
checking if i586-alt-linux-gcc static flag  works... yes
checking if i586-alt-linux-gcc supports -fno-rtti -fno-exceptions... no
checking for i586-alt-linux-gcc option to produce PIC... -fPIC
checking if i586-alt-linux-gcc PIC flag -fPIC works... yes
checking if i586-alt-linux-gcc supports -c -o file.o... yes
checking whether the i586-alt-linux-gcc linker (/usr/bin/ld) supports 
shared libraries... yes
checking whether -lc should be explicitly linked in... no
[...]

и далее по сборке, -fPIC используется:

  i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -Wreturn-type 
-ffast-math -march=i586 -pipe -Wall -O2 -march=i586 -mcpu=i686 -msse -MT 
lscpparser.lo -MD -MP -MF .deps/lscpparser.Tpo -c lscpparser.cpp  -fPIC 
-DPIC -o .libs/lscpparser.o

и т.п.

Но при этом почему-то на выходе получаем:

Verifying and fixing files in /usr/src/tmp/linuxsampler-buildroot 
(binconfig,pkgconfig,libtool)
/usr/lib/linuxsampler/liblinuxsampler.la: dependency_libs: ' -lgig ljack 
-lasound' --> '-lgig -ljack -lasound'
Compressing files in /usr/src/tmp/linuxsampler-buildroot (auto)
Verifying ELF objects in /usr/src/tmp/linuxsampler-buildroot 
(rpath=normal,textrel=normal)
verify-elf: ./usr/lib/linuxsampler/liblinuxsampler.so.0.0.0: TEXTREL 
entry found: 0x0

и соответственно, это правда - видно и .la-файл, который собрался туда 
же. Вероятно, есть какие-то проблемы с libtool, которые приводят к 
такому результату - в какую сторону копать, что читать, что стоит смотреть?

Сам spec очень простой, собирается все вот таким вот образом:

%prep
%setup -q

%build
autoreconf -fisv
%configure
%make_build

%install
%make DESTDIR=%buildroot install

Пробовал добавлять в %configure --disable-static - не помогает. Есть 
подозрение на то, что такой эффект дают "assembly optimizations", 
которые включены и выключать их не очень хочется...

-- 
WBR, Mikhail Yakshin AKA GreyCat


             reply	other threads:[~2005-12-04 22:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-04 22:40 Mikhail Yakshin [this message]
2005-12-04 22:51 ` Dmitry V. Levin
2005-12-05  5:44   ` Andrey Rahmatullin
2005-12-05 19:08     ` Dmitry V. Levin
2005-12-05  9:19   ` [devel] q: textrel faq/wiki entry? (was: Q: linuxsampler) Michael Shigorin
2005-12-05 19:03     ` [devel] q: textrel faq/wiki entry? Dmitry V. Levin
2005-12-05 21:09     ` [devel] q: textrel faq/wiki entry? (was: Q: linuxsampler) Vitaly Lipatov
2005-12-06  9:58       ` [devel] " Michael Shigorin
2005-12-09 18:46   ` [devel] Q: linuxsampler Mikhail Yakshin

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=43937058.4010208@altlinux.org \
    --to=greycat@altlinux.org \
    --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