ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] erlang: asking for a hint, possibly with --as-needed
Date: Mon, 12 Feb 2007 00:33:58 +0300
Message-ID: <20070211213358.GA11722@basalt.office.altlinux.org> (raw)
In-Reply-To: <45CF7B69.10802@altlinux.org>

[-- Attachment #1: Type: text/plain, Size: 2353 bytes --]

On Sun, Feb 11, 2007 at 11:24:09PM +0300, Mikhail Yakshin wrote:
> Dmitry V. Levin wrote:
> > On Sat, Feb 10, 2007 at 10:47:51PM +0300, Mikhail Yakshin wrote:
> >> Я тут взялся глобально перелопачивать Erlang
> > 
> > Значит, всеобщее счастье не за горами. :)
> 
> Я, пожалуй, не так сильно оптимистичен...

Я среагировал на "глобально перелопачивать".

> >> 2. Эрланг - это довольно объемный пакет, собирается где-то по 30-40
> >> минут на сборку.
> > 
> > На каких мощностях?  Тот пакет, который сейчас в Сизифе, собирается раза в
> > 2 быстрее.
> 
> Видимо, на сборочных серверах и полностью в tmpfs. Какой смысл сравнивать?

Это я прозрачно намекаю на пользу, которую ты мог бы извлечь из сборочных
серверов.

> Насколько я понял - _REENTRANT - это какой-то флаг-характеристика
> системы. Не знаю, должен он быть установлен он у нас или нет и за что
> отвечает (гугл однозначного ответа на этот вопрос не дает), но, в данном
> случае, насколько я проверил - не установлен.

$ info libc 'Feature Test Macros'
Macro: _REENTRANT
Macro: _THREAD_SAFE
If you define one of these macros, reentrant versions of several
functions get declared.  Some of the functions are specified in
POSIX.1c but many others are only available on a few other systems
or are unique to GNU libc.  The problem is the delay in the
standardization of the thread safe C library interface.

Unlike on some other systems, no special version of the C library
must be used for linking.  There is only one version but while
compiling this it must have been specified to compile as thread
safe.

> Видимо, на всех тех машинах, где Erlang собирается под Linux/BSD, стоит
> этот _REENTRANT => нет такого понятия, как __erl_errno вообще? Есть
> какие-то мысли, как это правильно исправить? Все упирается, видимо, в
> то, что такое дефайн _REENTRANT, почему у нас его нет и что сломается от
> того, если я его определю?

Надо смотреть в документацию по системе сборки или (если таковой нет) в
исходный код.  Возможно, от включения _REENTRANT ничего не сломается.

> Плюс, после того, как разберемся с этим вопросом, ei_pthreads.o и
> ei_connect.o в порядке линковки надо поменять местами, я правильно понимаю?

Нет, --as-needed на сборку статических библиотек не влияет,
так что порядок линковки *.o-файлов тут не важен.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2007-02-11 21:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-10 19:47 Mikhail Yakshin
2007-02-10 19:50 ` Michael Shigorin
2007-02-10 19:59   ` Mikhail Yakshin
2007-02-10 20:18     ` Sergey Vlasov
2007-02-10 20:21 ` Sergey Vlasov
2007-02-10 20:23 ` Dmitry V. Levin
2007-02-11 20:24   ` Mikhail Yakshin
2007-02-11 21:33     ` Dmitry V. Levin [this message]
2007-02-11  2:17 ` Alexey Borovskoy

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=20070211213358.GA11722@basalt.office.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