On Thu, 11 Dec 2025 19:03:24 +0100
Marco Atzeri wrote:
> Version 4.4.1-1 of
>
> swig
>
> have been uploaded for cygwin.
Both version 4.4.0-1 and 4.4.1-1 fail to build "unbound".
Steps to reproduce:
1) Download source package of unbound and extract it.
2) Run "cygport unbound all".
3) Then the build fails.
Downgrading swig to 4.3.1-1 solves the issue. The direct
cause of the issue seems to be failure of macro(?) expansion.
py3/libunbound/python/libunbound_wrap.c in the build directory
has lines:
//printf("resolve_start(%lX)\n",(long unsigned int)arg1);
Py_BEGIN_ALLOW_THREADS
$function
Py_END_ALLOW_THREADS
//printf("resolve_stop()\n");
where "$function" remains unexpanded.
With swig 4.3.1-1, these lines are:
//printf("resolve_start(%lX)\n",(long unsigned int)arg1);
Py_BEGIN_ALLOW_THREADS
result = (int)ub_resolve(arg1,(char const *)arg2,arg3,arg4,arg5);
Py_END_ALLOW_THREADS
//printf("resolve_stop()\n");
I'm not sure where the problem is, I mean, swig or unbound.
Any idea?
--
Takashi Yano <[email protected]>
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple