* [devel] g++ -- inline не inline @ 2017-03-20 12:02 Денис Смирнов 2017-03-20 13:38 ` Mikhail Efremov 0 siblings, 1 reply; 4+ messages in thread From: Денис Смирнов @ 2017-03-20 12:02 UTC (permalink / raw) To: devel [-- Attachment #1: Type: text/plain, Size: 677 bytes --] Обновляю fuse-encfs. Сборка обламывается http://git.altlinux.org/tasks/180556/build/100/x86_64/log verify-elf: ERROR: ./usr/lib64/libencfs.so.1.9.1: undefined symbol: _ZN2el4base5utils19s_termSupportsColorE verify-elf: ERROR: ./usr/lib64/libencfs.so.1.9.1: undefined symbol: _ZN2el4base5utils13s_currentHostB5cxx11E verify-elf: ERROR: ./usr/lib64/libencfs.so.1.9.1: undefined symbol: _ZN2el4base9elStorageE verify-elf: ERROR: ./usr/lib64/libencfs.so.1.9.1: undefined symbol: _ZN2el4base5utils13s_currentUserB5cxx11E Все эти функции объявлены в internal/easylogging++.h как static inline. Как чинить сборку? -- С уважением, Денис http://mithraen.ru/ [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 181 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [devel] g++ -- inline не inline 2017-03-20 12:02 [devel] g++ -- inline не inline Денис Смирнов @ 2017-03-20 13:38 ` Mikhail Efremov 2017-03-22 10:01 ` Денис Смирнов 0 siblings, 1 reply; 4+ messages in thread From: Mikhail Efremov @ 2017-03-20 13:38 UTC (permalink / raw) To: devel On Mon, 20 Mar 2017 15:02:54 +0300 Денис Смирнов wrote: > Обновляю fuse-encfs. Сборка обламывается > > http://git.altlinux.org/tasks/180556/build/100/x86_64/log > > verify-elf: ERROR: ./usr/lib64/libencfs.so.1.9.1: undefined symbol: > _ZN2el4base5utils19s_termSupportsColorE > verify-elf: ERROR: ./usr/lib64/libencfs.so.1.9.1: undefined symbol: > _ZN2el4base5utils13s_currentHostB5cxx11E > verify-elf: ERROR: ./usr/lib64/libencfs.so.1.9.1: undefined symbol: > _ZN2el4base9elStorageE > verify-elf: ERROR: ./usr/lib64/libencfs.so.1.9.1: undefined symbol: > _ZN2el4base5utils13s_currentUserB5cxx11E > > Все эти функции объявлены в internal/easylogging++.h как static inline. Я очень бегло взглянул туда, но вполне очевидно, что вы смотрите на какие-то другие функции, т.к все символы, про которые ругань, объявлены там как extern. > Как чинить сборку? > -- WBR, Mikhail Efremov ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [devel] g++ -- inline не inline 2017-03-20 13:38 ` Mikhail Efremov @ 2017-03-22 10:01 ` Денис Смирнов 2017-03-22 11:22 ` Ivan A. Melnikov 0 siblings, 1 reply; 4+ messages in thread From: Денис Смирнов @ 2017-03-22 10:01 UTC (permalink / raw) To: devel [-- Attachment #1: Type: text/plain, Size: 444 bytes --] On Mon, Mar 20, 2017 at 04:38:17PM +0300, Mikhail Efremov wrote: > Я очень бегло взглянул туда, но вполне очевидно, что вы смотрите на > какие-то другие функции, т.к все символы, про которые ругань, объявлены > там как extern. Там странное -- они сначала объявлены как export, а несколькими строчками ниже есть макрос с присвоением им других функций, определенных в этом же include. -- С уважением, Денис http://mithraen.ru/ [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 181 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [devel] g++ -- inline не inline 2017-03-22 10:01 ` Денис Смирнов @ 2017-03-22 11:22 ` Ivan A. Melnikov 0 siblings, 0 replies; 4+ messages in thread From: Ivan A. Melnikov @ 2017-03-22 11:22 UTC (permalink / raw) To: ALT Linux Team development discussions 2017-03-22 14:01 GMT+04:00 Денис Смирнов <mithraen@freesource.info>: > On Mon, Mar 20, 2017 at 04:38:17PM +0300, Mikhail Efremov wrote: > >> Я очень бегло взглянул туда, но вполне очевидно, что вы смотрите на >> какие-то другие функции, т.к все символы, про которые ругань, объявлены >> там как extern. > > Там странное -- они сначала объявлены как export, а несколькими строчками > ниже есть макрос с присвоением им других функций, определенных в этом же > include. Символы, на которые идёт ругань -- это не функции, а глобальные переменные: $ xclip -o | c++filt verify-elf: ERROR: ./usr/lib64/libencfs.so.1.9.1: undefined symbol: el::base::utils::s_termSupportsColor verify-elf: ERROR: ./usr/lib64/libencfs.so.1.9.1: undefined symbol: el::base::utils::s_currentHost[abi:cxx11] verify-elf: ERROR: ./usr/lib64/libencfs.so.1.9.1: undefined symbol: el::base::elStorage verify-elf: ERROR: ./usr/lib64/libencfs.so.1.9.1: undefined symbol: el::base::utils::s_currentUser[abi:cxx11] Эти переменные должны быть определены в какой-то единице трансляции. To make long story short, они запрятаны внутрь макроса INITIALIZE_EASYLOGGINGPP, который присутствует (то есть вызывается, то есть раскрывается) в бинарниках недалеко от main(): [15:15:36 ~/tmp/RPM/BUILD/fuse-encfs-1.9.1 <0>]$ grep -R ^INITIALIZE_EASYLOGGINGPP encfs/test.cpp:INITIALIZE_EASYLOGGINGPP encfs/makeKey.cpp:INITIALIZE_EASYLOGGINGPP encfs/main.cpp:INITIALIZE_EASYLOGGINGPP encfs/encfsctl.cpp:INITIALIZE_EASYLOGGINGPP Получается, бинарник, который потребляет библиотеку, эти символы этой библиотеке предоставляет. > Как чинить сборку? Непонятно. Библиотеки, использующие easylogging++, видимо, должны быть недолинкованы by design. -- WBR, Ivan A. Melnikov ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-03-22 11:22 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2017-03-20 12:02 [devel] g++ -- inline не inline Денис Смирнов 2017-03-20 13:38 ` Mikhail Efremov 2017-03-22 10:01 ` Денис Смирнов 2017-03-22 11:22 ` Ivan A. Melnikov
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