Wednesday, October 5, 2011

vim7.3 Compilation error when using --enable-pythoninterp on Centos5.6

Hi there

I'm trying to get Conque working. Therefore I need python (I currently
get "Conque requires the Python interface to be installed").

Centos5.6 has python2.4 installed therefore I used the following ./
configure command to compile vim7.3

./configure --prefix=/home/phred/ --enable-multibyte --enable-
rubyinterp --enable-pythoninterp --with-python-config-dir=/usr/lib64/
python2.4/config

configure runs through properly. The relevant messages are:

checking for python... /usr/bin/python
checking Python version... 2.4
checking Python is 1.4 or better... yep
checking Python's install prefix... /usr
checking Python's execution prefix... /usr
checking Python's configuration directory... (cached) /usr/lib64/
python2.4/config
(cached) checking if -pthread should be used... yes
checking if compile and link flags for Python are sane... yes
checking --enable-python3interp argument... no

But when I try to run "make" it stumbles over the following gcc
command:

gcc -L. -rdynamic -Wl,-export-dynamic -L/usr/local/lib -o vim
objects/buffer.o objects/blowfish.o objects/charset.o objects/diff.o
objects/digraph.o objects/edit.o objects/eval.o objects/ex_cmds.o
objects/ex_cmds2.o objects/ex_docmd.o objects/ex_eval.o objects/
ex_getln.o objects/fileio.o objects/fold.o objects/getchar.o objects/
hardcopy.o objects/hashtab.o objects/if_cscope.o objects/if_xcmdsrv.o
objects/main.o objects/mark.o objects/memfile.o objects/memline.o
objects/menu.o objects/message.o objects/misc1.o objects/misc2.o
objects/move.o objects/mbyte.o objects/normal.o objects/ops.o objects/
option.o objects/os_unix.o objects/pathdef.o objects/popupmnu.o
objects/quickfix.o objects/regexp.o objects/screen.o objects/search.o
objects/sha256.o objects/spell.o objects/syntax.o objects/tag.o
objects/term.o objects/ui.o objects/undo.o objects/window.o
objects/if_python.o objects/py_config.o objects/if_ruby.o objects/
netbeans.o objects/version.o -lm -ltermcap -lnsl -
lselinux -L/opt/localpyenv/lib/python2.6/config/ -Wl,-R -Wl,/
usr/local/rvm/rubies/ruby-1.8.7-p352/lib -L/usr/local/rvm/rubies/
ruby-1.8.7-p352/lib -lruby -lrt -ldl -lcrypt -lm

objects/if_python.o: In function `CheckBuffer':
/home/philipp/vim73/src/if_py_both.h:1064: undefined reference to
`PyErr_SetString'
objects/if_python.o: In function `CheckWindow':
/home/philipp/vim73/src/if_py_both.h:519: undefined reference to
`PyErr_SetString'
objects/if_python.o: In function `StringToLine':
/home/philipp/vim73/src/if_py_both.h:705: undefined reference to
`PyString_Type'
/home/philipp/vim73/src/if_py_both.h:705: undefined reference to
`PyString_Type'
/home/philipp/vim73/src/if_py_both.h:705: undefined reference to
`PyType_IsSubtype'
/home/philipp/vim73/src/if_py_both.h:711: undefined reference to
`PyString_AsString'
/home/philipp/vim73/src/if_py_both.h:712: undefined reference to
`PyString_Size'

And so forth. It's probably 300 lines of errors following.

Note that it says -L/opt/localpyenv/lib/python2.6/config/ but I told
it to use /usr/lib64/python2.4/config
However, if I replace that -L option by
-L/usr/lib64/python2.4/config
or if I leave it out altogether it doesn't help either.

I tried with a fresh download, bunzip2, untar. No luck.
Any help appreciated.

--
You received this message from the "vim_use" 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

No comments: