logo       

Re: Can't build HEAD with MinGW: msg#00006

Subject: Re: Can't build HEAD with MinGW

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 was able to build log4cxx and run the unit tests using the MSYS 1.0.10, gcc 4.1.1 and the make build. Didn't try with gcc 3.4.2. The procedure was roughly

Install MSYS 1.0.10 and MSYSdtk-1.0.1
Install Active State Python 2.5
Download and expand expat-2.0.0 and cppunit-1.10.2
build and install expat-2.0.0 under MSYS
     cd /c/expat-2.0.0
     ./configure
     make install
build and install cppunit-1.10.2 under MSYS
     cd /c/cppunit-1.10.2
     ./configure
     make install
build and install apr SVN HEAD
     cd /c/apr
     export PATH=/c/python25:$PATH
     ./buildconf
     ./configure
     make install
build and install apr-iconv SVN HEAD (might be unnecessary)
    cd /c/apr-iconv
    ./buildconf
    ./configure --with-apr=/usr/local
    make install
build and install apr-util SVN HEAD
    cd /c/apr-util
    ./buildconf
./configure --with-apr=/usr/local --with-expat=/usr/local --with- apr-iconv=/usr/local
    make install
build log4cxx
    cd /c/log4cxx
    ./autogen.sh
./configure --with-apr=/usr/local --with-expat=/usr/local --with- apr-util=/usr/local --with-cppunit=/usr/local Edit include/log4cxx.h changing LOG4CXX_LOGCHAR_IS from UTF_8 to WCHAR
    make check









<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe