From: "Ivan A. Melnikov" <iv@altlinux.org>
To: devel@lists.altlinux.org
Subject: Re: [devel] Rebuild to remove redundant libpython2.7 dependency
Date: Sat, 14 Apr 2012 15:13:35 +0400
Message-ID: <20120414151335.71771797@deimos.localdomain> (raw)
In-Reply-To: <4F8940C4.7080105@kemsu.ru>
On Sat, 14 Apr 2012 16:17:56 +0700
REAL <real@kemsu.ru> wrote:
> 14.04.2012 00:02, Dmitry V. Levin пишет:
> > Интерфейс объяснить verify-elf'у, что такие-то файлы вполне
> > легально могут быть не слинкованы с -lpython, никто еще не придумал.
> >
> > Известен хак, который, наверное, можно использовать, пока нет
> > нормального интерфейса - добавить
> > export LD_PRELOAD=%_libdir/libpython%__python_version.so
> > в самом конце секции %install.
>
> просьба вернуть обратно линковку с libpython*, потому что сломавшихся
> при сборке пакетов как-то подозрительно много. да вот, первое
> попавшееся:
>
> checking consistency of all components of python development
> environment... no
> configure: error:
> Could not link test program to Python. Maybe the main Python
> library has been
> installed in some non-standard library path. If so, pass it to
> configure,
> via the LDFLAGS environment variable.
> Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"
>
> ============================================================================
> ERROR!
> You probably have to install the development version of the
> Python package
> for your distribution. The exact name of this package varies
> among them.
>
> ============================================================================
>
Это больше похоже не на проблему недолинковки, а на косяк
auto{tools,make,hell} или запаковки питона. По неясным никому причинам
оно добавляет к командной строке компилятора
-L/usr/lib64/python2.7/config, в результате чего -lpython2.7 находит
не /usr/lib64/libpython2.7.so,
а /usr/lib64/python2.7/config/libpython2.7.a, которой нехватает кучи
символов из -lm. Сама по себе попытка слинковаться со статической
libpython в данном случае кажется ошибкой.
Смотрел на примере ldns.
--
WBR,
Ivan A. Melnikov
next prev parent reply other threads:[~2012-04-14 11:13 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-13 10:36 Yuri N. Sedunov
2012-04-13 10:56 ` Vitaly Kuznetsov
2012-04-13 11:32 ` Yuri N. Sedunov
2012-04-13 12:18 ` Dmitry V. Levin
2012-04-13 14:39 ` Yuri N. Sedunov
2012-04-13 14:59 ` Vitaly Kuznetsov
2012-04-13 17:02 ` Dmitry V. Levin
2012-04-14 9:17 ` REAL
2012-04-14 9:32 ` Michael Shigorin
2012-04-14 10:43 ` REAL
2012-04-14 13:24 ` Michael Shigorin
2012-04-14 11:13 ` Ivan A. Melnikov [this message]
2012-04-14 11:55 ` REAL
2012-04-15 4:58 ` [devel] /usr/lib64/python2.7/config/libpython2.7.a is WRONG Ivan A. Melnikov
2012-04-15 15:22 ` Vitaly Kuznetsov
2012-04-15 15:48 ` Dmitry V. Levin
2012-04-15 15:52 ` Yuri N. Sedunov
2012-04-15 16:07 ` Dmitry V. Levin
2012-04-15 16:13 ` Yuri N. Sedunov
2012-04-16 5:01 ` Vitaly Kuznetsov
2012-04-16 5:11 ` REAL
2012-04-16 6:02 ` Vitaly Kuznetsov
2012-04-16 5:18 ` Yuri N. Sedunov
2012-04-16 5:40 ` REAL
2012-04-16 5:54 ` Yuri N. Sedunov
2012-04-16 5:58 ` REAL
2012-04-16 6:08 ` Yuri N. Sedunov
2012-04-16 6:11 ` Vitaly Kuznetsov
2012-04-16 6:00 ` Vitaly Kuznetsov
2012-04-16 5:58 ` Vitaly Kuznetsov
2012-04-16 6:02 ` Yuri N. Sedunov
2012-04-16 6:07 ` Vitaly Kuznetsov
2012-04-16 6:14 ` Yuri N. Sedunov
2012-04-16 6:54 ` Vitaly Kuznetsov
2012-04-16 7:13 ` Yuri N. Sedunov
2012-04-16 7:25 ` Vitaly Kuznetsov
2012-04-16 7:28 ` Yuri N. Sedunov
2012-04-16 8:32 ` Vitaly Kuznetsov
2012-04-16 10:08 ` Dmitry V. Levin
2012-04-16 19:14 ` Ivan A. Melnikov
2012-04-16 9:57 ` Dmitry V. Levin
2012-04-13 14:35 ` [devel] Rebuild to remove redundant libpython2.7 dependency REAL
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=20120414151335.71771797@deimos.localdomain \
--to=iv@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