[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Can not build 1.14.0 python3 bindings without SWIG installed

From: Lev Serebryakov <lev_at_FreeBSD.org>
Date: Sun, 31 May 2020 18:27:23 +0300

Hello Users,

   Documentation says, that SWIG is optional to build Python/Perl/Ruby/Java
  bindings. I'm trying to build python bindings, with python 3.7.7
  installed, but without SWIG.

   I get this error:

--- .swig_py_checked ---
--- /usr/home/lev/FreeBSD/ports/devel/py-subversion/work-py37/subversion-1.14.0/subversion/bindings/swig/python/libsvn ---
--- subversion/bindings/swig/python/svn_client.lo ---
--- subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.lo ---
--- .swig_py_checked ---
SWIG python disabled at configure time: SWIG version is not suitable
*** [.swig_py_checked] Error code 1

make[1]: stopped in /usr/home/lev/FreeBSD/ports/devel/py-subversion/work-py37/subversion-1.14.0

 Configure stage looks like this:

configure: Configuring python swig binding
checking for Python includes... -I/usr/local/include/python3.7m
checking Python.h usability... yes
checking Python.h presence... yes
checking for Python.h... yes
configure: py3c library configuration via pkg-config
checking for py3c library... yes
checking for compiling Python extensions... cc -pthread -fPIC
checking for linking Python extensions... cc -pthread -shared -L/usr/local/lib -fstack-protector-strong
checking for linking Python libraries... -L/usr/local/lib
checking for Python >= 3... yes
test: : bad number
configure: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer
test: : bad number

 subversion/bindings/swig/INSTALL says:

    * SWIG installation is optional. You do not need to install SWIG
      if you are using a Subversion distribution tarball because it already
      contains the source files generated by SWIG. You will need a suitable
      version of SWIG if you are using a working copy of Subversion's sources
      checked out from the repository; if you want to generate the SWIG
      language bindings C source files by yourself; or if you want to build
      Python 2.x bindings (since the SWIG-generated C source files in the
      distribution tarballs target Python 3.x).

-- 
Best regards,
 Lev                          mailto:lev_at_FreeBSD.org
Received on 2020-05-31 17:27:34 CEST

This is an archived mail posted to the Subversion Users mailing list.