From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] libgmp10
Date: Thu, 13 Apr 2017 16:53:05 +0300
Message-ID: <20170413135305.GA7393@altlinux.org> (raw)
In-Reply-To: <7034fa64-a746-261a-cb30-85d3e7976ca2@basealt.ru>
[-- Attachment #1: Type: text/plain, Size: 1381 bytes --]
Hi,
On Thu, Apr 13, 2017 at 10:35:23AM +0300, Anton Farygin wrote:
> Привет.
>
> При сборке ocaml вылезло
>
> ocaml-zarith-1.4.1-alt1.S1.x86_64.rpm /usr/lib64/ocaml/stublibs/dllzarith.so U __gmpn_divexact
>
> В libgmp10 действительно нет такого символа, но вот в той же федоре libgmp10 собран иначе и там:
> # nm -D /usr/lib64/libgmp.so.10|grep gmpn_divexact
> 00000000000703d0 T __gmpn_divexact
> 000000000003f4c0 T __gmpn_divexact_1
> 000000000003c020 T __gmpn_divexact_1_atom
> 000000000003f698 T __gmpn_divexact_1_init
> 000000000003d8a0 T __gmpn_divexact_1_nano
> 000000000002b670 T __gmpn_divexact_1_x86_64
> 0000000000010020 T __gmpn_divexact_by3
> 00000000000401f0 T __gmpn_divexact_by3c
>
> У нас:
> $ nm -D /usr/lib64/libgmp.so.10|grep gmpn_divexact
> 0000000000025060 T __gmpn_divexact_1
> 0000000000025130 T __gmpn_divexact_by3c
У нас во многих системных библиотеках реализована фича, которой нет
в федоре: restrict the list of global symbols exported by the library.
Как правило, это символы, декларированные в public headers.
Иногда, как в случае с GNU MP, к ним добавляются символы,
требующиеся для bindings и testsuite.
Очень редко (примеров не помню, но они есть) к ним добавляются символы,
уже использующиеся в репозитории (очевидно, пиратским образом, потому
что прототипов библиотека не предоставляет).
--
ldv
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
parent reply other threads:[~2017-04-13 13:53 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <7034fa64-a746-261a-cb30-85d3e7976ca2@basealt.ru>]
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=20170413135305.GA7393@altlinux.org \
--to=ldv@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