On 7/13/05, Dan Johnson <[EMAIL PROTECTED]> wrote: > > > The problem is that I need to compile using MinGW under Cygwin, and > MinGW doesn't provide any of the shared memory header files (shm.h, > sys/mmap.h, sys/mman.h, etc.) so the test fails.
Dan, It sounds like you are building for MinGW, and Cygwin is just a build environment. Is that what you want; native binaries produced using a normal build system? > A quick Google shows that a few other people have had this problem > trying to build Subversion with MinGW but it doesn't look like anyone's > resolved it. Does anyone know of a successful APR build with MinGW? Curt Arnold has successfully built it using Ant + cpptask as part of the log4cxx project. If you want to take a look, most of the problems have been addressed in this patch: http://zeroj.hda0.net/apr-win32-20050713.patch There may be win32 problems in these changes because the tests do not build using the libtool approach. Here is the log. $ make test (cd test && make check OSDIR=/d/workpits/apr-mingw/include/arch/win32 ) make[1]: Entering directory `/d/workpits/apr-mingw/test' /bin/sh ./libtool --silent --mode=compile gcc -g -O2 -DHAVE_CONFIG_H -I../include -I./../include -I/d/workpits/apr-mingw/include/arch/win32 -o testlockperf.lo -c testlockperf.c && touch testlockperf.lo /bin/sh ./libtool --silent --mode=link gcc -g -O2 -DHAVE_CONFIG_H -I../include -I./../include -I/d/workpits/apr-mingw/include/arch/win32 -no-install -Wl,--enable-auto-import,--subsystem,console -o testlockperf.exe testlockperf.lo ../libapr.la -lrpcrt4 -lws2_32 -ladvapi32 -lshell32 -lkernel32 -lmsvcrt fu000001.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname' fu000002.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname' fu000003.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname' fu000004.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname' fu000005.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname' fu000006.o(.idata$3+0xc): more undefined references to `libmsvcrt_a_iname' follow nmth000000.o(.idata$4+0x0): undefined reference to `_nm___pctype' make[1]: *** [testlockperf.exe] Error 1 make[1]: Leaving directory `/d/workpits/apr-mingw/test' make: *** [check] Error 2 I am working on removing the libtool dependance in order that a native dll is created and used. > Thanks, > Dan Cheers, John