I've seen some unexpected directions for building apr trunk with
expat. This works for me:
C:\Users\xxx> \mingw\bin\mingw-get install mingw32-libexpat
bash-3.1$ ./configure --prefix=foo --with-expat=/c/MinGW
FWIW, as of r1083038, here is what I use:
./configure --prefix=/c/Users/Trawick/aprinst --without-iconv
--with-expat=/c/MinGW
Index: test/testpipe.c
===================================================================
--- test/testpipe.c (revision 1083036)
+++ test/testpipe.c (working copy)
@@ -186,6 +186,7 @@
ABTS_ASSERT(tc, "child terminated normally", why == APR_PROC_EXIT);
}
+#if 0
static void wait_pipe(abts_case *tc, void *data)
{
apr_status_t rv;
@@ -214,6 +215,7 @@
rv = apr_file_pipe_wait(readp, APR_WAIT_READ);
APR_ASSERT_SUCCESS(tc, "Wait for pipe failed", rv);
}
+#endif
abts_suite *testpipe(abts_suite *suite)
{
@@ -228,7 +230,7 @@
abts_run_test(suite, read_write_notimeout, NULL);
abts_run_test(suite, test_pipe_writefull, NULL);
abts_run_test(suite, close_pipe, NULL);
- abts_run_test(suite, wait_pipe, NULL);
+ /* abts_run_test(suite, wait_pipe, NULL); */
return suite;
}
(needed on any Windows build due to lack of apr_file_pipe_wait()?)
lots more patch chunks for MinGW attached to
https://issues.apache.org/bugzilla/show_bug.cgi?id=46175; maybe I'll
commit some as I confirm they do something for me && I understand
them, but don't wait for me; I don't want to go commit the lot of them
without a proper chance to stare
I'm reasonably sure some of the patch corresponds directly to test
failures I see:
bash-3.1$ ./testall -v
testatomic : SUCCESS
testdir : SUCCESS
testdso : |Line 61: The specified module could not be found.
|Line 77: The specified module could not be found.
-Line 102: The specified module could not be found.
\Line 126: The specified module could not be found.
FAILED 4 of 5
testdup : SUCCESS
testenv : SUCCESS
testfile : |Line 863: File size mismatch, expected 4
FAILED 1 of 36
testfilecopy : SUCCESS
testfileinfo : SUCCESS
testflock : SUCCESS
testfmt : SUCCESS
testfnmatch : SUCCESS
testargs : SUCCESS
testhash : SUCCESS
testhooks : SUCCESS
testipsub : SUCCESS
testlock : SUCCESS
testcond : SUCCESS
testlfs : SUCCESS
testmmap : |Line 34: User functions
SUCCESS
testnames : /Line 317: expected <c:/Users/Trawick/svn/apr-xx/test>, bu
t saw <C:/Users/Trawick/svn/apr-xx/test>
SUCCESS
testoc : SUCCESS
testpath : SUCCESS
testpipe : SUCCESS
testpoll : \Line 577: pollcb interface not supported
|Line 604: pollcb interface not supported
-Line 630: pollcb interface not supported
\Line 646: pollcb interface not supported
|Line 726: pollcb interface not supported
-Line 808: pollcb interface not supported
SUCCESS
testpools : SUCCESS
testproc : SUCCESS
testprocmutex : |Line 177: APR lacks fork() support
SUCCESS
testrand : SUCCESS
testsleep : SUCCESS
testshm : -Line 173: Error allocating shared memory block (720005):
Access is denied.
/Line 237: Error allocating shared memory block (720005): Access is denied.
FAILED 2 of 5
testsock : \Line 369: Cannot test if connect completes synchronously
/Line 472: connecting client to server (730056): A connect request was made on a
n already connected socket.
\Line 490: Wait for socket failed
FAILED 1 of 10
testsockets : SUCCESS
testsockopt : |Line 84: TCP isn't corkable
SUCCESS
teststr : SUCCESS
teststrnatcmp : SUCCESS
testtable : SUCCESS
testtemp : SUCCESS
testthread : SUCCESS
testtime : SUCCESS
testud : SUCCESS
testuser : -Line 67: Groups from apr_uid_get
SUCCESS
testvsn : SUCCESS
teststrmatch : SUCCESS
testuri : SUCCESS
testuuid : SUCCESS
testbuckets : SUCCESS
testpass : |Line 67: check for valid password (70024): passwords do n
ot match
|L\n/ -7| \h-c| /o- |a|i- |a/s-o|d\(-0|2/)- |a\s-o|d/ -o|n\t-m|t/h
-
FAILED 2 of 4
testbase64 : SUCCESS
testmd4 : SUCCESS
testmd5 : SUCCESS
testcrypto : SUCCESS
testdbd : SUCCESS
testdate : SUCCESS
testmemcache : SUCCESS
testxml : SUCCESS
testxlate : SUCCESS
testrmm : SUCCESS
testdbm : SUCCESS
testqueue : SUCCESS
testreslist : \Line 258: expected <10>, but saw <20>
FAILED 1 of 1
testlfsabi : SUCCESS
Failed Tests Total Fail Failed %
===================================================
testdso 5 4 80.00%
testfile 36 1 2.78%
testshm 5 2 40.00%
testsock 10 1 10.00%
testpass 4 2 50.00%
testreslist 1 1 100.00%
bash-3.1$