pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/58394: vim fails loading python shared libraries
Note: There was a bad value `' for the field `Confidential'.
It was set to the default value of `yes'.
>Number: 58394
>Category: pkg
>Synopsis: vim fails loading python shared libraries
>Confidential: yes
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jul 03 11:30:01 +0000 2024
>Originator: Sotiris Lamprinidis
>Release: NetBSD 10.0_STABLE (llvm)
>Organization:
>Environment:
System: NetBSD 10.0_STABLE NetBSD 10.0_STABLE #25: amd64
Architecture: x86_64
Machine: amd64
PKGSRC_COMPILER= clang
>Description:
Vim with python support fails loading python shared libraries.
e.g.
$ vim -c "py3 import socket"
> Error detected while processing command line:
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> File "/usr/pkg/lib/python3.11/socket.py", line 51, in <module>
> import _socket
> ImportError: /usr/pkg/lib/python3.11/lib-dynload/_socket.so: Undefined PLT symbol "PyTuple_Pack" (symnum = 6)
Same issue on evbarm-aarch64 using latest netbsd-10-llvm
>How-To-Repeat:
make install -C /usr/pkgsrc/editors/vim PKG_OPTIONS.vim=python PKGSRC_COMPILER=clang HAVE_LLVM=yes CLANGBASE=/usr
vim -c "py3 import socket"
>Fix:
See https://github.com/vim/vim/issues/5509.
Add -rdynamic to LDFLAGS
diff --git a/editors/vim-share/options.mk b/editors/vim-share/options.mk
index cc1fd6796b84..9525ab5334d3 100644
--- a/editors/vim-share/options.mk
+++ b/editors/vim-share/options.mk
@@ -19,6 +19,7 @@ CONFIGURE_ARGS+= --with-python-command=${PYTHONBIN}
. else
CONFIGURE_ARGS+= --enable-python3interp
CONFIGURE_ARGS+= --with-python3-command=${PYTHONBIN}
+LDFLAGS+= -rdynamic
. endif
.endif
Home |
Main Index |
Thread Index |
Old Index