-
-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile using MSYS2 MinGW 64-bit #489
Comments
The libunbound library does not use the functions from libexpat, those are used by the unbound-anchor tool. The fixes you suggest, I made, including the one you note that you did not find; it is the nonblocking socket check crosscompile function. Thanks for the detailed report! |
Thanks for the quick fix and the explanation about libexpat. |
* nlnet/master: - zonemd-check: yesno option, default no, enables the processing of ZONEMD records for that zone. - Merge NLnetLabs#496 from banburybill: Use build system endianness if available, otherwise try to work it out. Use build system endianness if available, otherwise try to work it out. - For NLnetLabs#492: Fix font highlighting for the man page on emacs. - Fix NLnetLabs#492: module-config respip missing in unbound.conf.5.in man page. Merges NLnetLabs#494 from he32. Remove comment line (?) from man page. Transplant parts of the contributed RPZ documentation. - Move the NSEC3 max iterations count in line with the 150 value used by BIND, Knot and PowerDNS. This sets the default value for it in the configuration to 150 for all key sizes. - Test code has -q option for quiet output. - Fix for NLnetLabs#411, NLnetLabs#439, NLnetLabs#469: Reset the DNS message ID when moving queries between TCP streams. - Refactor for uniform way to produce random DNS message IDs. Fix date in changelog. - Fix NLnetLabs#489: Compile using MSYS2 MinGW 64-bit. - Fix that auth-zone zonefiles use last TTL if no TTL is specified. Changelog note for NLnetLabs#487 - Merge PR NLnetLabs#487: ifdef RLIMIT_AS in recently added check. ifdef RLIMIT_AS in recently added check
Describe the bug
Compiling unbound using the MinGW 64-bit shell included in MSYS2 does not work.
To reproduce
Steps to reproduce the behavior:
pacman
install packagesbase-devel
,mingw-w64-x86_64-toolchain
,mingw-w64-x86_64-openssl
,libexpat-devel
mingw-w64-x86_64-expat
I knowlibexpat-devel
is not really the correct package. But it silence the configure script complaining about not findinglibexpat
. And as I am only interested in building thelibunbound
library which as far as I can tell does not actually uselibexpat
, it does not seem to cause problems../configure --with-libunbound-only --with-ssl=/mingw64 --with-libexpat=/mingw64
make
make fails, because the configure script failed to detect MinGW. It is therefore trying to build with pthread support, which does not work.
Expected behavior
The configure script should correctly detect also the 64-bit version of the MinGW shell.
System:
Additional information
The problem is that the check for MinGW is only looking for the string
MINGW32
:unbound/configure
Lines 4206 to 4211 in 9aa072d
unbound/configure.ac
Lines 149 to 154 in 9aa072d
MinGW 32-bit shell:
MinGW 64-bit shell:
I locally changed the
uname
check to look forMINGW
. Afterwardsconfigure
/make
seem to work correctly (produces a dll that looks fine then viewed withobjdump
, but did not yet have time to actually test the dll).Note that there exist another check that is searching for the string
mingw32
:unbound/configure
Lines 15930 to 15931 in 9aa072d
I did not find this check in
configure.ac
, and also did not change it for my test.The text was updated successfully, but these errors were encountered: