[ http://nagoya.apache.org/jira/browse/XERCESC-1017?page=history ]

Alberto Massari updated XERCESC-1017:
-------------------------------------

    Priority: Major

> Samples will not run when built on Cygwin with ICU
> --------------------------------------------------
>
>          Key: XERCESC-1017
>          URL: http://nagoya.apache.org/jira/browse/XERCESC-1017
>      Project: Xerces-C++
>         Type: Bug
>   Components: Build
>     Versions: Nightly build (please specify the date)
>  Environment: Operating System: Windows NT/2K
> Platform: PC
>     Reporter: RYO TAKAGI
>     Assignee: Xerces-C Developers Mailing List

>
> Trying to build Xerces-C++ 20030930 on Cygwin (Windows 2000) with
> ICU 2.6.1 (or actually any version of ICU >= 2.4), I did:
> (1) Modify src/xercesc/util/AutoSense.hpp as follows. This was
> necessary because otherwise ICU header file "umachine.h" will
> try to look for pwin32.h instead of platform.h, causing an error.
> *** src/xercesc/util/AutoSense.hpp.1~ Wed May 21 23:34:04 2003
> --- src/xercesc/util/AutoSense.hpp    Tue Sep 30 09:45:26 2003
> ***************
> *** 242,250 ****
> --- 242,252 ----
>       #define XML_CSET
>   #elif defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__)
>       #define XML_WIN32
> + /*
>       #ifndef WIN32
>         #define WIN32
>       #endif
> +  */
>   #elif defined(__WINDOWS__)
>   
>       // IBM VisualAge special handling
> (2) Modify src/xercesc/Makefile.incl as follows. This is necessary
> because otherwise the compilation stops with "no such library"
> error.
> *** src/xercesc/Makefile.incl.1~      Wed Aug 20 11:15:30 2003
> --- src/xercesc/Makefile.incl Tue Sep 30 10:15:57 2003
> ***************
> *** 197,203 ****
>       MAKE_SHARED_C = ${CC} -D${PLATFORM} -belf -G ${LDFLAGS}
>     endif
>     ifeq (${TRANSCODER}, ICU)
> !     ALLLIBS = ${LIBS} -licu-uc -licudata
>     else
>       ALLLIBS = ${LIBS}
>     endif
> --- 197,203 ----
>       MAKE_SHARED_C = ${CC} -D${PLATFORM} -belf -G ${LDFLAGS}
>     endif
>     ifeq (${TRANSCODER}, ICU)
> !     ALLLIBS = ${LIBS} -licuuc -licudata
>     else
>       ALLLIBS = ${LIBS}
>     endif
> ***************
> *** 559,565 ****
>       MAKE_SHARED = ${CXX} -D${PLATFORM} -dynamiclib ${LDFLAGS}
>       MAKE_SHARED_C = ${CC} -D${PLATFORM} -dynamiclib ${LDFLAGS}
>       ifeq (${TRANSCODER}, ICU)
> !         ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib -licu-
> uc -licud ata -lc
>       else
>           ALLLIBS = ${LIBS} -L/usr/lib
>       endif
> --- 559,565 ----
>       MAKE_SHARED = ${CXX} -D${PLATFORM} -dynamiclib ${LDFLAGS}
>       MAKE_SHARED_C = ${CC} -D${PLATFORM} -dynamiclib ${LDFLAGS}
>       ifeq (${TRANSCODER}, ICU)
> !         ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib -licuuc -
> licud ata -lc
>       else
>           ALLLIBS = ${LIBS} -L/usr/lib
>       endif
> ***************
> *** 576,582 ****
>         MAKE_SHARED = ${CXX} -shared ${LDFLAGS}
>         MAKE_SHARED_C = ${CC} -shared ${LDFLAGS}
>         ifeq (${TRANSCODER}, ICU)
> !               ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib -
> licu-uc -licudata -lc
>         else
>                 ALLLIBS = ${LIBS} -L/usr/lib
>         endif
> --- 576,582 ----
>         MAKE_SHARED = ${CXX} -shared ${LDFLAGS}
>         MAKE_SHARED_C = ${CC} -shared ${LDFLAGS}
>         ifeq (${TRANSCODER}, ICU)
> !               ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib -
> licuuc -licudata -lc
>         else
>                 ALLLIBS = ${LIBS} -L/usr/lib
>         endif
> (3) export ICUROOT=/usr/local
> (4) export XERCESCROOT=/foo
> (5) cd /foo/src/xercesc
> (6) ./runConfigure -p cygwin -c gcc -x g++ -l "-L/usr/local/bin"
>  (ICU was configured as: ./runConfigureICU CygWin --libdir=/usr/local/bin)
> (7) make
> (8) make install
> (9) cd /foo/samples
> (10) ./runConfigure -p cygwin -c gcc -x g++
> (11) make
> Then, if I try to run any of the binary executables
> that were created in /foo/bin directory will open a warning
> window, saying:
> "The application failed to initialize properly (0xc0000022).
>  Click on OK to terminate the application."
> No patch available.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to