Skip to content

Please add python 3.13 support #17

@blshkv

Description

@blshkv

sys-devel/gcc-14.2.1_p20241221

it fails to compile with the following error:

libtool: compile:  x86_64-pc-linux-gnu-gcc -I./ -DHAVE_CONFIG_H -O2 -pipe -frecord-gcc-switches -I/usr/include/libnl3 -DLORCON_VERSION=20180302 -I/usr/include -c lorcon_multi.c  -fPIC -DPIC -o .libs/lorcon_multi.o
/bin/sh ./libtool --mode=link x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -L/usr/lib64 -lpcap -lm -lnl-genl-3 -lnl-3 -o liborcon2.la ifcontrol_linux.lo iwcontrol.lo madwifing_control.lo nl80211_control.lo wifi_ht_channels.lo lorcon_packet.lo lorcon_packasm.lo lorcon_forge.lo drv_mac80211.lo drv_tuntap.lo drv_madwifing.lo drv_file.lo sha1.lo lorcon.lo lorcon_multi.lo  \
                                  -rpath /usr/lib64 -release 2.0.0
libtool: link: x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/ifcontrol_linux.o .libs/iwcontrol.o .libs/madwifing_control.o .libs/nl80211_control.o .libs/wifi_ht_channels.o .libs/lorcon_packet.o .libs/lorcon_packasm.o .libs/lorcon_forge.o .libs/drv_mac80211.o .libs/drv_tuntap.o .libs/drv_madwifing.o .libs/drv_file.o .libs/sha1.o .libs/lorcon.o .libs/lorcon_multi.o   -L/usr/lib64 -lpcap -lm -lnl-genl-3 -lnl-3  -Wl,-O1 -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0   -Wl,-soname -Wl,liborcon2-2.0.0.so -o .libs/liborcon2-2.0.0.so
libtool: link: (cd ".libs" && rm -f "liborcon2.so" && ln -s "liborcon2-2.0.0.so" "liborcon2.so")
libtool: link: ( cd ".libs" && rm -f "liborcon2.la" && ln -s "../liborcon2.la" "liborcon2.la" )
 * python3_13: running distutils-r1_run_phase distutils-r1_python_compile
 *   Building the wheel for lorcon-4a81d6aaa2c6ac7253ecd182ffe97c6c89411196/pylorcon2 via setuptools.build_meta:__legacy__
python3.13 -m gpep517 build-wheel --prefix=/usr --backend setuptools.build_meta:__legacy__ --output-fd 3 --wheel-dir /var/tmp/portage/net-wireless/lorcon-2020.06.06_p20220216-r3/work/lorcon-4a81d6aaa2c6ac7253ecd182ffe97c6c89411196-python3_13/wheel
2025-04-22 11:49:47,663 gpep517 INFO Building wheel via backend setuptools.build_meta:__legacy__
/usr/lib/python3.13/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        ********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX license expression:

        License :: OSI Approved :: GNU General Public License (GPL)

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!
  self._finalize_license_expression()
2025-04-22 11:49:48,048 root INFO running bdist_wheel
2025-04-22 11:49:48,226 root INFO running build
2025-04-22 11:49:48,254 root INFO running build_ext
2025-04-22 11:49:48,438 root INFO building 'PyLorcon2' extension
2025-04-22 11:49:48,440 root INFO creating /var/tmp/portage/net-wireless/lorcon-2020.06.06_p20220216-r3/work/lorcon-4a81d6aaa2c6ac7253ecd182ffe97c6c89411196-python3_13/build0/temp.linux-x86_64-cpython-313
2025-04-22 11:49:48,441 root INFO x86_64-pc-linux-gnu-gcc -O2 -pipe -frecord-gcc-switches -fPIC -I/usr/include/python3.13 -c PyLorcon2.c -o /var/tmp/portage/net-wireless/lorcon-2020.06.06_p20220216-r3/work/lorcon-4a81d6aaa2c6ac7253ecd182ffe97c6c89411196-python3_13/build0/temp.linux-x86_64-cpython-313/PyLorcon2.o -fPIC
PyLorcon2.c: In function ‘pylorcon2_multi_error_handler’:
PyLorcon2.c:1328:16: error: implicit declaration of function ‘PyEval_CallObject’; did you mean ‘PyObject_CallObject’? [-Wimplicit-function-declaration]
 1328 |     pyresult = PyEval_CallObject(multi->error_cb_func, cb_arg);
      |                ^~~~~~~~~~~~~~~~~
      |                PyObject_CallObject
PyLorcon2.c:1328:14: error: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
 1328 |     pyresult = PyEval_CallObject(multi->error_cb_func, cb_arg);
      |              ^
PyLorcon2.c: In function ‘pylorcon2_multi_handler’:
PyLorcon2.c:1428:14: error: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
 1428 |     pyresult = PyEval_CallObject(multi->cb_func, cb_arg);
      |              ^
error: command '/usr/bin/x86_64-pc-linux-gnu-gcc' failed with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions