[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help with package a library with python bindings




----- Original Message -----
> From: "Mo Zhou" <lumin@debian.org>
> To: "Christophe Trophime" <christophe.trophime@lncmi.cnrs.fr>
> Cc: "debian-science" <debian-science@lists.debian.org>
> Sent: Wednesday, April 17, 2019 3:12:26 PM
> Subject: Re: Help with package a library with python bindings

> Hi Christophe,
> 
> On Wed, Apr 17, 2019 at 01:35:13PM +0200, Christophe Trophime wrote:
>> I'm moving their build system from scons to cmake to be able to build python
>> bindings for both python and python3.
> 
> Please don't create more python2 packages, as per the python policy.
> 
>> I've managed to get cmake working
>> but I have trouble with swig generated python bindings.
>> More precisely:
>> 
>> dpkg-shlibdeps: warning: debian/python-freesteam/usr/lib/python2.7/
>> dist-packages/_freesteam.x86_64-linux-gnu.so contains an unresolvable reference
>> to symbol _Z19freesteam_region_pudd: it's probably a plugin
>>
>> the missing symbols are actually in the libfreesteam.so  library build at the
>> same time.
>> What shall I do to get _freesteal..so to get the symbols from plain
>> libfreesteam.so?
> 
> ~ ❯❯❯ echo _Z19freesteam_region_pudd | c++filt
> freesteam_region_pu(double, double)
> 
> That means the function "freesteam_region_pu(double, double)" is called
> through FFI, or the dynamic linker (dlsym). Please take a look in the
> code, and you can ignore this warning if it's true.

Unfortunatly I cannot ignore this warning.

As far as I've understood, ldd _freesteam.x86_64-linux-gnu.so
should somehow contain libfreesteam.so to fix this pb...

right?


Reply to: