Bug 2257901 - ldns-1.8.3 fails with SWIG 4.2.0
Summary: ldns-1.8.3 fails with SWIG 4.2.0
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: ldns
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Florian Weimer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2260313 (view as bug list)
Depends On:
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2024-01-11 13:24 UTC by Jitka Plesnikova
Modified: 2024-01-29 09:25 UTC (History)
9 users (show)

Fixed In Version: ldns-1.8.3-13.fc40
Clone Of:
Environment:
Last Closed: 2024-01-29 09:25:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github NLnetLabs ldns pull 231 0 None open const ldns_rdf * typemap fixes to support swig-4.2.0 2024-01-16 15:02:39 UTC

Description Jitka Plesnikova 2024-01-11 13:24:31 UTC
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

Comment 1 Petr Pisar 2024-01-29 09:23:51 UTC
*** Bug 2260313 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.