logo       

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

Subject: Re: Can't build HEAD with MinGW
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
 
Complete cutput from ANT
 

C:\c++\log4cxx\trunk>ant -Dcompiler=gcc
Buildfile: build.xml

os-detect:

win-init:

mac-init:

unix-init:

init:

build-apr:

get-apr-src:

untar-apr-src:

os-detect:

win-init:

unix-init:

init:

configure-check:

unix-configure:

win-configure:

configure:

build:
       [cc] Starting dependency analysis for 57 files.
       [cc] 0 files are up to date.
       [cc] 57 files to be recompiled from dependency analysis.
       [cc] 66 total files to be compiled.
       [cc] C:\c++\log4cxx\trunk\lib\apr-1.2.8\misc\win32\start.c: In function `
warrsztoastr':
       [cc] C:\c++\log4cxx\trunk\lib\apr-1.2.8\misc\win32\start.c:86: warning: a
ssignment from incompatible pointer type
       [cc] C:\c++\log4cxx\trunk\lib\apr-1.2.8\misc\win32\start.c: In function `
apr_app_initialize':
       [cc] C:\c++\log4cxx\trunk\lib\apr-1.2.8\misc\win32\start.c:121: warning:
passing arg 2 of `apr_wastrtoastr' from incompatible pointer type
       [cc] C:\c++\log4cxx\trunk\lib\apr-1.2.8\misc\win32\start.c:127: warning:
passing arg 1 of `warrsztoastr' from incompatible pointer type
       [cc] C:\c++\log4cxx\trunk\lib\apr-1.2.8\misc\win32\internal.c: In functio
