On 10/6/2011 1:22 PM, Jon Leighton wrote: > On 10/6/11 10:18 AM, Peter Odding wrote: >> I think the make files are just broken. Here's how I build APR and APR-Util >> on Windows >> XP using the Windows Platform SDK: >> >> https://github.com/xolox/lua-apr/blob/master/etc/win32-bootstrap/make.cmd >> >> See specifically the following lines (executed BEFORE building anything): >> >> :: I haven't a clue why this is needed, but it certainly helps :-) >> TYPE apr\include\apr.hw > apr\apr.h >> TYPE apr\include\apr.hw > apr\include\apr.h > > Thanks Peter - I copied apr.hw to apr.h as suggested above, and the build > process made > progress, but didn't quite complete. Here's where it failed: > > . > . > . > cl.exe /nologo /MDd /W3 /Zi /Od /I "./include" /I "./include/arch" /I > ". > /include/arch/win32" /I "./include/arch/unix" /D "_DEBUG" /D > "APR_DECLARE_EXPORT > " /D "WIN32" /D "WINNT" /D "_WINDOWS" /Fo".\Debug\\" /Fd".\Debug\libapr_src" > /FD > /EHsc /c .\user\win32\userinfo.c > userinfo.c > rc.exe /l 0x409 /fo".\Debug\libapr.res" /i "./include" /d "_DEBUG" /d > "A > PR_VERSION_ONLY" .\libapr.rc > Microsoft (R) Windows (R) Resource Compiler Version 6.1.7600.16385 > Copyright (C) Microsoft Corporation. All rights reserved. > > link.exe @C:\Users\jon\AppData\Local\Temp\nmCA1.tmp > Creating library .\Debug\libapr-1.lib and object .\Debug\libapr-1.exp > if exist .\Debug\libapr-1.dll.manifest mt.exe -manifest > .\Debug\libapr-1 > .dll.manifest -outputresource:.\Debug\libapr-1.dll;2 > echo Helper for Post-build step > ".\Debug\postbld.dep" > cd build > "c:\Program Files (x86)\Microsoft Visual Studio > 10.0\VC\BIN\nmake.exe" - > nologo -f apr_app.mak CFG="apr_app - Win32 Debug" RECURSE=0
apr-util is out of sync with apr... apr_app is renamed to aprapp. Whatever the win32 build is updated to, I've learned that apr-util shouldn't actually build apr for precisely this reason. Since the apr-util is slated for destruction (apr 2.0.0 incorporates it), I hadn't spent much time returning to it. aprapp is an interesting beast, it was basically an early shortcut to avoid waiting for apr_initialize to fix the system env table into a utf-8 representation for _environ which wouldn't lose any of the wide characters irrespective of code page. That's back in the day that MS didn't have a (working) utf-8 code page.
