Hi, I'm trying to compile log4cxx on Visual Studio 2008 Express
Edition on Windows Vista.

Thus far I've been following the instructions at:

http://logging.apache.org/log4cxx/building/vstudio.html

I've installed sed from:

http://voxel.dl.sourceforge.net/sourceforge/gnuwin32/sed-4.1.5-setup.exe

And added it to my path.

I downloaded and unzipped apr-1.2.11-win32-src.zip, and
apr-util-1.2.10-win32-src.zip,
to the parent directory above my apache-log4cxx-0.10.0 directory.

I also renamed both of the files to apr and apr-util respectively.

I ran the configure, and configure-aprutil batch files.

Finally when I got to the step "Building log4cxx.dll" in <a
href="(http://logging.apache.org/log4cxx/building/vstudio.html)">the
build instructions</a> I opened
apache-log4cxx-0.10.0/projects/log4cxx.dsw and was presented with a
message stating that I needed to upgrade the VCPP6 workspace to a 2008
Express Edition workspace, and I receive the following messages:

<quote author="Visual C++ 2008 Express Edition Warning dialog...">
A Visual C++ project of the name 'apr.vcproj' already exists in the
current format.
Would you like to load the existing project instead?
</quote>

And I click "Yes"

<quote author="Visual C++ 2008 Express Edition Warning dialog...">
A Visual C++ project of the name 'xml.vcproj' already exists in the
current format.
Would you like to load the existing project instead?
</quote>

And I click "Yes" again...

<quote author="Visual C++ 2008 Express Edition Warning dialog...">
A Visual C++ project of the name 'aprutil.vcproj' already exists in
the current format.
Would you like to load the existing project instead?
</quote>

And I click "Yes" one more time...

<quote author="Visual C++ 2008 Express Edition Warning dialog...">
A Visual C++ project of the name 'log4cxx.vcproj' already exists in
the current format.
Would you like to load the existing project instead?
</quote>

And I click "Yes" once again...

Now my project workspace loads, I select log4cxx as the "startup
project" and I build it.

now I get the following errors in my output window:

<quote author="output window">
1>------ Build started: Project: apr, Configuration: Debug Win32 ------
1>Compiling...
1>multicast.c
1>.\network_io\unix\multicast.c(137) : error C2079: 'mip' uses
undefined struct 'group_source_req'
1>.\network_io\unix\multicast.c(168) : error C2224: left of
'.gsr_interface' must have struct/union type
1>.\network_io\unix\multicast.c(168) : warning C4013: 'find_if_index'
undefined; assuming extern returning int
1>.\network_io\unix\multicast.c(169) : error C2224: left of
'.gsr_group' must have struct/union type
1>.\network_io\unix\multicast.c(169) : error C2224: left of
'.gsr_group' must have struct/union type
1>.\network_io\unix\multicast.c(169) : error C2198: 'memcpy' : too few
arguments for call
1>.\network_io\unix\multicast.c(170) : error C2224: left of
'.gsr_source' must have struct/union type
1>.\network_io\unix\multicast.c(170) : error C2224: left of
'.gsr_source' must have struct/union type
1>.\network_io\unix\multicast.c(170) : error C2198: 'memcpy' : too few
arguments for call
1>Build log was saved at "file://c:\temp\apr\LibD\BuildLog.htm"
1>apr - 8 error(s), 1 warning(s)
2>------ Build started: Project: log4cxx, Configuration: Debug Win32 ------
2>Linking...
2>LINK : fatal error LNK1181: cannot open input file '..\..\apr\libd\apr-1.lib'
2>Build log was saved at
"file://c:\temp\apache-log4cxx-0.10.0\projects\Debug\BuildLog.htm"
2>log4cxx - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 2 failed, 2 up-to-date, 0 skipped ==========
</quote>

Could there be some reason why aprlib is not compiling?

Reply via email to