From: Alexei Mezin <alexei.mezin@gmail.com> To: Devel@lists.altlinux.org Subject: [devel] Сборка приложений с libpython Date: Mon, 18 Dec 2017 20:35:08 +0300 Message-ID: <3f0a0e62-618a-303c-8cae-f49f6e02090f@gmail.com> (raw) У нас python-config выдает флаги компиляции без -lpython2.7 $ python2.7-config --ldflags --cflags -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -I/usr/include/python2.7 В результате некоторые configure-скрипты обламываются в сборке тестовой программы configure:18076: gcc -o conftest -g -O2 -I/usr/include/python2.7 conftest.c -lpthread -ldl -lutil -lm -Xlinker -export-dynamic >&5 /tmp/.private/alexei/ccQ4nLqA.o: In function `main': /tmp/gwyddion-2.49/conftest.c:35: undefined reference to `Py_Initialize' ...skip... #include <Python.h> int main () { Py_Initialize(); ; return 0; } Программа-то из одной строчки. И попытка ее собрать вроде как идеологически правильная -- параметры компиляции и линковки взяты из выхлопа python-config. Это так и должно быть? Или у нас какой-то совершенно особенный подход к питону? Потому что в других дистрибутивах на этот configure не жалуются, значит там все работает. В Убунте точно есть нужная библиотека в списке.
next reply other threads:[~2017-12-18 17:35 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-12-18 17:35 Alexei Mezin [this message] 2017-12-18 18:18 ` Vitaly Lipatov 2017-12-18 19:01 ` Alexei Mezin 2017-12-19 4:35 ` Vladimir D. Seleznev 2017-12-19 5:20 ` Dmitry V. Levin 2017-12-19 13:38 ` Alexei V. Mezin 2017-12-19 14:08 ` Dmitry V. Levin 2017-12-19 14:13 ` Alexei V. Mezin 2017-12-19 14:47 ` Dmitry V. Levin 2017-12-20 6:21 ` Alexei Mezin 2017-12-20 11:17 ` Dmitry V. Levin
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=3f0a0e62-618a-303c-8cae-f49f6e02090f@gmail.com \ --to=alexei.mezin@gmail.com \ --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