Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 May 2018 21:04:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 227939] boost-python-libs vs ctypes.util.find_library
Message-ID:  <bug-227939-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227939

            Bug ID: 227939
           Summary: boost-python-libs vs ctypes.util.find_library
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: bsd@vink.pl

boost-python-libs installs following files:
lib/libboost_python%%PYTHON_SUFFIX%%.a
lib/libboost_python%%PYTHON_SUFFIX%%.so
lib/libboost_python%%PYTHON_SUFFIX%%.so.%%BOOST_SHARED_LIB_VER%%

What we are missing is:
lib/libboost_python%%PYTHON_SUFFIX%%.so.1

Because of this, when you do:
$ python3
Python 3.6.5 (default, Apr  5 2018, 01:15:08)
[GCC 4.2.1 Compatible FreeBSD Clang 4.0.0 (tags/RELEASE_400/final 297347)] =
on
freebsd11
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes.util import find_library
>>> find_library("boost_python36")
>>>

After creating this symlink manually, there is no problem. As far as I chec=
ked
all my installed libraries have symlink *.so.%%MAJOR_VERSION%%. The only
exception are boost libraries, which have only .so and .so.%%MAJOR%%.%%MINO=
R%%.

ctypes depends on ldconfig to find library. And indeed:
$ ldconfig -r | grep boost_
        388:-lboost_python36.1 =3D> /usr/local/lib/libboost_python36.so.1

(for which I've made symlink, for example boost_atomic is missing).

This works on Linux, because ldconfig -p has entries regardless of missing
symlink.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-227939-7788>