You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Jon Leighton <le...@cis.udel.edu> on 2011/10/05 17:47:38 UTC

apr-iconv-1.2.1 download broken?

The download link for the Windows source for apr-iconv-1.2.1 appears to 
be broken.  I've tried several different mirrors, all with the same 
result.  Can anyone offer a work-around for this?  Thanks very much.

- Jon

Re: how to build APR with VS 2010

Posted by "William A. Rowe Jr." <wr...@rowe-clan.net>.
On 10/6/2011 6:33 PM, Jon Leighton wrote:
> On 10/6/11 3:28 PM, Peter Odding wrote:
>> This is from https://github.com/xolox/lua-apr/blob/master/NOTES.md.
>> Together with the bootstrap script I linked to earlier this document
>> contains hints about compiling APR, APR-Util, APR-iconv and the
>> SQLite3 driver on Windows (XP) using the Windows Platform SDK.
> 
> Thanks for the link to your notes page.  Renaming apr_app to aprapp in the Makefile.win
> was all that was needed, and the build completed without error - perhaps because my
> sources are slightly more recent that those you describe on your notes page.

That's probably true... Only in the last few revs have I paid very
close attention to what ms visual studio 6 is emitting, and some of
it makes no sense for a layered build.  Glad you were successful,
since 1.4.2 is current, it seems appropriate to 'fix' apr-util,
but I think the correct fix is for apr-util 1.3 to simply invoke
the apr's Makefile.win.




Re: how to build APR with VS 2010

Posted by Jon Leighton <le...@cis.udel.edu>.
On 10/6/11 3:28 PM, Peter Odding wrote:
> This is from https://github.com/xolox/lua-apr/blob/master/NOTES.md.
> Together with the bootstrap script I linked to earlier this document
> contains hints about compiling APR, APR-Util, APR-iconv and the
> SQLite3 driver on Windows (XP) using the Windows Platform SDK.

Thanks for the link to your notes page.  Renaming apr_app to aprapp in 
the Makefile.win was all that was needed, and the build completed 
without error - perhaps because my sources are slightly more recent that 
those you describe on your notes page.

- Jon

Re: how to build APR with VS 2010

Posted by Peter Odding <pe...@peterodding.com>.
> 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 NMAKE : fatal
> error U1052: file 'apr_app.mak' not found Stop. NMAKE : fatal error
> U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0
> \VC\BIN\nmake.exe"' : return code '0x2' Stop.
>
> c:\Users\jon\Desktop\apr-dist\apr-util>il
>
> I can't find an apr_app.mak file anywhere, and I'm guessing it
> shouldn't be looking for one. In any case, I haven't been able to
> get past this error, and any help would be appreciated.

This is one of the reasons why I mentioned that the Windows make files
are broken in my experience --  I've encountered exactly the same
problems as you have and have documented the solution in the build notes
of my Lua/APR project:

> The instructions about building APR on Windows don't work for me so
> this is where things get sketchy: Open a Windows SDK command prompt
> and navigate to the apr-util directory. Inside this directory
> execute nmake -f Makefile.win buildall. This doesn't work for me out
> of the box because of what's probably a bug in the APR-util makefile;
> I needed to replace apr_app with aprapp on lines 176 and 177 of
> Makefile.win. After this change nmake still exits with errors but
> nevertheless seems to build libapr-1.dll and libaprutil-1.dll...

This is from https://github.com/xolox/lua-apr/blob/master/NOTES.md.
Together with the bootstrap script I linked to earlier this document
contains hints about compiling APR, APR-Util, APR-iconv and the
SQLite3 driver on Windows (XP) using the Windows Platform SDK.

  - Peter

Re: how to build APR with VS 2010

Posted by "William A. Rowe Jr." <wr...@rowe-clan.net>.
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.



Re: how to build APR with VS 2010

Posted by Jon Leighton <le...@cis.udel.edu>.
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
NMAKE : fatal error U1052: file 'apr_app.mak' not found
Stop.
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual 
Studio 10.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

c:\Users\jon\Desktop\apr-dist\apr-util>il

I can't find an apr_app.mak file anywhere, and I'm guessing it shouldn't 
be looking for one.  In any case, I haven't been able to get past this 
error, and any help would be appreciated.

Re: how to build APR with VS 2010

Posted by Jon Leighton <le...@cis.udel.edu>.
On 10/6/11 11:59 AM, William A. Rowe Jr. wrote:
> On 10/6/2011 9:18 AM, Peter Odding wrote:
>> 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
> Ahhh, right, you are trying to build the stale apr 1.3.12?  You probably
> want the current 1.4.5 release.

I just want to confirm that I'm using apr-1.4.5, apr-util-1.3.12, and 
apr-iconv-1.2.1, which are described as the latest releases on the APR 
website.  If those aren't the current releases, please let me know.

Re: how to build APR with VS 2010

Posted by "William A. Rowe Jr." <wr...@rowe-clan.net>.
On 10/6/2011 9:18 AM, Peter Odding wrote:
> 
> 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

Ahhh, right, you are trying to build the stale apr 1.3.12?  You probably
want the current 1.4.5 release.  The older flavors had a few snafus
with respect to cross-project dependencies.  In Makefile.win, it might
make sense to add NO_EXTERNAL_DEPS=1 to the nmake lines.  And I'm not
entirely sure why you think that first line above helps if every cl
command refers to -I./include ?  If it's a lingering failed first try,
you might want to remove that ;-)

