Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #10848 > unrolled thread
| Started by | Andreas Tille <andreas@an3as.eu> |
|---|---|
| First post | 2018-08-26 21:00 +0200 |
| Last post | 2018-08-26 21:30 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.debian.maint.python
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
| From | Andreas Tille <andreas@an3as.eu> |
|---|---|
| Date | 2018-08-26 21:00 +0200 |
| Subject | Dynamic library not found by poretools |
| Message-ID | <wr8qt-5fB-3@gated-at.bofh.it> |
Hi,
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
Any idea what went wrong here?
Kind regards
Andreas.
[1] https://salsa.debian.org/med-team/porechop
--
http://fam-tille.de
[toc] | [next] | [standalone]
| From | Andrey Rahmatullin <wrar@debian.org> |
|---|---|
| Date | 2018-08-26 21:30 +0200 |
| Message-ID | <wr8Tv-5Eg-5@gated-at.bofh.it> |
| In reply to | #10848 |
[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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.maint.python
csiph-web