From: Mikhail Novosyolov <mikhailnov@altlinux.org> To: ALT Linux Team development discussions <devel@lists.altlinux.org> Subject: [devel] Предотвращение недолинковки Date: Sat, 30 May 2020 18:30:41 +0300 Message-ID: <4320ae6e-5a8e-84df-293e-74d4a7c4ac06@rosalinux.ru> (raw) Здравствуйте. Пытаюсь понять, как сделать так, чтобы verify_elf выдал ошибку при обнаружении unresolved symbols, но не ругался на non-LFS functions. Поставил "%global _verify_elf_method sctrict", получил: verify-elf: ERROR: ./usr/bin/audacity: uses non-LFS functions: __open_2 __xstat fcntl fopen getrlimit open readdir Эта проверка выглядит бесполезной в данном случае. Поставил "%global _verify_elf_method normal" - получил такую же ошибку. Задача - на этапе сборки убеждаться, что в рантайме не будет ошибки unresolved symbols. Зачем при этом проверять на соответствие LFS, не ясно. Поставить -Wl,--no-undefined не всегда вариант, т.к. многие апстримы допускают недолинковку плагинов. Мне кажется правильным в общем случае проверять, что /usr/bin/*, /usr/lib/*.so* не имеют недолинковки, а то, что лежит в нестандартных директориях вида /usr/lib64/xxx/*.so, не проверять, но при этом иметь возможность принудительно включить их проверку.
next reply other threads:[~2020-05-30 15:30 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-05-30 15:30 Mikhail Novosyolov [this message] 2020-05-30 17:32 ` Dmitry V. Levin 2020-05-30 22:16 ` Mikhail Novosyolov 2020-05-30 22:49 ` Dmitry V. Levin 2020-05-31 6:44 ` Ivan A. Melnikov 2020-05-30 17:55 ` Alexey Tourbin 2020-05-30 22:14 ` Mikhail Novosyolov
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=4320ae6e-5a8e-84df-293e-74d4a7c4ac06@rosalinux.ru \ --to=mikhailnov@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