Re: how to build APR with VS 2010

Posted by Peter Odding <pe...@peterodding.com>.
>>> Is there an update to http://apr.apache.org/compiling_win32.html that
>>> applies to VS 2010,
>>> or some other source of info for how to build APR with VS2010? I'm
>>> trying to build APR,
>>> but so far without luck. Here's the output I get using nmake:
>>>
>>> C:\Users\jon\Desktop\apr\apr-util-1.3.12>nmake /f aprutil.mak
>> I don't see nmake on that page. And it does need a refresh.
>>
>> Please see Makefile.win in your apr-util directory.
> Thanks - I've looked at Makefile.win in apr-util and tried again with
> the following result:
>
> ...
> NMAKE : fatal error U1073: don't know how to make '"apr.h"'
> Stop.
> ...
>
> I can't tell what path it's complaining about not being able to find,
> but explicitly specifying the AP[R|I|U]_PATHs doesn't change the result
> . Also, the apr.h file does not exist in apr/include so I'm wondering if
> I first need to invoke something akin to configure on *nix systems, to
> generate it.

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

  - Peter

Re: how to build APR with VS 2010

Posted by Jon Leighton <le...@cis.udel.edu>.
On 10/5/11 5:21 PM, William A. Rowe Jr. wrote:
> On 10/5/2011 3:47 PM, Jon Leighton wrote:
>> Is there an update to http://apr.apache.org/compiling_win32.html that applies to VS 2010,
>> or some other source of info for how to build APR with VS2010?  I'm trying to build APR,
>> but so far without luck.  Here's the output I get using nmake:
>>
>> C:\Users\jon\Desktop\apr\apr-util-1.3.12>nmake /f aprutil.mak
> I don't see nmake on that page.  And it does need a refresh.
>
> Please see Makefile.win in your apr-util directory.
Thanks - I've looked at Makefile.win in apr-util and tried again with 
the following result:

C:\Users\jon\Desktop\apr-dist\apr-util>nmake -f Makefile.win 
PREFIX=C:\apr build
all

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

The system cannot find the path specified.
ARCH        = Win32 Release
APR_PATH    = ..\apr
API_PATH    = ..\apr-iconv  (apr-iconv)
APU_PATH    = ..\apr-util  (apr-util)
PREFIX      = C:\apr  (install path)
DBD_LIST    =
DBM_LIST    =
         cd ..\apr
         "c:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\BIN\nmake.exe" -
nologo -f apr.mak         CFG="apr - Win32 Release" RECURSE=0
NMAKE : fatal error U1073: don't know how to make '"apr.h"'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual 
Studio 10.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

C:\Users\jon\Desktop\apr-dist\apr-util>

I can't tell what path it's complaining about not being able to find, 
but explicitly specifying the AP[R|I|U]_PATHs doesn't change the result 
.  Also, the apr.h file does not exist in apr/include so I'm wondering 
if I first need to invoke something akin to configure on *nix systems, 
to generate it.

Re: how to build APR with VS 2010

Posted by "William A. Rowe Jr." <wr...@rowe-clan.net>.
On 10/5/2011 3:47 PM, Jon Leighton wrote:
> Is there an update to http://apr.apache.org/compiling_win32.html that applies to VS 2010,
> or some other source of info for how to build APR with VS2010?  I'm trying to build APR,
> but so far without luck.  Here's the output I get using nmake:
> 
> C:\Users\jon\Desktop\apr\apr-util-1.3.12>nmake /f aprutil.mak

I don't see nmake on that page.  And it does need a refresh.

Please see Makefile.win in your apr-util directory.

how to build APR with VS 2010

Posted by Jon Leighton <le...@cis.udel.edu>.
Is there an update to http://apr.apache.org/compiling_win32.html that 
applies to VS 2010, or some other source of info for how to build APR 
with VS2010?  I'm trying to build APR, but so far without luck.  Here's 
the output I get using nmake:

C:\Users\jon\Desktop\apr\apr-util-1.3.12>nmake /f aprutil.mak

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

No configuration specified. Defaulting to aprutil - Win32 Release.
         cd ".\xml\expat\lib"
         "c:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\BIN\nmake.exe" /
                    /F ".\xml.mak" CFG="xml - Win32 Release"

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

         if not exist ".\LibR/" mkdir ".\LibR"
         cl.exe @C:\Users\jon\AppData\Local\Temp\nm4064.tmp
xmlparse.c
xmlrole.c
xmltok.c
Generating Code...
         link.exe -lib @C:\Users\jon\AppData\Local\Temp\nm46FD.tmp
         cd "..\..\.."
         cd ".\..\apr-iconv"
NMAKE : fatal error U1077: 'cd' : return code '0x1'
Stop.

C:\Users\jon\Desktop\apr\apr-util-1.3.12>

I'm not sure if this means I don't have VS2010 setup correctly, or 
something else.  Thanks for any help with this.

- Jon

Re: apr-iconv-1.2.1 download broken?

Posted by Mario Brandt <jb...@gmail.com>.
In worst case try the backup server http://www.eu.apache.org/dist/apr/
spcialy for windows use the r2 from 1.2.1

Cheers
Mario

On Wed, Oct 5, 2011 at 17:47, Jon Leighton <le...@cis.udel.edu> wrote:
> The download link for the Windows source for apr-iconv-1.2.1 appears to be
> broken.  I've tried several different mirrors, all with the same result.
>  Can anyone offer a work-around for this?  Thanks very much.
>
> - Jon
>