Your message dated Sat, 01 Nov 2025 15:28:52 +0000
with message-id <[email protected]>
and subject line Bug#1119770: fixed in quantlib-swig 1.40-2
has caused the Debian Bug report #1119770,
regarding quantlib-swig: FTBFS: src/QuantLib/quantlib_wrap.cpp:1455:39: error: 
'PyImport_AddModuleRef' was not declared in this scope; did you mean 
'PyImport_AddModule'?
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1119770: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1119770
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:quantlib-swig
Version: 1.40-1
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202510/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:quantlib-swig, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp test-stamp install-stamp
test -f Makefile && /usr/bin/make realclean
make: [debian/rules:156: clean] Error 1 (ignored)
dh_clean
 debian/rules binary
dh_testdir
*** Running on arch amd64 and cpu x86_64
./autogen.sh
configure.ac:32: installing 'config/compile'
configure.ac:7: installing 'config/install-sh'
configure.ac:7: installing 'config/missing'
./configure     --prefix=/usr                           \
                --build amd64
checking for a BSD-compatible install... /usr/bin/install -c
checking whether sleep supports fractional seconds... yes
checking filesystem timestamp resolution... 0.01
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking xargs -n works... yes
checking whether UID '924' is supported by ustar format... yes
checking whether GID '924' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking system... Linux
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... none
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking dependency style of g++... none
checking whether g++ accepts warning flags... yes
checking for QuantLib... 1.40
checking for swig... /usr/bin/swig
checking for python3... /usr/bin/python3
checking for dotnet... no
checking for R... no
checking for javac... no
checking for jar... no
checking for java... no
checking for scalac... no
checking for scala... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating CSharp/Makefile
config.status: creating Java/Makefile
config.status: creating Python/Makefile
config.status: creating Python/setup.py
config.status: creating R/Makefile
config.status: creating R/DESCRIPTION
config.status: creating Scala/Makefile
config.status: executing depfiles commands
(cd Python && \
                swig -python -c++ -outdir src/QuantLib  \
                             -o src/QuantLib/quantlib_wrap.cpp  \
                             ../SWIG/quantlib.i;                \
                for python in python3.13; do            \
                        CC="g++"                \
                        CXX="g++"               \
                        CFLAGS="-g0 -Wall -Wno-strict-aliasing 
-DBOOST_NO_AUTO_PTR"     \
                        CXXFLAGS="-g0 -Wall -Wno-strict-aliasing 
-DBOOST_NO_AUTO_PTR"   \
                        $python setup.py build; \
                done                                    )
/usr/lib/python3/dist-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 :: BSD License

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

!!
  self._finalize_license_expression()
running build
running build_py
creating build/lib.linux-x86_64-cpython-313/QuantLib
copying src/QuantLib/__init__.py -> build/lib.linux-x86_64-cpython-313/QuantLib
copying src/QuantLib/QuantLib.py -> build/lib.linux-x86_64-cpython-313/QuantLib
running build_ext
building 'QuantLib._QuantLib' extension
creating build/temp.linux-x86_64-cpython-313/src/QuantLib
g++ -g0 -Wall -Wno-strict-aliasing -DBOOST_NO_AUTO_PTR -fPIC 
-DPy_LIMITED_API=0x03080000 -DNDEBUG -I/usr/include -I/usr/include/python3.13 
-c src/QuantLib/quantlib_wrap.cpp -o 
build/temp.linux-x86_64-cpython-313/src/QuantLib/quantlib_wrap.o -fopenmp 
-Wno-unused -g0 -Wall -Wno-strict-aliasing -DBOOST_NO_AUTO_PTR
src/QuantLib/quantlib_wrap.cpp: In function ‘PyObject* 
SWIG_runtime_data_module()’:
src/QuantLib/quantlib_wrap.cpp:1455:39: error: ‘PyImport_AddModuleRef’ was 
not declared in this scope; did you mean ‘PyImport_AddModule’?
 1455 |     Swig_runtime_data_module_global = 
PyImport_AddModuleRef(SWIG_RUNTIME_MODULE);
      |                                       ^~~~~~~~~~~~~~~~~~~~~
      |                                       PyImport_AddModule
src/QuantLib/quantlib_wrap.cpp: In function ‘int 
SwigPyObject_Check(PyObject*)’:
src/QuantLib/quantlib_wrap.cpp:1057:44: error: 
‘PyType_GetFullyQualifiedName’ was not declared in this scope; did you mean 
‘SWIG_PyType_GetFullyQualifiedName’?
 1057 | # define SWIG_PyType_GetFullyQualifiedName PyType_GetFullyQualifiedName
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/QuantLib/quantlib_wrap.cpp:2127:24: note: in expansion of macro 
‘SWIG_PyType_GetFullyQualifiedName’
 2127 |     PyObject *tpname = SWIG_PyType_GetFullyQualifiedName(op_type);
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/QuantLib/quantlib_wrap.cpp: In function ‘int 
SwigPyPacked_Check(PyObject*)’:
src/QuantLib/quantlib_wrap.cpp:1057:44: error: 
‘PyType_GetFullyQualifiedName’ was not declared in this scope; did you mean 
‘SWIG_PyType_GetFullyQualifiedName’?
 1057 | # define SWIG_PyType_GetFullyQualifiedName PyType_GetFullyQualifiedName
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/QuantLib/quantlib_wrap.cpp:2544:24: note: in expansion of macro 
‘SWIG_PyType_GetFullyQualifiedName’
 2544 |     PyObject *tpname = SWIG_PyType_GetFullyQualifiedName(op_type);
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/QuantLib/quantlib_wrap.cpp: In function ‘swig_type_info* 
SWIG_Python_TypeQuery(const char*)’:
src/QuantLib/quantlib_wrap.cpp:1114:39: error: ‘PyDict_GetItemStringRef’ 
was not declared in this scope; did you mean ‘PyDict_GetItemString’?
 1114 | # define SWIG_PyDict_GetItemStringRef PyDict_GetItemStringRef
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~
src/QuantLib/quantlib_wrap.cpp:3277:3: note: in expansion of macro 
‘SWIG_PyDict_GetItemStringRef’
 3277 |   SWIG_PyDict_GetItemStringRef(cache, type, &obj);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/QuantLib/quantlib_wrap.cpp: In function ‘MatrixRow 
Matrix___getitem__(QuantLib::Matrix*, QuantLib::Integer)’:
src/QuantLib/quantlib_wrap.cpp:10142:29: warning: comparison of integer 
expressions of different signedness: ‘QuantLib::Integer’ {aka ‘int’} 
and ‘QuantLib::Size’ {aka ‘long unsigned int’} [-Wsign-compare]
10142 |             if (i >= 0 && i < self->rows())
      |                           ~~^~~~~~~~~~~~~~
In file included from /usr/include/ql/patterns/observable.hpp:32,
                 from /usr/include/ql/event.hpp:29,
                 from /usr/include/ql/cashflow.hpp:28,
                 from /usr/include/ql/quantlib.hpp:11,
                 from src/QuantLib/quantlib_wrap.cpp:6411:
src/QuantLib/quantlib_wrap.cpp: In member function ‘const std::vector<double> 
OdeFct::operator()(QuantLib::Real, const std::vector<double>&) const’:
src/QuantLib/quantlib_wrap.cpp:18702:73: warning: comparison of integer 
expressions of different signedness: ‘Py_ssize_t’ {aka ‘long int’} and 
‘std::vector<double>::size_type’ {aka ‘long unsigned int’} 
[-Wsign-compare]
18702 |             PyList_Check(pyResult.get()) && PyList_Size(pyResult.get()) 
== y.size(),
      |                                             
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
error: command '/usr/bin/g++' failed with exit code 1
make: *** [debian/rules:105: build-stamp] Error 1
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

--- End Message ---
--- Begin Message ---
Source: quantlib-swig
Source-Version: 1.40-2
Done: Dirk Eddelbuettel <[email protected]>

We believe that the bug you reported is fixed in the latest version of
quantlib-swig, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dirk Eddelbuettel <[email protected]> (supplier of updated quantlib-swig package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 01 Nov 2025 09:27:49 -0500
Source: quantlib-swig
Architecture: source
Version: 1.40-2
Distribution: unstable
Urgency: medium
Maintainer: Dirk Eddelbuettel <[email protected]>
Changed-By: Dirk Eddelbuettel <[email protected]>
Closes: 1119770
Changes:
 quantlib-swig (1.40-2) unstable; urgency=medium
 .
   * debian/patches/upgrade-minimum-pytho-version-3.10.patch: Upstream
     patch to accommodate SWIG 4.4.0                    (Closes: #1119770)
Checksums-Sha1:
 8f0643b4c5f900d30c150fa0af8473b02e921fcf 2019 quantlib-swig_1.40-2.dsc
 8c3b3310e3f22f58e8c7bf874e0e824426cb1306 11820 
quantlib-swig_1.40-2.debian.tar.xz
 36f35201f6c0658d89924e9cf1e26a8405d064fb 6597 
quantlib-swig_1.40-2_amd64.buildinfo
Checksums-Sha256:
 dff42aa73d5f7fd1c2a1d650e9fc921621e525c93ea93034056d8cb12930ba41 2019 
quantlib-swig_1.40-2.dsc
 4c868b7ba596981b729a75cdde0a1c841336455a3efdcf88f1d6a370c10775e0 11820 
quantlib-swig_1.40-2.debian.tar.xz
 aa8a578ad94072cccd9c61f49c8f19b44e3e953210f3af454ce1cb7ffb3e776c 6597 
quantlib-swig_1.40-2_amd64.buildinfo
Files:
 c7f2177e60abf5f825b34229a6879c76 2019 interpreters optional 
quantlib-swig_1.40-2.dsc
 995052fe2e0a1a234cafcb3849326d36 11820 interpreters optional 
quantlib-swig_1.40-2.debian.tar.xz
 c065fd726f68a29fa05728e5f889bda3 6597 interpreters optional 
quantlib-swig_1.40-2_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIVAwUBaQYcKqFIn+KrmaIaAQj5Yw/+KRhbqIjgshU4iYKdzZghUahdG4a33lym
GB1IXsg+AqdcM9xUuEBRYT0eCQWnoyOMvHYb5breB/GfjoXifrzMabgnbr+Lh2ZS
e8HzT7Mror8JjFLJ5LRBnd/47RpPPykwJhJ6q7fva+UL/d4LqUzig/IJslDgpW3h
Pdn6qJDcLoqoYTSNlFWaotsKmHd/xWumVeONhzRa5f5taGTNbz/2CzRckXCJ1fY9
XFxjXDWbXphCdZVaLJF4wvvcHRX3XutwJLs51oIAA63PcntT56TZe6giaJKWz0uU
x+OUOYzf7g3OFoNxHmgOMW3PSY41yA2XnA2RM8bvyJEslBjHG93EOhvvpn+InSIA
/6RmQFKBXk0UmOKLnXCBjV6z8quX1K8hQ+ICsBwnzcaOXPc3F4CzfdrHmLQ+nEuW
RxKhWi5ZkwTc8ZXIbUzTBYtZaQ9uLBFsoK3Wi7m+WRb4yAh0ctETxfotB8MtSub+
Z0B7Ms7YMk7KQZ3953gNaahL7GEwF2y96YZZUE+LdZjwqvbrgs4vGThTRMlXLFci
f3tUqf7rtmqguPv+hf7Hu/bjJ1so7E59vurb5iP3c3Qt0FyxY7SizASP6YpnTkDG
H9xGwMT/zxSg1Lh8lHGg4HyDnQsLLBiQnO39dElx7ankr9jpKfk0p0fgDZEjhDAN
l90Q3EUKhFY=
=HDjG
-----END PGP SIGNATURE-----

Attachment: pgpmcIDEJBpzF.pgp
Description: PGP signature


--- End Message ---

Reply via email to