Re: Updated: swig-4.4.1-1

Takashi Yano via Cygwin <[email protected]>
Newsgroups gmane.os.cygwin
Message-ID <[email protected]>
On Fri, 12 Dec 2025 20:30:23 +0900
Takashi Yano wrote:
> 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?

I found the PR in unbound upstream.
https://github.com/NLnetLabs/unbound/pull/1331/commits/1d3d78dff5df323dfb1c729f2e22dc5bd8bc9593

Sorry to bother you.

-- 
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.