New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure を 2 回実行すると if_python が有効にならない #563

Closed
syngan opened this Issue May 16, 2014 · 5 comments

Comments

Projects
None yet
2 participants
@syngan

syngan commented May 16, 2014

私の手順が間違っているのかもしれませんが、はまったので報告します。

--enable-pythoninterp をつけて ./configure を 2 回実行すると、 config.cache の情報をつかってしまうため、configure.in の以下の部分、python_INSTSONAME をとってくる処理が動きません。
そのため、make 時に -DDYNAMIC_PYTHON_DLL=\"\" となって has('python')=0 となってしまいます。

    dnl -- we need to examine Python's config/Makefile too
    dnl    see what the interpreter is built from
    AC_CACHE_VAL(vi_cv_path_python_plibs,
    [
        pwd=`pwd`
        tmp_mkf="$pwd/config-PyMake$$"
        cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
__:
    @echo "python_BASEMODLIBS='$(BASEMODLIBS)'"
    @echo "python_LIBS='$(LIBS)'"
    @echo "python_SYSLIBS='$(SYSLIBS)'"
    @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
    @echo "python_DLLLIBRARY='$(DLLLIBRARY)'"
    @echo "python_INSTSONAME='$(INSTSONAME)'"
eof
@k-takata

This comment has been minimized.

Member

k-takata commented May 16, 2014

こんな感じでどうでしょう。
https://bitbucket.org/k_takata/vim-ktakata-mq/src/e7a4d5e7cfe9b61afff04739b9f1ab9b1475ab6b/fix-configure-python-soname.patch
パッチを当ててから、make autoconf && ./configure && make でビルドできます。
(これの調査中に #280 にバグが発覚…)

@k-takata k-takata added the kind/bug label May 16, 2014

@k-takata

This comment has been minimized.

Member

k-takata commented May 17, 2014

@k-takata

This comment has been minimized.

Member

k-takata commented May 17, 2014

あ、"I found two issues" って、見つけたの私じゃないのに嘘書いてしまいました。ごめんなさい。

@syngan

This comment has been minimized.

syngan commented May 17, 2014

対応ありがとうございました。

あ、"I found two issues" って、見つけたの私じゃないのに嘘書いてしまいました。ごめんなさい。

無問題です

@k-takata

This comment has been minimized.

@k-takata k-takata closed this May 22, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment