openvpn-python-plugin
openvpn-python-plugin copied to clipboard
ld: error: duplicate symbol: Python_Inventory
There is a problem with building code on OpenBSD:
-> % uname -a
OpenBSD openvpn1 7.0 GENERIC.MP#232 amd64
-> % make
rm -f openvpn-plugin-python.so
CFLAGS="-Wall -I/usr/local/lib/" ./setup.py build
running build
running build_py
creating build
creating build/lib.openbsd-7.0-amd64-3.8
creating build/lib.openbsd-7.0-amd64-3.8/openvpn
copying python_module_src/openvpn/__init__.py -> build/lib.openbsd-7.0-amd64-3.8/openvpn
copying python_module_src/openvpn/plugin.py -> build/lib.openbsd-7.0-amd64-3.8/openvpn
running build_ext
building 'openvpn-plugin-python' extension
creating build/temp.openbsd-7.0-amd64-3.8
cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -g -fPIC -O2 -pipe -g -O2 -pipe -g -Wall -I/usr/local/lib/ -fPIC -DLIBPYTHON_SO="libpython3.8.so.0.0" -I/usr/local/include -I/usr/include/openvpn -I/usr/local/include/openvpn -I/usr/local/include/python3.8 -c openvpn-plugin-python.c -o build/temp.openbsd-7.0-amd64-3.8/openvpn-plugin-python.o
cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -g -fPIC -O2 -pipe -g -O2 -pipe -g -Wall -I/usr/local/lib/ -fPIC -DLIBPYTHON_SO="libpython3.8.so.0.0" -I/usr/local/include -I/usr/include/openvpn -I/usr/local/include/openvpn -I/usr/local/include/python3.8 -c embedpython.c -o build/temp.openbsd-7.0-amd64-3.8/embedpython.o
cc -pthread -shared -fPIC -L/usr/local/lib/ -L/usr/obj/ports/Python-3.8.12/Python-3.8.12 -L/usr/local/lib/ -Wall -I/usr/local/lib/ build/temp.openbsd-7.0-amd64-3.8/openvpn-plugin-python.o build/temp.openbsd-7.0-amd64-3.8/embedpython.o -L/usr/local/lib -L/usr/lib -L/usr/local/lib -o build/lib.openbsd-7.0-amd64-3.8/openvpn-plugin-python.cpython-38.so
ld: error: duplicate symbol: Python_Inventory
>>> defined at embedpython.h:46 (./embedpython.h:46)
>>> build/temp.openbsd-7.0-amd64-3.8/openvpn-plugin-python.o:(Python_Inventory)
>>> defined at embedpython.h:46 (./embedpython.h:46)
>>> build/temp.openbsd-7.0-amd64-3.8/embedpython.o:(.bss+0x0)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'cc' failed with exit status 1
*** Error 1 in /home/null/openvpn-python-plugin (Makefile:13 'openvpn-plugin-python.so')