From: Evgenii Terechkov <evg@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: [devel] Linkinkg problem
Date: Sun, 04 Mar 2007 19:31:13 +0700
Message-ID: <m31wk5dwby.fsf@evg.krastel.ru> (raw)
Приветствую!
Вот возникла непонятная (для меня) проблема с линковкой:
Собрал audacious-1.3.0 (для чего пришлось собрать и libmcs) и
audacious-plugins-1.3.0 к нему. Всё вроде б/м работает. Но не собирается
то, ради чего всё и затевалось: audacious-imms (imms-3.1.0-rc1, поддержка
audacious экспериментальная). Всё оканчивается на стадий линковки
объектников, таким образом:
ccache gcc -pipe -Wall -O2 -march=pentium3 -mtune=pentium4 `pkg-config audacious --cflags` -I../clients/xmms/ -DAUDACIOUS -O3 -Wall -fPIC -D_REENTRANT -I../ -I../immscore -I../clients -c ../clients/bmp/bmpinterface.c -o audaciousinterface.o
ccache g++ -pipe -Wall -O2 -march=pentium3 -mtune=pentium4 -fno-rtti -O3 -Wall -fPIC -D_REENTRANT -I../ -I../immscore -I../clients -c ../clients/clientstubbase.cc -o clientstubbase.o
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). В чём фишка?
--
Терешков Евгений, ALT Linux Team.
next reply other threads:[~2007-03-04 12:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-04 12:31 Evgenii Terechkov [this message]
2007-03-04 15:11 ` Damir Shayhutdinov
2007-03-04 15:46 ` Evgenii Terechkov
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=m31wk5dwby.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