I am preparing update SWIG to version 4.2.0 in Fedora rawhide. The build of ldns-1.8.3 is failing with this version. ./contrib/python/ldns_wrapper.c: In function '_wrap_ldns_rdf_type2str': ./contrib/python/ldns_wrapper.c:10133:16: error: implicit declaration of function 'SWIG_Python_str_AsChar'; did you mean 'SWIG_Python_str_FromChar'? [-Werror=implicit-function-declaration] 10133 | arg1_str = SWIG_Python_str_AsChar(swig_obj[0]); | ^~~~~~~~~~~~~~~~~~~~~~ | SWIG_Python_str_FromChar ./contrib/python/ldns_wrapper.c:10133:14: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 10133 | arg1_str = SWIG_Python_str_AsChar(swig_obj[0]); | ^ ./contrib/python/ldns_wrapper.c:10153:5: error: implicit declaration of function 'SWIG_Python_str_DelForPy3'; did you mean 'SWIG_Python_str_FromFormat'? [-Werror=implicit-function-declaration] 10153 | SWIG_Python_str_DelForPy3(arg1_str); /* Is a empty macro for Python < 3. */ | ^~~~~~~~~~~~~~~~~~~~~~~~~ | SWIG_Python_str_FromFormat I reported it to SWIG upstream and they proposed solution https://github.com/NLnetLabs/ldns/pull/231 Reproducible: Always
*** Bug 2260313 has been marked as a duplicate of this bug. ***