You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Alberto Massari (JIRA)" <xe...@xml.apache.org> on 2013/05/01 21:38:16 UTC

[jira] [Closed] (XERCESC-2009) crosscompilation fails in revision 1458655

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

Alberto Massari closed XERCESC-2009.
------------------------------------

    Resolution: Won't Fix
      Assignee: Alberto Massari

It is required to run the test program, as the function must be present AND behave as expected (i.e. set the input pointer to NULL if the conversion reached the end of the buffer)
                
> crosscompilation fails in revision 1458655
> ------------------------------------------
>
>                 Key: XERCESC-2009
>                 URL: https://issues.apache.org/jira/browse/XERCESC-2009
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.1.0, 3.1.1
>         Environment: Cross compiling for android on linux
>            Reporter: Michael
>            Assignee: Alberto Massari
>            Priority: Trivial
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> Cross compiling Xerces-c fails since the current configure.ac relies on AC_RUN_IFELSE when it checks for wcsrtombs and mbsrtowcs.
> The fix is:
> mkm@mkm:~/sandbox/build/android_external/xerces-c-trunk$ svn diff configure.ac 
> Index: configure.ac
> ===================================================================
> --- configure.ac        (revision 1458655)
> +++ configure.ac        (working copy)
> @@ -161,7 +161,7 @@
>                      ]
>                   )
>  AC_MSG_CHECKING([for wcsrtombs])
> -AC_RUN_IFELSE(  [AC_LANG_PROGRAM([[#include <wchar.h>
> +AC_COMPILE_IFELSE(  [AC_LANG_PROGRAM([[#include <wchar.h>
>  #include <string.h>]],
>                                   [[
>  mbstate_t st;
> @@ -183,7 +183,7 @@
>                      ]
>                   )
>  AC_MSG_CHECKING([for mbsrtowcs])
> -AC_RUN_IFELSE(  [AC_LANG_PROGRAM([[#include <wchar.h>
> +AC_COMPILE_IFELSE(  [AC_LANG_PROGRAM([[#include <wchar.h>
>  #include <string.h>]],
>                                   [[
>  mbstate_t st;
> Best regards, Michael

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org