ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Evgenii Terechkov <evg@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] Linkinkg problem
Date: Sun, 04 Mar 2007 22:46:02 +0700
Message-ID: <m3wt1xc8qt.fsf@evg.krastel.ru> (raw)
In-Reply-To: <679044850703040711k6ab15640s72495d2ef61cc19@mail.gmail.com> (Damir Shayhutdinov's message of "Sun\, 4 Mar 2007 18\:11\:23 +0300")

"Damir Shayhutdinov" пишет:

>> ccache g++ audaciousplugin2.o audaciousinterface.o clientstubbase.o libimmscore.a  `pkg-config audacious glib --libs` -lglib \
>>         -L. -lXss -lXext -lX11 -lpcre -lsqlite3 -lz  -ltag -L/usr/X11R6/lib \
>>         -shared -Wl,-z,defs,-soname,libaudaciousimms2.so -o libaudaciousimms2.so
>> audaciousinterface.o: In function `about':
>> bmpinterface.c:(.text+0x74): undefined reference to `xmms_show_message'
>> collect2: ld returned 1 exit status
>> make[1]: *** [libaudaciousimms2.so] Error 1
>> make: *** [all] Error 2
>>
>> Я в смущений: на случай с --as-needed это вроде не похоже (все объектники
>> находятся до бибилиотек), нужный инклуд в bmpinterface.c присутствует
>> (зависит от -DAUDACIOUS), -laudacious тоже в наличий. Практически каждый из
>> плагинов пакета audacious-plugins успешно использует тот же самый
>> xmms_show_message (правда, почему-то, ни один не слинкован с
>> libaudacious.so). В чём фишка?
> Hint: а в какой библиотеке находится символ xmms_show_message? Вот ее
> то и надо добавить в линковку.

Это я как бы в теорий тоже знаю. Но тут и начинается самое забавное:

~$ findsym xmms_show_message
/usr/lib/libxmms.so.1: 00009f39 T xmms_show_message
~$ R -qf /usr/lib/libxmms.so.1
libxmms-1.2.10-alt12

Это не то, что нам нужно.

~$ nm ~/RPM/BUILD/audacious-1.3.0/src/audacious/audacious G xmms_show_mess
0808c3fd T xmms_show_message
~$ strings /usr/bin/audacious G xmms_show_messa
xmms_show_message
~$ R -qa G audacio
libaudacious-devel-1.3.0-alt1
audacious-plugins-1.3.0-alt1
audacious-1.3.0-alt1
libaudacious-1.3.0-alt1
audacious-itouch-0.1.1-alt1

И как же с этим чудом линковать? Или это я так криво собрал это чудо?
Странно, audacious-plugins же собрались и работают.

-- 
Терешков Евгений, ALT Linux Team.

  reply	other threads:[~2007-03-04 15:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-04 12:31 Evgenii Terechkov
2007-03-04 15:11 ` Damir Shayhutdinov
2007-03-04 15:46   ` Evgenii Terechkov [this message]
2007-03-04 15:48     ` Andrey Rahmatullin
2007-03-04 17:06       ` Evgenii Terechkov
2007-03-04 15:51     ` Damir Shayhutdinov
2007-03-04 17:21       ` Evgenii Terechkov
2007-03-04 20:59         ` Dmitry V. Levin
2007-03-05  3:06           ` Evgenii Terechkov
2007-03-05 14:22             ` Dmitry V. Levin

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=m3wt1xc8qt.fsf@evg.krastel.ru \
    --to=evg@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