8
0
Fork
You've already forked pEpPythonAdapter
0

[Bug] please link with libz at least on GNU/Linux #13

Closed
opened 2023年03月22日 17:51:01 +01:00 by positron · 1 comment
positron commented 2023年03月22日 17:51:01 +01:00 (Migrated from gitea.pep.foundation)
Copy link

I have started again using the Python adapter with recent Engines, on my GNU/Linux system.

This is about Python adapter v3.2.0-RC1.

The adapter seems to build and install correctly, but I see a failure at run time as soon as I try to load the pEp module from Python:

undefined symbol: inflate

This is simply related to a missing dynamic library; who knows what caused the dependency chain to change. Anyway, linking with -lz solves the problem and should be completely harmless anywhere.

Observed behaviour: unresolved symbol when the dynamic library is loaded
Expected behaviour: successful dynamic library loading

I suggest the following change, which solves the problem for me:

diff --git a/setup.py b/setup.py
index 94e8637..57d793e 100755
--- a/setup.py
+++ b/setup.py
@@ -125,7 +125,8 @@ class BuildExtCommand(build_ext):
 'pEpAdapter',
 'pEpCxx11',
 'boost_python3',
- 'boost_locale'
+ 'boost_locale',
+ 'z'
 ]
 compile_flags = ['-std=c++14', '-fpermissive']
 if self.debug:
I have started again using the Python adapter with recent Engines, on my GNU/Linux system. This is about Python adapter `v3.2.0-RC1`. The adapter seems to build and install correctly, but I see a failure at run time as soon as I try to load the pEp module from Python: undefined symbol: inflate This is simply related to a missing dynamic library; who knows what caused the dependency chain to change. Anyway, linking with `-lz` solves the problem and should be completely harmless anywhere. Observed behaviour: unresolved symbol when the dynamic library is loaded Expected behaviour: successful dynamic library loading I suggest the following change, which solves the problem for me: diff --git a/setup.py b/setup.py index 94e8637..57d793e 100755 --- a/setup.py +++ b/setup.py @@ -125,7 +125,8 @@ class BuildExtCommand(build_ext): 'pEpAdapter', 'pEpCxx11', 'boost_python3', - 'boost_locale' + 'boost_locale', + 'z' ] compile_flags = ['-std=c++14', '-fpermissive'] if self.debug:
Copy link

Fixed as part of: https://gitea.pep.foundation/pEp.foundation/pEpPythonAdapter/releases/tag/v3.2.0-RC2

(could not test, though because i dont have a linux VM currently)

Fixed as part of: https://gitea.pep.foundation/pEp.foundation/pEpPythonAdapter/releases/tag/v3.2.0-RC2 (could not test, though because i dont have a linux VM currently)
Sign in to join this conversation.
No Branch/Tag specified
master
positron-check-signature
positron-misleading-help-string
positron-pEp-mail-tool
positron-nkls-mixnet
Release_3.2
Release_2.1
gitea-008
PYADPT-140
PYADPT-139
lucasaiu/message-struct-change
lucasaiu/message-rating-field
PYDAPT-138
PYADPT-116
PYADPT-110
build-windows
REWORK
PYADPT-100
PYADPT-96_init_version
PYADAPT-99
PYADAPT-98
PYADAPT-97_doxygen
PYADPT-97
PYADPT-81
sync
PYADPT-55
v3.3.0
v3.3.0-RC0
v3.2.1
v3.2.0
v3.2.0-RC2
v3.2.0-RC1
v3.2.0-RC0
2.1.13
2.1.12
2.1.11
2.1.10
2.1.9
2.1.8
2.1.7
2.1.6
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
Release_2.1.0
Release_2.1.0-RC2
Release_2.1.0-RC1
Release_2.1.0-RC0
Release_2.0.5
imap
0.3
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pEp/pEpPythonAdapter#13
Reference in a new issue
pEp/pEpPythonAdapter
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?