ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Yury Aliaev <mutab0r@rambler.ru>
To: devel <devel@altlinux.ru>
Subject: [devel] Symbols' nightmare
Date: Mon, 13 Oct 2003 16:47:52 +0400
Message-ID: <3F8A9EF8.9020807@rambler.ru> (raw)

Я всех приветствую!

Наверное, ещё никто не заметил, что в залитом мною в Дедала csound'е 
отключена сборка fltk-интерфейса. Причина следующая: собираем csound с 
оным интерфейсом, запускаем, и...

[mutabor@Digitalina mutabor]$ csound
csound: relocation error: /usr/lib/libcsound32.so: undefined symbol: 
__dso_handle

...опаньки! Методом рекурсивного самосходящегося тыка обнаружил, что 
данный противный символ родом из widgets.o (тот самый интерфейс):

[mutabor@Digitalina Csound-4.24.1-debug]$ objdump -t widgets.o | grep __dso
00000000         *UND*  00000000 __dso_handle

Однако в исходнике _нет_ ссылки на такую функцию/переменную:

[mutabor@Digitalina Csound-4.24.1-debug]$ cat widgets.cpp | grep __dso
[mutabor@Digitalina Csound-4.24.1-debug]$

При попытке отлова через дизассемблирование эта погань также не проявляется:

[mutabor@Digitalina Csound-4.24.1-debug]$ objdump -D widgets.o | grep __dso
[mutabor@Digitalina Csound-4.24.1-debug]$

Наконец, компилятор для создания widgets.o вызывается так:

g++ -pipe -Wall -O2 -fexpensive-optimizations -march=k6 -ffast-math 
-fomit-frame-pointer -finline-functions -funroll-loops 
-fno-strict-aliasing -fPIC -DPIC -g -I. -I. -I./include -I./opcodes 
-DWINDOWS -DSFIRCAM -DSYS5 -DLINUX -DHAVE_TERMIOS_H -DIV_VERSION -DPIPES 
-DMACROS -DHAVE_FLTK -D_REENTRANT -DHAVE_SSTREAM -DMYFLT=float 
-falign-functions=16 -falign-loops=16 -falign-jumps=16 
-frename-registers -fno-exceptions -fno-rtti -fno-unroll-loops -c 
widgets.cpp -o widgets.o

P.S. Слабые следы этого криминального символа были обнаружены в glibc'ах:

[mutabor@Digitalina lib]$ objdump -T libc-2.2.6.so | grep __dso
00000000  w   D  *UND*  00000000              __dso_handle

Поможите, люди добрые, если не победить глюка, то хотя бы разобраться в 
его природе!

С пожеланием удачи,
Юрий Аляев.



             reply	other threads:[~2003-10-13 12:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-13 12:47 Yury Aliaev [this message]
2003-10-13 16:16 ` Alexandre Prokoudine
2003-10-14  6:40   ` Aleksandr Blokhin
2003-10-14  9:47   ` Yury Aliaev
2003-10-14 12:50     ` Alexandre Prokoudine
2003-10-16  7:32       ` Yury Aliaev

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=3F8A9EF8.9020807@rambler.ru \
    --to=mutab0r@rambler.ru \
    --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