Bob,

I started with your post since the wiki article had that certain look of
"this is tested and works".  (I'll try Curt's suggestion next).

So the first 5 items built just fine, but log4cxx blewup in ./configure.
Here's the relevant piece of config.log:

configure:2460: $? = 0
configure:2462: gcc -v </dev/null >&5
Reading specs from c:/mingw/bin/../lib/gcc/mingw32/3.4.2/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as
--host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads
--disable-nls --enable-languages=c,c++,f77,ada,objc,java
--disable-win32-registry --disable-shared --enable-sjlj-exceptions
--enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm
--disable-libgcj-debug --enable-interpreter --enable-hash-synchronization
--enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.2 (mingw-special)
configure:2465: $? = 0
configure:2467: gcc -V </dev/null >&5
gcc.exe: `-V' option must have argument
configure:2470: $? = 1
configure:2494: checking for C compiler default output
configure:2497: gcc -o2 -s -mms-bitfields -march=i686   conftest.c  >&5
configure:2500: $? = 0
configure:2546: result: b.out
configure:2551: checking whether the C compiler works
configure:2557: ./b.out
./configure: ./b.out: No such file or directory
configure:2560: $? = 127
configure:2569: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.


This is also from config.log:
hostname = KKlose
uname -m = i686
uname -r = 1.0.10(0.46/3/2)
uname -s = MINGW32_NT-5.1
uname -v = 2004-03-15 07:17



Thanks,
Ken


On 5/8/07, Bob Rossi <[EMAIL PROTECTED]> wrote:

On Tue, May 08, 2007 at 12:51:24AM -0500, Curt Arnold wrote:
>
> On May 5, 2007, at 1:48 PM, Ken Klose wrote:
>
> >Curt,
> >
> >Thanks for the help.  That indeed got me further along!  I built
> >against last night's snapshot of APR, made the changes you said to
> >apr.h and got it to build.  Now I'm getting an error in the build
> >of log4cxx itself. "no type named `pos_type'" "in `struct
> >std::char_traits<wchar_t>'", "in `class
> >std::basic_ostream<localechar, std::char_traits<wchar_t> >'" and
> >"in `class std::basic_stringbuf<localechar,
> >std::char_traits<wchar_t>, std::allocator<wchar_t> >'",
> >
> >
> >Thanks,
> >Ken
> >
>
> I'm thinking that might be a gcc issue that is fixed in gcc 4.1.1.
> If you review the archives around last december, there should be a
> decent amount of MinGW discussion.  I only remembered why I had a
> MinGW gcc 4.1.1 around way late in this experiment and haven't gone
> back and checked the archives and must get sleep now, so I'm posting
> this incomplete bit of research in case it might help you.

I haven't done this, but apparently it works with g++-3.x as well.

http://wiki.apache.org/logging-log4cxx/MSWindowsBuildInstructions

Bob Rossi

Reply via email to