Bug 2260324 - sphinxbase-5-0.17.prealpha FTBFS against SWIG 4.2.0
Summary: sphinxbase-5-0.17.prealpha FTBFS against SWIG 4.2.0
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: sphinxbase
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: W. Michael Petullo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-01-25 11:22 UTC by Jitka Plesnikova
Modified: 2024-01-25 13:59 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-01-25 13:59:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jitka Plesnikova 2024-01-25 11:22:19 UTC
The build of sphinxbase-5-0.17.prealpha is failing against SWIG 4.2.0 in Fedora rawhide/40.

sphinxbase_wrap.c: In function '_wrap_NGramModel_add_class':
sphinxbase_wrap.c:5823:19: error: implicit declaration of function 'SWIG_Python_str_AsChar'; did you mean 'SWIG_Python_str_FromChar'? [-Wimplicit-function-declaration]
 5823 |         arg5[i] = SWIG_Python_str_AsChar(o);
      |                   ^~~~~~~~~~~~~~~~~~~~~~
      |                   SWIG_Python_str_FromChar
sphinxbase_wrap.c:5823:17: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 5823 |         arg5[i] = SWIG_Python_str_AsChar(o);
      |                 ^
sphinxbase_wrap.c:5842:9: error: implicit declaration of function 'SWIG_Python_str_DelForPy3'; did you mean 'SWIG_Python_str_FromFormat'? [-Wimplicit-function-declaration]
 5842 |         SWIG_Python_str_DelForPy3(arg5[i]);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
      |         SWIG_Python_str_FromFormat
sphinxbase_wrap.c: In function '_wrap_NGramModel_prob':
sphinxbase_wrap.c:5889:17: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 5889 |         arg3[i] = SWIG_Python_str_AsChar(o);
      |                 ^
make[2]: Leaving directory '/builddir/build/BUILD/sphinxbase-5prealpha/swig/python'

SWIG upstream proposed a solution
https://github.com/swig/swig/issues/2777#issuecomment-1909058619

Reproducible: Always

Comment 1 Jitka Plesnikova 2024-01-25 11:36:07 UTC
I prepared PR with fix

https://src.fedoraproject.org/rpms/sphinxbase/pull-request/4


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