Failed to create Log4cxx-0.10.0 on Mac OS X Yosemite 10.10.3

I am trying to create Log4cxx-0.10.0 on Mac OS X Yosemite (Xcode 6.3.1).

I ran

cd thirdparty/apr-1.4.6/
CC="gcc -m32" ./configure
make
cd thirdparty/apr-util-1.5.2/
CC="gcc -m32" ./configure --with-apr=../apr-1.4.6/ --without-ldap
make
sudo make install
cd thirdparty/apache-log4cxx-0.10.0
CXX="g++ -m32" CC="gcc -m32" ./configure --with-apr=../apr-1.4.6/ --with-apr-util=../apr-util-1.5.2/

      

successful, but when i run

make

      

to install Log4cxx I got the error:

../../../src/main/include/log4cxx/helpers/simpledateformat.h:56:73: error: 
      reference to 'locale' is ambiguous
  ...SimpleDateFormat(const LogString& pattern, const std::locale* locale);
                                                           ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:55:24: note: 
      candidate found by name lookup is 'std::__1::locale'
class _LIBCPP_TYPE_VIS locale
                       ^
../../../src/main/include/log4cxx/helpers/simpledateformat.h:32:23: note: 
      candidate found by name lookup is 'std::locale'
namespace std { class locale; }
                      ^
../../../src/main/include/log4cxx/helpers/simpledateformat.h:82:89: error: 
      reference to 'locale' is ambiguous
  ...addToken(const logchar spec, const int repeat, const std::locale* locale...
                                                               ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:55:24: note: 
      candidate found by name lookup is 'std::__1::locale'
class _LIBCPP_TYPE_VIS locale
                       ^
../../../src/main/include/log4cxx/helpers/simpledateformat.h:32:23: note: 
      candidate found by name lookup is 'std::locale'
namespace std { class locale; }
                      ^
../../../src/main/include/log4cxx/helpers/simpledateformat.h:83:78: error: 
      reference to 'locale' is ambiguous
  ...static void parsePattern(const LogString& spec, const std::locale* local...
                                                                ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:55:24: note: 
      candidate found by name lookup is 'std::__1::locale'
class _LIBCPP_TYPE_VIS locale
                       ^
../../../src/main/include/log4cxx/helpers/simpledateformat.h:32:23: note: 
      candidate found by name lookup is 'std::locale'
namespace std { class locale; }
                      ^
3 errors generated.
make[3]: *** [class.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

      

Does anyone know what I can do to make it work? Thank!

+3


source to share





All Articles