devel/ace (ace-5.5.2_2) build works OK if aio(4) is not loaded, but if aio kernel module is loaded, build fails when it attempts to compile tests/Proactor_Test.cpp.
This failure occurs because of inconsistency between code in POSIX_CB_Proactor.h (which leaves class ACE_POSIX_CB_Proactor undefined if defined (__FreeBSD__)) and code in Proactor_Test.cpp (which assumes it is defined). There is an identical situation with Proactor_Test_IPV6.cpp as well.
In the default case where kernel module aio(4) is not loaded, the ACE configure script does not detect the presence of aio and therefore leaves ACE_HAS_AIO_CALLS undefined. In this case, the test code in Proactor_Test.cpp and Proactor_Test_IPV6.cpp is not compiled, and there is no build failure.
Fix: The attached patch qualifies the relevant code blocks with "!defined(__FreeBSD__)" to make them consistent with POSIX_CB_Proactor.h.
Patch attached with submission follows:
How-To-Repeat: # kldload aio
# cd /usr/ports/devel/ace
# make clean && make
Over to maintainer (via the GNATS Auto Assign Tool)
Return to the pool
I'll take it.
amdmi3 2009-03-20 01:01:51 UTC
FreeBSD ports repository
- Fix build when aio.ko is loaded
- While here, fix build on CURRENT
Submitted by: "G. Paul Ziemba" <p-fbsd-bugs at ziemba dot us>
Revision Changes Path
1.22 +5 -5 ports/devel/ace/Makefile
1.1 +25 -0 ports/devel/ace/files/patch-tests (new)
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "email@example.com"