-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 10.08.2016 1:48, Mosè Giordano wrote:
> I'm trying to cross compile Cuba library
> (http://www.feynarts.de/cuba/, here is the latest tarball:
> http://www.feynarts.de/cuba/Cuba-4.2.tar.gz) for Windows on Linux
> using mingw-w64, but I ran into this error:
>
>
> In file included from ./src/common/Fork.c:11:0: ./src/common/Fork.c:
> In function ‘cubawait’: ./src/common/stddecl.h:192:29: error:
> ‘cubafun_’ undeclared (first use in this function) #define
> MasterExit() do if( cubafun_.init ) { \ ^ ./src/common/Fork.c:160:3:
> note: in expansion of macro ‘MasterExit’ MasterExit(); ^
> ./src/common/stddecl.h:192:29: note: each undeclared identifier is
> reported only once for each function it appears in #define
> MasterExit() do if( cubafun_.init ) { \ ^ ./src/common/Fork.c:160:3:
> note: in expansion of macro ‘MasterExit’ MasterExit(); ^
The word "fork" should have hinted at the source of the problem. There's
no fork() on Windows, and the whole Fork.c in Cuba is a stub, however it
does call MasterExit(), which is a macro that uses the cubafun_ global
variable, but that variable is only there in non-stub version of Fork.c.
This is a Cuba portability bug. They can reproduce it by tweaking
configure to make it fail to detect fork() (so that HAVE_FORK is undefined)
.
- --
O< ascii ribbon - stop html email! - www.asciiribbon.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJXqwj3AAoJEI2t6SdnWbp0bNcP/0Z9y4De5kas+O0heg53782o
fNRv6ySSrGQeo065WTRoos1MSfT21NEyIIb3anHI6X7GonBhvogMaETMx8TW2W/b
h+H33LzqW1r6sSlpQ7fsB50/xoWpBsAyN44IEB7E2leAYS+gHCjyQ8aaSzjlgWP7
vVPYsnNXEsUmJzO85NXuhSI4Iw0oLUhPkWtb0+qaK7s/iCesFe8ooHxKDDwZrM8C
MEOHUxQajKJ+wf2B86gafMXO7vt/GdKNKEozioHFZyx68tDVh2dmi3m4lRZjmn2T
4cjmwCGjjoTnaCfnjOisRMhTj9BRVoslkHOdH7emqbbv7ZM4c/Mo5jjPLLgF7uy0
1R/DKiHPn0JcL2JK3CSq2oAGOvUZsnkEBB4KPMS1UCaJhrXYwmMf1Pz0mAz50d6E
koUoP3L1cKU13dNHbRboX7UOmz816wdpyAIeAYf8P02CSqittbtw39T3bf2K4YTp
ii092rStkOSh50U2WWxyfybHEG3i0GmiWoyZieM2eoa/ZnA5RF3aIF3TlzhfgiTu
y6FEfdsI62ZinahbC240fJWdh+N5b4N/jGDt6PxwKuXhyG3VQxlExh8OwqWHLV9R
kr1YPDHP+mdkkl9Ywqz3Vxj3uxfAakGEmPfZ6txvq0bQWZ8q7ESFvPBWqndhHQQi
66pE/13KLXYRIL3JqFrd
=VCan
-----END PGP SIGNATURE-----
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public