I found this stackoverflow post:
http://stackoverflow.com/questions/3373914/compiling-vim-with-python-support
Which led me to look at src/auto/config.log
Here I see something suspicious:
configure:5416: checking if -pthread should be used
configure:5443: gcc -o conftest -g -O2 -pthread -L/usr/local/lib conftest.c
>&5
gcc: unrecognized option `-pthread'
configure:5443: $? = 0
configure:5444: result: yes
configure:5459: checking if compile and link flags for Python are sane
configure:5476: gcc -o conftest -g -O2
-I/rfs/proj/cs_ifis_projects/Tools/Python/current/include/python2.7
-DPYTHON_HOME=\"/rfs/proj/cs_ifis_projects/Tools/Python/current\" -pthread
-L/usr/local/lib conftest.c
-L/rfs/proj/cs_ifis_projects/Tools/Python/current/lib/python2.7/config
-lpython2.7 -lresolv -lsocket -lnsl -lrt -ldl -lpthread -lm >&5
gcc: unrecognized option `-pthread'
It looks like configure checks that -pthread is supported, gets pretty
convincing evidence that it is NOT supported (unrecognized option!) and then
tries to use it anyway!
I tried manually editing src/auto/configure to remove the ability for the
-pthread check to succeed, now it gets past the pthread part but still fails at
the "compile and link flags are sane" step:
configure:5416: checking if -pthread should be used
configure:5448: result: no
configure:5452: checking if compile and link flags for Python are sane
configure:5469: gcc -o conftest -g -O2
-I/rfs/proj/cs_ifis_projects/Tools/Python/current/include/python2.7
-DPYTHON_HOME=\"/rfs/proj/cs_ifis_projects/Tools/Python/current\"
-L/usr/local/lib conftest.c
-L/rfs/proj/cs_ifis_projects/Tools/Python/current/lib/python2.7/config
-lpython2.7 -lresolv -lsocket -lnsl -lrt -ldl -lpthread -lm >&5
conftest.c:0: unterminated string or character constant
conftest.c:0: possible real start of unterminated constant
configure:5469: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define UNIX 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define FEAT_HUGE 1
| #define USE_XSMP_INTERACT 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:5473: result: no: PYTHON DISABLED
Now I'm even more lost than before.
The same stackoverflow thread contains a hint to modify a
vi_cv_path_python_plibs variable, but I'm at a loss as to how to modify it or
what it does.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.