Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #10849

Re: Dynamic library not found by poretools

From Andrey Rahmatullin <wrar@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: Dynamic library not found by poretools
Date 2018-08-26 21:30 +0200
Message-ID <wr8Tv-5Eg-5@gated-at.bofh.it> (permalink)
References <wr8qt-5fB-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Sun, Aug 26, 2018 at 08:59:21PM +0200, Andreas Tille wrote:
> I try to package porechop[1] but somehow it does not find its dynamic
> library.  If I install the resulting package I get:
> 
> $ porechop 
> could not find cpp_functions.so - please reinstall

SO_FILE = 'cpp_functions.so'
SO_FILE_FULL = os.path.join(os.path.dirname(os.path.realpath(__file__)), SO_FILE)
if not os.path.isfile(SO_FILE_FULL):
    sys.exit('could not find ' + SO_FILE + ' - please reinstall')

As the executable is in /usr/share/porechop and the lib is in
/usr/lib/x86_64-linux-gnu/porechop, this cannot work. The upstream build
system seems to install them into the same directory.

And wtf is -Wl,-soname,porechop/cpp_functions.so? 

TARGET       = porechop/cpp_functions.so
SONAME       = -soname
$(TARGET): $(OBJECTS)
        $(CXX) $(FLAGS) $(CXXFLAGS) $(LDFLAGS) -Wl,$(SONAME),$(TARGET) -o $(TARGET) $(OBJECTS)

It shouldn't have a soname at all, and especially not THIS ONE.

-- 
WBR, wRAR

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Dynamic library not found by poretools Andreas Tille <andreas@an3as.eu> - 2018-08-26 21:00 +0200
  Re: Dynamic library not found by poretools Andrey Rahmatullin <wrar@debian.org> - 2018-08-26 21:30 +0200

csiph-web