ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Evgeny Sinelnikov <sin@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] [5.1] libpython2.5.a, mysql-workbench-oss
Date: Mon, 22 Mar 2010 12:43:58 +0300
Message-ID: <921f6bb41003220243l4f0684dcy9d8152a984c7ebe2@mail.gmail.com> (raw)
In-Reply-To: <201003221304.59160.asy@altlinux.ru>

22 марта 2010 г. 12:04 пользователь Sergey Y. Afonin <asy@altlinux.ru> написал:
> Приветствую.
>
> Пытаюсь собрать mysql-workbench-oss (пока в 5.1 собираю), сборка
> тормозится с ошибкой:
>
> i586-alt-linux-g++: /usr/lib/python2.5/config/libpython2.5.a: No such file or directory
>
> Это правильно, что вот такая конструкция (используемая в configure)
>
> PYTHON_LIBS=$(python -c "from distutils import sysconfig
> print '/'.join(sysconfig.get_config_vars('LIBPL','LIBRARY'))+' '+sysconfig.get_config_var('LIBS')+' '+sysconfig.get_config_var('LINKFORSHARED')")
> echo $PYTHON_LIBS
>
> содержит ссылку на статическую библиотеку ? Если да, то, почему,
> ссылка на /usr/lib/python2.5/config/libpython2.5.a, а не на
> /usr/lib/libpython2.5.a, как оно получается после установки
> python-devel-static ?
>

Я проследил, что этот хвост тянется у нас с самого первого релиза
python-2.4. Дело в том, что python, действительно устанавливает
статическую либу в LIBPL. Но у нас это не так. Я думаю, что, в данном
случае, проще всего будет заменить LIBPL на LIBDIR в вызове:
sysconfig.get_config_vars('LIBDIR','LIBRARY')

Получим:
PYTHON_LIBS=$(python -c "from distutils import sysconfig
print '/'.join(sysconfig.get_config_vars('LIBDIR','LIBRARY'))+'
'+sysconfig.get_config_var('LIBS')+'
'+sysconfig.get_config_var('LINKFORSHARED')")
echo $PYTHON_LIBS


-- 
Sin (Sinelnikov Evgeny)

  reply	other threads:[~2010-03-22  9:43 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-22  9:04 Sergey Y. Afonin
2010-03-22  9:43 ` Evgeny Sinelnikov [this message]
2010-03-24 12:51   ` [devel] [5.1] mysql-workbench-oss ( python2.5(_mforms), python2.5(grt), python2.5(paramiko)) Sergey Y. Afonin
2010-03-24 12:58     ` Andrey Rahmatullin
2010-03-24 13:27       ` Sergey Y. Afonin
2010-03-24 13:44         ` Andrey Rahmatullin
2010-03-24 13:59           ` Sergey Y. Afonin
2010-03-24 14:02             ` Andrey Rahmatullin
2010-03-24 14:25               ` Sergey Y. Afonin
2010-03-24 14:38                 ` Andrey Rahmatullin
2010-03-24 14:52                   ` Sergey Y. Afonin
2010-03-24 14:54                     ` Andrey Rahmatullin
2010-03-24 15:04                       ` Sergey Y. Afonin
2010-03-24 20:34                         ` [devel] [5.1] mysql-workbench-oss ( python2.5(_mforms), python2.5(grt) ) Sergey Y. Afonin
2010-03-24 14:34               ` [devel] [5.1] mysql-workbench-oss ( python2.5(_mforms), python2.5(grt), python2.5(paramiko)) Sergey Y. Afonin
2010-03-24 14:38                 ` Andrey Rahmatullin
2010-03-30 20:14     ` [devel] [5.1] mysql-workbench-oss ( python2.5(_mforms), python2.5(grt) ) Sergey Y. Afonin
2010-03-30 20:51       ` Vitaly Lipatov
2010-04-03 10:01 ` [devel] mysql-workbench-oss bad_elf_symbols _ZN12mysql_parser7my_statEPKcP4stati Sergey Y. Afonin
2010-05-02 12:33   ` Evgeny Sinelnikov
2010-05-02 13:25     ` Sergey Y. Afonin

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=921f6bb41003220243l4f0684dcy9d8152a984c7ebe2@mail.gmail.com \
    --to=sin@altlinux.ru \
    --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