n `apr_wastrtoastr':
       [cc] C:\c++\log4cxx\trunk\lib\apr-1.2.8\misc\win32\internal.c:99: warning
: assignment from incompatible pointer type
       [cc] Starting link
       [cc] a - apr_obj\filestat.o
       [cc] a - apr_obj\signals.o
       [cc] a - apr_obj\fullrw.o
       [cc] a - apr_obj\apr_cpystrn.o
       [cc] a - apr_obj\sockaddr.o
       [cc] a - apr_obj\charset.o
       [cc] a - apr_obj\version.o
       [cc] a - apr_obj\sendrecv.o
       [cc] a - apr_obj\filepath_util.o
       [cc] a - apr_obj\proc_mutex.o
       [cc] a - apr_obj\apr_pools.o
       [cc] a - apr_obj\start.o
       [cc] a - apr_obj\apr_atomic.o
       [cc] a - apr_obj\thread_mutex.o
       [cc] a - apr_obj\apr_tables.o
       [cc] a - apr_obj\common.o
       [cc] a - apr_obj\rand.o
       [cc] a - apr_obj\groupinfo.o
       [cc] a - apr_obj\apr_snprintf.o
       [cc] a - apr_obj\timestr.o
       [cc] a - apr_obj\apr_strtok.o
       [cc] a - apr_obj\apr_strnatcmp.o
       [cc] a - apr_obj\threadpriv.o
       [cc] a - apr_obj\readwrite.o
       [cc] a - apr_obj\open.o
       [cc] a - apr_obj\seek.o
       [cc] a - apr_obj\getopt.o
       [cc] a - apr_obj\internal.o
       [cc] a - apr_obj\env.o
       [cc] a - apr_obj\copy.o
       [cc] a - apr_obj\mmap.o
       [cc] a - apr_obj\utf8.o
       [cc] a - apr_obj\shm.o
       [cc] a - apr_obj\thread.o
       [cc] a - apr_obj\buffer.o
       [cc] a - apr_obj\thread_rwlock.o
       [cc] a - apr_obj\select.o
       [cc] a - apr_obj\flock.o
       [cc] a - apr_obj\filedup.o
       [cc] a - apr_obj\time.o
       [cc] a - apr_obj\errorcodes.o
       [cc] a - apr_obj\thread_cond.o
       [cc] a - apr_obj\inet_ntop.o
       [cc] a - apr_obj\apr_hash.o
       [cc] ar: creating libapr-1d.a
       [cc] a - apr_obj\userinfo.o
       [cc] a - apr_obj\dso.o
       [cc] a - apr_obj\sockopt.o
       [cc] a - apr_obj\filesys.o
       [cc] a - apr_obj\sockets.o
       [cc] a - apr_obj\dir.o
       [cc] a - apr_obj\sha2.o
       [cc] a - apr_obj\apr_fnmatch.o
       [cc] a - apr_obj\apr_random.o
       [cc] a - apr_obj\pipe.o
       [cc] a - apr_obj\misc.o
       [cc] a - apr_obj\filepath.o
       [cc] a - apr_obj\proc.o
       [cc] a - apr_obj\fileacc.o
       [cc] a - apr_obj\access.o
       [cc] a - apr_obj\mktemp.o
       [cc] a - apr_obj\tempdir.o
       [cc] a - apr_obj\waitio.o
       [cc] a - apr_obj\inet_pton.o
       [cc] a - apr_obj\sha2_glue.o
       [cc] a - apr_obj\otherchild.o
       [cc] a - apr_obj\apr_strings.o

build-aprutil:

get-aprutil-src:

get-apr-module:
      [get] Getting: http://archive.apache.org/dist/apr/apr-util-1.2.8.tar.gz
      [get] To: C:\c++\log4cxx\trunk\lib\apr-util-1.2.8.tar.gz
      [get] Getting: http://archive.apache.org/dist/apr/apr-util-1.2.8.tar.gz.as
c
      [get] To: C:\c++\log4cxx\trunk\lib\apr-util-1.2.8.tar.gz.asc
     [exec] Execute failed: java.io.IOException: CreateProcess: gpg --verify apr
-util-1.2.8.tar.gz.asc error=2
    [untar] Expanding: C:\c++\log4cxx\trunk\lib\apr-util-1.2.8.tar.gz into C:\c+
+\log4cxx\trunk\lib

untar-aprutil-src:

untar-apr-module:
    [untar] Expanding: C:\c++\log4cxx\trunk\lib\apr-util-1.2.8.tar.gz into C:\c+
+\log4cxx\trunk\lib

os-detect:

win-init:

unix-init:

init:

configure-check:

unix-configure:

win-configure:
     [copy] Copying 1 file to C:\c++\log4cxx\trunk\lib\apr-util-1.2.8\include
     [copy] Copying 1 file to C:\c++\log4cxx\trunk\lib\apr-util-1.2.8\include
     [copy] Copying 1 file to C:\c++\log4cxx\trunk\lib\apr- util-1.2.8\include
     [copy] Copying 1 file to C:\c++\log4cxx\trunk\lib\apr-util-1.2.8\include\pr
ivate
     [copy] Copying 1 file to C:\c++\log4cxx\trunk\lib\apr-util-1.2.8\include\pr
ivate
     [copy] Copying 1 file to C:\c++\log4cxx\trunk\lib\apr- util-1.2.8\xml\expat\
lib
     [copy] Copying 1 file to C:\c++\log4cxx\trunk\lib\apr-util-1.2.8\xml\expat\
lib

configure:

build:
    [mkdir] Created dir: C:\c++\log4cxx\trunk\build\debug\static\aprutil_obj
       [cc] 45 total files to be compiled.
       [cc] Starting link
       [cc] a - aprutil_obj\sdbm_hash.o
       [cc] a - aprutil_obj\apu_version.o
       [cc] a - aprutil_obj\getuuid.o
       [cc] a - aprutil_obj\apr_buckets_mmap.o
       [cc] a - aprutil_obj\apr_buckets_file.o
       [cc] a - aprutil_obj\apr_dbd.o
       [cc] a - aprutil_obj\sdbm_pair.o
       [cc] ar: creating libaprutil-1d.a
       [cc] a - aprutil_obj\xlate.o
       [cc] a - aprutil_obj\apr_xml.o
       [cc] a - aprutil_obj\apr_buckets_alloc.o
       [cc] a - aprutil_obj\apr_buckets_eos.o
       [cc] a - aprutil_obj\xmltok.o
       [cc] a - aprutil_obj\uuid.o
       [cc] a - aprutil_obj\apr_buckets_pool.o
       [cc] a - aprutil_obj\apr_base64.o
       [cc] a - aprutil_obj\sdbm.o
       [cc] a - aprutil_obj\apr_buckets_simple.o
       [cc] a - aprutil_obj\apr_buckets_pipe.o
       [cc] a - aprutil_obj\apr_date.o
       [cc] a - aprutil_obj\apr_dbm.o
       [cc] a - aprutil_obj\apr_reslist.o
       [cc] a - aprutil_obj\apr_rmm.o
       [cc] a - aprutil_obj\apr_hooks.o
       [cc] a - aprutil_obj\apr_sha1.o
       [cc] a - aprutil_obj\apr_buckets_flush.o
       [cc] a - aprutil_obj\apr_strmatch.o
       [cc] a - aprutil_obj\apr_dbm_berkeleydb.o
       [cc] a - aprutil_obj\apr_brigade.o
       [cc] a - aprutil_obj\apr_dbm_ndbm.o
       [cc] a - aprutil_obj\xmlparse.o
       [cc] a - aprutil_obj\apr_uri.o
       [cc] a - aprutil_obj\apr_queue.o
       [cc] a - aprutil_obj\apr_dbm_gdbm.o
       [cc] a - aprutil_obj\xmlrole.o
       [cc] a - aprutil_obj\apr_dbd_pgsql.o
       [cc] a - aprutil_obj\apr_buckets_socket.o
       [cc] a - aprutil_obj\apr_buckets_refcount.o
       [cc] a - aprutil_obj\sdbm_lock.o
       [cc] a - aprutil_obj\apr_dbd_sqlite2.o
       [cc] a - aprutil_obj\apr_buckets.o
       [cc] a - aprutil_obj\apr_md4.o
       [cc] a - aprutil_obj\apr_dbd_sqlite3.o
       [cc] a - aprutil_obj\apr_buckets_heap.o
       [cc] a - aprutil_obj\apr_md5.o
       [cc] a - aprutil_obj\apr_dbm_sdbm.o

config-check:

unix-configure:

win-configure:
     [copy] Copying 1 file to C:\c++\log4cxx\trunk\include\log4cxx
     [copy] Copying 1 file to C:\c++\log4cxx\trunk\include\log4cxx\private

configure:
     [echo] Configuring with has.wchar_t=1
     [echo] Configuring with logchar_type=wchar_t

build:
    [mkdir] Created dir: C:\c++\log4cxx\trunk\build\debug\shared\log4cxx_obj
       [cc] 144 total files to be compiled.
       [cc] In file included from C:\c++\log4cxx\trunk\src\optionconverter.cpp:3
9:
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:57:1:
 warning: "LOG4CXX_HAS_STD_WLOCALE" redefined
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:51:1:
 warning: this is the location of the previous definition
       [cc] In file included from C:\c++\log4cxx\trunk\src\charsetdecoder.cpp:26
:
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:57:1:
 warning: "LOG4CXX_HAS_STD_WLOCALE" redefined
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:51:1:
 warning: this is the location of the previous definition
       [cc] In file included from C:\c++\log4cxx\trunk\src\systemoutwriter.cpp:2
2:
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:57:1:
 warning: "LOG4CXX_HAS_STD_WLOCALE" redefined
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:51:1:
 warning: this is the location of the previous definition
       [cc] In file included from C:\c++\log4cxx\trunk\src\simpledateformat.cpp:
26:
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:57:1:
 warning: "LOG4CXX_HAS_STD_WLOCALE" redefined
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:51:1:
 warning: this is the location of the previous definition
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
bits/basic_ios.h: In instantiation of `std::basic_ios<localechar, std::char_trai
ts<wchar_t> >':
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
ostream:59:   instantiated from `std::basic_ostream<localechar, std::char_traits
<wchar_t> >'
       [cc] C:\c++\log4cxx\trunk\src\simpledateformat.cpp:75:   instantiated fro
m here
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
bits/basic_ios.h:67: error: no type named `pos_type' in `struct std::char_traits
<wchar_t>'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
ostream: In instantiation of `std::basic_ostream<localechar, std::char_traits<wc
har_t> >':
       [cc] C:\c++\log4cxx\trunk\src\simpledateformat.cpp:75:   instantiated fro
m here
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
ostream:64: error: no type named `pos_type' in `struct std::char_traits<wchar_t>
'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
bits/ostream.tcc:404: error: no type named `pos_type' in `class std::basic_ostre
am<localechar, std::char_traits<wchar_t> >'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
bits/ostream.tcc:420: error: no type named `pos_type' in `struct std::char_trait
s<wchar_t>'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
sstream: In instantiation of `std::basic_ostringstream<localechar, std::char_tra
its<wchar_t>, std::allocator<wchar_t> >':
       [cc] C:\c++\log4cxx\trunk\src\simpledateformat.cpp:275:   instantiated fr
om here
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
sstream:429: error: no type named `pos_type' in `struct std::char_traits<wchar_t
>'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
streambuf: In instantiation of `std::basic_streambuf<localechar, std::char_trait
s<wchar_t> >':
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
sstream:64:   instantiated from `std::basic_stringbuf<localechar, std::char_trai
ts<wchar_t>, std::allocator<wchar_t> >'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
sstream:443:   instantiated from `std::basic_ostringstream<localechar, std::char
_traits<wchar_t>, std::allocator<wchar_t> >'
       [cc] C:\c++\log4cxx\trunk\src\simpledateformat.cpp:275:   instantiated fr
om here
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
streambuf:135: error: no type named `pos_type' in `struct std::char_traits<wchar
_t>'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
streambuf:234: error: no type named `pos_type' in `struct std::char_traits<wchar
_t>'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
streambuf:239: error: no type named `pos_type' in `struct std::char_traits<wchar
_t>'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
streambuf:574: error: no type named `pos_type' in `struct std::char_traits<wchar
_t>'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
streambuf:586: error: no type named `pos_type' in `struct std::char_traits<wchar
_t>'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
sstream: In instantiation of `std::basic_stringbuf<localechar, std::char_traits<
wchar_t>, std::allocator<wchar_t> >':
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
sstream:443:   instantiated from `std::basic_ostringstream<localechar, std::char
_traits<wchar_t>, std::allocator<wchar_t> >'
       [cc] C:\c++\log4cxx\trunk\src\simpledateformat.cpp:275:   instantiated fr
om here
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
sstream:73: error: no type named `pos_type' in `struct std::char_traits<wchar_t>
'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
bits/sstream.tcc:136: error: no type named `pos_type' in `class std::basic_strin
gbuf<localechar, std::char_traits<wchar_t>, std::allocator<wchar_t> >'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
bits/sstream.tcc:182: error: no type named `pos_type' in `class std::basic_strin
gbuf<localechar, std::char_traits<wchar_t>, std::allocator<wchar_t> >'
       [cc] In file included from C:\c++\log4cxx\trunk\src\propertyresourcebundl
e.cpp:20:
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:57:1:
 warning: "LOG4CXX_HAS_STD_WLOCALE" redefined
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:51:1:
 warning: this is the location of the previous definition
       [cc] In file included from C:\c++\log4cxx\trunk\src\systemerrwriter.cpp:2
2:
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:57:1:
 warning: "LOG4CXX_HAS_STD_WLOCALE" redefined
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:51:1:
 warning: this is the location of the previous definition
       [cc] In file included from C:\c++\log4cxx\trunk\src\stringhelper.cpp:26:
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:57:1:
 warning: "LOG4CXX_HAS_STD_WLOCALE" redefined
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:51:1:
 warning: this is the location of the previous definition
       [cc] In file included from C:\c++\log4cxx\trunk\src\charsetencoder.cpp:24
:
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:57:1:
 warning: "LOG4CXX_HAS_STD_WLOCALE" redefined
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:51:1:
 warning: this is the location of the previous definition
       [cc] In file included from C:\c++\log4cxx\trunk\src\domconfigurator.cpp:1
9:
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:57:1:
 warning: "LOG4CXX_HAS_STD_WLOCALE" redefined
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:51:1:
 warning: this is the location of the previous definition
       [cc] In file included from C:\c++\log4cxx\trunk\src\syslogappender.cpp:25
:
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:57:1:
 warning: "LOG4CXX_HAS_STD_WLOCALE" redefined
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:51:1:
 warning: this is the location of the previous definition
       [cc] In file included from C:\c++\log4cxx\trunk\src\smtpappender.cpp:18:
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:57:1:
 warning: "LOG4CXX_HAS_STD_WLOCALE" redefined
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:51:1:
 warning: this is the location of the previous definition
       [cc] In file included from C:\c++\log4cxx\trunk\src\stringtokenizer.cpp:2
1:
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:57:1:
 warning: "LOG4CXX_HAS_STD_WLOCALE" redefined
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:51:1:
 warning: this is the location of the previous definition
       [cc] In file included from C:\c++\log4cxx\trunk\src\logger.cpp:33:
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:57:1:
 warning: "LOG4CXX_HAS_STD_WLOCALE" redefined
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:51:1:
 warning: this is the location of the previous definition
       [cc] In file included from C:\c++\log4cxx\trunk\src\loglog.cpp:22:
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:57:1:
 warning: "LOG4CXX_HAS_STD_WLOCALE" redefined
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:51:1:
 warning: this is the location of the previous definition
       [cc] C:\c++\log4cxx\trunk\src\loglog.cpp: In static member function `stat
ic void log4cxx::helpers::LogLog::emit(const std::wstring&)':
       [cc] C:\c++\log4cxx\trunk\src\loglog.cpp:90: error: `wcerr' is not a memb
