On my work system I ran into problems when trying to build with both
Python 2 and 3.

The first error is:

vim/src/if_python3.c:87: warning: "PyString_Check" redefined [enabled by 
default]
 926 /usr/include/python2.7/stringobject.h:58: note: this is the location of 
the previous definition

I didn't see this error on my home system.  I wonder if there is
something wrong with the configure stuff.  config.log:

configure:5221: checking --enable-pythoninterp argument
configure:5230: result: yes
configure:5237: checking for python2
configure:5255: found /usr/bin/python2
configure:5267: result: /usr/bin/python2
configure:5280: checking Python version
configure:5289: result: 2.7
configure:5292: checking Python is 2.2 or better
configure:5297: result: yep
configure:5300: checking Python's install prefix
configure:5309: result: /usr
configure:5312: checking Python's execution prefix
configure:5321: result: /usr
configure:5343: checking Python's configuration directory
configure:5365: result: /usr/lib/python2.7/config
configure:5424: checking if -pthread should be used
configure:5451: gcc -o conftest -O2 -fno-strength-reduce -Wall -pthread
-I/usr/local/include  -L/usr/local/lib conftest.c   >&5
configure:5451: $? = 0
configure:5452: result: yes
configure:5467: checking if compile and link flags for Python are sane
configure:5484: gcc -o conftest -O2 -fno-strength-reduce -Wall
-I/usr/include/python2.7 -DPYTHON_HOME=\"/usr\" -pthread
-I/usr/local/include  -L/usr/local/lib conftest.c
-L/usr/lib/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm
-Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions >&5
<command-line>:0:14: warning: missing terminating " character [enabled
by default]
configure:5484: $? = 0
configure:5485: result: yes
configure:5526: checking --enable-python3interp argument
configure:5535: result: yes
configure:5542: checking for python3
configure:5575: result: no
configure:5542: checking for python
configure:5560: found /usr/bin/python
configure:5572: result: /usr/bin/python
configure:5585: checking Python version
configure:5594: result: 2.7
configure:5597: checking Python's abiflags
configure:5611: result: 
configure:5614: checking Python's install prefix
configure:5623: result: /usr
configure:5626: checking Python's execution prefix
configure:5635: result: /usr
configure:5657: checking Python's configuration directory
configure:5683: result: /usr/lib/python2.7/config
configure:5729: checking if -pthread should be used
configure:5756: gcc -o conftest -O2 -fno-strength-reduce -Wall -pthread
-I/usr/local/include  -L/usr/local/lib conftest.c    >&5
configure:5756: $? = 0
configure:5757: result: yes
configure:5772: checking if compile and link flags for Python 3 are sane

Looks like Python 2.7 was not rejected when looking for Python 3.
Can we think of a proper check that the found Python actually is Python
3?


-- 
hundred-and-one symptoms of being an internet addict:
131. You challenge authority and society by portnuking people

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui