CentOS5.7 include python-2.4.3 by default I install python 2.6 from sources by default into /usr/local/bin/ and change a strings in /usr/src/freeswitch.git/libs/esl/python/Makefile # more /usr/src/freeswitch.git/libs/esl/python/Makefile LOCAL_CFLAGS=`/usr/local/bin/python ./python-config --includes` LOCAL_LDFLAGS=`/usr/local/bin/python ./python-config --ldflags` SITE_DIR=$(DESTDIR)/`/usr/local/bin/python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"` and #more /usr/src/freeswitch.git/libs/esl/python/python-config #!/usr/local/bin/python SWIG 2.0.8 is also installed into /usr/local/bin/ with configure options --with-python=/usr/local/bin/python --without-python3 --without-pcre run "make pymod" into /usr/src/freeswitch.git/libs/esl directory Output is make MYLIB="../libesl.a" SOLINK="-shared -Xlinker -x" CFLAGS="-I/usr/src/freeswitch.git/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -O2" CXXFLAGS="-I/usr/src/freeswitch.git/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC" CXX_CFLAGS="" -C python make[1]: Entering directory `/usr/src/freeswitch.git/libs/esl/python' g++ -I/usr/src/freeswitch.git/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC `/usr/local/bin/python ./python-config --includes` -c esl_wrap.cpp -o esl_wrap.o g++ -shared -Xlinker -x esl_wrap.o ../libesl.a `/usr/local/bin/python ./python-config --ldflags` -o _ESL.so -L. /usr/bin/ld: /usr/local/lib/python2.6/config/libpython2.6.a(abstract.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/python2.6/config/libpython2.6.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[1]: *** [_ESL.so] Error 1 make[1]: Leaving directory `/usr/src/freeswitch.git/libs/esl/python' make: *** [pymod] Error 2 # /usr/bin/ld /usr/local/lib/python2.6/config/libpython2.6.a /usr/bin/ld: warning: cannot find entry symbol _start; not setting start address # file /usr/local/lib/python2.6/config/libpython2.6.a /usr/local/lib/python2.6/config/libpython2.6.a: current ar archive in what there can be a problem? Vladislav Grishin