[ 
https://issues.apache.org/jira/browse/LOGCXX-313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thorsten Schöning resolved LOGCXX-313.
--------------------------------------

    Resolution: Fixed

I fixed this by removing the !defined(...) because the definiton of APRCharset* 
only depends on APR_HAS_XLATE.

> Build process fails in case of absence of iconv support in apr-util
> -------------------------------------------------------------------
>
>                 Key: LOGCXX-313
>                 URL: https://issues.apache.org/jira/browse/LOGCXX-313
>             Project: Log4cxx
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 0.10.0
>         Environment: apr-1.3.0, apr-util-1.3.0,
> gcc -v:
> Using built-in specs.
> Target: ia64-hp-hpux11.23
> Configured with: /tmp/gcc-4.3.1.tar.gz/gcc-4.3.1/configure 
> --host=ia64-hp-hpux11.23 --target=ia64-hp-hpux11.23 --build=ia64-hp-hpux11.23 
> --prefix=/opt/hp-gcc-4.3.1 --with-gnu-as --without-gnu-ld 
> --with-ld=/usr/ccs/bin/ld --enable-threads=posix --enable-languages=c,c++ 
> --with-gmp=/proj/opensrc/be/ia64-hp-hpux11.23 
> --with-mpfr=/proj/opensrc/be/ia64-hp-hpux11.23
> Thread model: posix
> gcc version 4.3.1 (GCC)
>            Reporter: Aleksandr Vinokurov
>            Assignee: Curt Arnold
>
> Class APRCharsetDecoder is defined in src/main/cpp/charsetdecoder.cpp in case 
> of APR_HAS_XLATE != 0 definition (in apr-util: apu.h), while on line 480 we 
> see this usage:
> #if APR_HAS_XLATE || !defined(_WIN32)
>     return new APRCharsetDecoder(charset);
> #else
>     throw IllegalArgumentException(charset);
> #endif
> So we have a not win32 platform and we have APR_HAS_XLATE == 0, this way we 
> have not defined APRCharsetDecoder class but still use it!
> And there are some more files with such issues.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to