Re: Win32 project building

2004-11-12 Thread David Christie
I have had difficulties building APR 1.0.0 on Win32. I am trying to
build in the Visual Studio IDE rather than from the command line. (I have 
done this successfully before with previous releases of APR; I have 
installed awk.exe, etc.) But there seem to be some unresolved issues with 
the 1.0.0 build.

I have both Visual Studio 6.0 and Visual Studio .NET 2003 available, and 
have tried both, with similar results. Here is exactly what I got using 
Visual Studio 6.0.

I found that opening the apr-util-1.0.0/aprutil.dsw workspace and building 
as described in http://apr.apache.org/compiling_win32.html only works 
partially.

First, I had to rename the unzipped directories by removing the '-1.0.0' 
suffix before I could open the aprutil.dsw successfully.

Having done that, I tried building the static libraries, in Debug mode.
The following libraries built successfully in apr/LibD:
   apr-1.lib
   apr_app-1.lib
   apriconv-1.lib
but apr-util.lib did not; it encountered the following errors:
xlate.c
C:\ORG\apache\apr-util\xlate\xlate.c(181) : error C2198: 'apr_iconv_close' : 
too few actual parameters
C:\ORG\apache\apr-util\xlate\xlate.c(182) : error C2198: 'apr_iconv_open' : 
too few actual parameters
C:\ORG\apache\apr-util\xlate\xlate.c(182) : warning C4047: '=' : 'void *' 
differs in levels of indirection from 'int '
apr_xml.c
Generating Code...
Error executing cl.exe.

By excluding xlate.c from the build, and also the ldap_*.c files, I was able 
to get an apr-util.lib generated; there were lots of multiply defined 
warnings for symbols also defined in apr-1.lib.

Then I tried the dynamic libraries (project libaprutil). It failed 
immediately with:

Configuration: libapr - Win32 Debug---
Creating apr.h from apr.hw
Creating Version Resource
Compiling resources...
C:\ORG\apache\apr\libapr.rc (3): error RC2127 : version WORDs separated by 
commas expected
C:\ORG\apache\apr\libapr.rc (3): error RC2167 : unrecognized VERSIONINFO 
field;  BEGIN or comma expected
Error executing rc.exe.

libaprutil-1.dll - 2 error(s), 0 warning(s)

Regards,
-David Christie


Re: Win32 project building

2004-11-12 Thread William A. Rowe, Jr.
At 02:02 AM 11/12/2004, David Christie wrote:
Then I tried the dynamic libraries (project libaprutil). It failed immediately 
with:

Configuration: libapr - Win32 Debug---
Creating apr.h from apr.hw
Creating Version Resource
Compiling resources...
C:\ORG\apache\apr\libapr.rc (3): error RC2127 : version WORDs separated by 
commas expected
C:\ORG\apache\apr\libapr.rc (3): error RC2167 : unrecognized VERSIONINFO 
field;  BEGIN or comma expected
Error executing rc.exe.

Which flavor of awk are you using?  We strongly recommend the
one cited on the 'building_win32' page.  DJGPP and GNU awk were
both flawed in 3.0.3-3.0.6.  You can try manually adjusting that
file for valid version tags.

Using some clever macros - we may eliminiate the dynamic creation
of VERSIONINFO tags in the coming few weeks - It's already in the
incubation/httpd/cli/trunk/mod_aspdotnet/ included version file
to generate different flavors of the version token, since we need
both comma and period delimited flavors.  I'll try backporting
this change.  About your static build - it sounds somehow fatally
flawed.  I will try to reproduce; note we use VC6 for our dev,
test and release, usually.  I've used the VC6 built apr in 2003
studio projects, but haven't tried building on 2003 studio in a while.

Bill



libtool 1.3 support

2004-11-12 Thread Joe Orton
I seem to recall from way back when there was some desire that
apr/apr-util/* should support libtool 1.3 (or at least can be built
using libtool 1.3).

Does anyone still really want this?  I'd like to fix apr-util to link
libaprutil against the libraries on which it depends, but this just
doesn't work with libtool 1.3 which can't do inter-library dependencies
(i.e. libaprutil-N.la depends on libapr-N.la and libexpat.la etc).

joe