er of `std'
       [cc] In file included from C:\c++\log4cxx\trunk\src\class.cpp:24:
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:57:1:
 warning: "LOG4CXX_HAS_STD_WLOCALE" redefined
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/private/log4cxx_private.h:51:1:
 warning: this is the location of the previous definition
       [cc] In file included from C:\c++\log4cxx\trunk\src\logstream.cpp:19:
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
bits/basic_ios.h: In instantiation of `std::basic_ios<log4cxx::logstream_char, s
td::char_traits<wchar_t> >':
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/stream.h:37:   instantiated fro
m here
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
bits/basic_ios.h:67: error: no type named `pos_type' in `struct std::char_traits
<wchar_t>'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
ostream: In instantiation of `std::basic_ostream<log4cxx::logstream_char, std::c
har_traits<wchar_t> >':
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
sstream:420:   instantiated from `std::basic_ostringstream<log4cxx::logstream_ch
ar, std::char_traits<wchar_t>, std::allocator<wchar_t> >'
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/stream.h:81:   instantiated fro
m here
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
ostream:64: error: no type named `pos_type' in `struct std::char_traits<wchar_t>
'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
bits/ostream.tcc:404: error: no type named `pos_type' in `class std::basic_ostre
am<log4cxx::logstream_char, std::char_traits<wchar_t> >'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
bits/ostream.tcc:420: error: no type named `pos_type' in `struct std::char_trait
s<wchar_t>'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
sstream: In instantiation of `std::basic_ostringstream<log4cxx::logstream_char,
std::char_traits<wchar_t>, std::allocator<wchar_t> >':
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/stream.h:81:   instantiated fro
m here
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
sstream:429: error: no type named `pos_type' in `struct std::char_traits<wchar_t
>'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
streambuf: In instantiation of `std::basic_streambuf<log4cxx::logstream_char, st
d::char_traits<wchar_t> >':
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
sstream:64:   instantiated from `std::basic_stringbuf<log4cxx::logstream_char, s
td::char_traits<wchar_t>, std::allocator<wchar_t> >'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
sstream:443:   instantiated from `std::basic_ostringstream<log4cxx::logstream_ch
ar, std::char_traits<wchar_t>, std::allocator<wchar_t> >'
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/stream.h:81:   instantiated fro
m here
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
streambuf:135: error: no type named `pos_type' in `struct std::char_traits<wchar
_t>'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
streambuf:234: error: no type named `pos_type' in `struct std::char_traits<wchar
_t>'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
streambuf:239: error: no type named `pos_type' in `struct std::char_traits<wchar
_t>'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
streambuf:574: error: no type named `pos_type' in `struct std::char_traits<wchar
_t>'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
streambuf:586: error: no type named `pos_type' in `struct std::char_traits<wchar
_t>'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
sstream: In instantiation of `std::basic_stringbuf<log4cxx::logstream_char, std:
:char_traits<wchar_t>, std::allocator<wchar_t> >':
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
sstream:443:   instantiated from `std::basic_ostringstream<log4cxx::logstream_ch
ar, std::char_traits<wchar_t>, std::allocator<wchar_t> >'
       [cc] C:/c++/log4cxx/trunk/include/log4cxx/stream.h:81:   instantiated fro
m here
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
sstream:73: error: no type named `pos_type' in `struct std::char_traits<wchar_t>
'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
bits/sstream.tcc:136: error: no type named `pos_type' in `class std::basic_strin
gbuf<log4cxx::logstream_char, std::char_traits<wchar_t>, std::allocator<wchar_t>
 >'
       [cc] c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/
bits/sstream.tcc:182: error: no type named `pos_type' in `class std::basic_strin
gbuf<log4cxx::logstream_char, std::char_traits<wchar_t>, std::allocator<wchar_t>
 >'

BUILD FAILED
C:\c++\log4cxx\trunk\build.xml:724: gcc failed with return code 1

Total time: 2 minutes 5 seconds


 
On 5/5/07, Curt Arnold <carnold@xxxxxxxxxx> wrote:

On May 4, 2007, at 11:07 PM, Ken Klose wrote:

> I checked out the HEAD from the repository and am trying to build
> it using the ant build script.  I am getting tons of compiler
> errors, below is just a sample.
>
> Thanks in advance for your help.
>

Those are actually build errors in Apache Portable Runtime, not
log4cxx.  There was a quite a bit of work on APR to allow it to build
with MinGW, but that came after the version we are using.  If you can
drop in a later version of APR in the the lib directory and change
the apr version in build.xml, you may get closer.  First run it and
let it fail.  Then make a manual change to include/apr.h on the
APR_INT64_C and APR_UINT64_C from ##i64 and ##ui64 to ##LL and
##ULL.  I'm going to be out of touch this weekend and have some
uncommitted stuff that will help if you haven't muddled through by then.



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

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
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