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

Robert Hillier updated XALANC-737:
----------------------------------

    Description: 
I am trying to build xalan-c on a Solaris environment using gcc 2.3.2.  
xerces-c 3.1.1 has built successfully.  I am configuring and building as 
follows:

./runConfigure -p solaris -c gcc -x g++ 
gmake install

It seems that the LocalMsgIndex.cpp is not being generated automatically during 
the build.  I tried creating it manually, but the only xml file I could find 
was in the Visual C++ directories.  i tried using this to create 
LocalMsgIndex.cpp manually, but get the following error when I build:

<myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp: In
   static member function `static void 
   xalanc_1_11::ProblemListenerBase::defaultFormat(xalanc_1_11::PrintWriter&, 
   xalanc_1_11::ProblemListenerBase::eSource, 
   xalanc_1_11::ProblemListenerBase::eClassification, const 
   xalanc_1_11::XalanDOMString&, const xercesc_3_1::Locator*, const 
   xalanc_1_11::XalanNode*)':
<myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp:94: `
   SourceTreeNode_1Param' is not a member of type `xalanc_1_11::XalanMessages'
<myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp: In
   static member function `static void 
   xalanc_1_11::ProblemListenerBase::defaultFormat(xalanc_1_11::PrintWriter&, 
   xalanc_1_11::ProblemListenerBase::eSource, 
   xalanc_1_11::ProblemListenerBase::eClassification, const 
   xalanc_1_11::XalanDOMString&, const xalanc_1_11::XalanNode*)':
<myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp:127: 
`
   SourceTreeNode_1Param' is not a member of type `xalanc_1_11::XalanMessages'
<myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp: At
   global scope:
<myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp:137: 
`
   XMLMessage' is not a member of type `xalanc_1_11::XalanMessages'
<myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp:138: 
`
   XMLWarning' is not a member of type `xalanc_1_11::XalanMessages'
<myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp:139: 
`
   XMLError' is not a member of type `xalanc_1_11::XalanMessages'
<myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp:142: 
`
   XSLTMessage' is not a member of type `xalanc_1_11::XalanMessages'
<myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp:143: 
`
   XSLTWarning' is not a member of type `xalanc_1_11::XalanMessages'
<myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp:144: 
`
   XSLTError' is not a member of type `xalanc_1_11::XalanMessages'
<myPath>/xalan/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp:147:
 `
   XPathMessage' is not a member of type `xalanc_1_11::XalanMessages'
<myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp:148: 
`
   XPathWarning' is not a member of type `xalanc_1_11::XalanMessages'
<myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp:149: 
`
   XPathError' is not a member of type `xalanc_1_11::XalanMessages'
gmake[1]: *** [../../obj/ProblemListenerBase.o] Error 1
gmake[1]: Leaving directory `<myPath>/xalan-c-1.11/c/src/xalanc'
gmake: *** [install] Error 2


Where <myPath> is my installation and build directory.

Any help would be much appreciated.

  was:
I am trying to build xalan-c on a Solaris environment using gcc 2.3.2.  
xerces-c 3.1.1 has built successfully.  I am configuring and building as 
follows:

./runConfigure -p solaris -c gcc -x g++ 
gmake install

The build fails with the followign error:

g++ -O -DNDEBUG  -pthreads -D_REENTRANT   -fno-elide-constructors -Wall -fPIC 
-DSOLARIS -D_REENTRANT -DXALAN_NLS_MSG_LOADER -c -I<myPath>/xalan-c-1.11/c/src 
-I<myPath/xalan-c-1.11/c/include -I../../nls/include -I<myPath>/src/ 
-I<myPath>/include/xercesc -I<myPath>/include/  -o 
../../obj/XalanNLSMessageLoader.o 
<myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp
<myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp:91:
 syntax
   error before `*' token
<myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp:93:
 prototype
   for `bool xalanc_1_11::XalanNLSMessageLoader::loadMsg(...)' does not match 
   any in class `xalanc_1_11::XalanNLSMessageLoader'
<myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/XalanNLSMessageLoader.hpp:50:
 candidate
    is: virtual bool 
   
xalanc_1_11::XalanNLSMessageLoader::loadMsg(xalanc_1_11::XalanMessages::Codes,
   XalanDOMChar*, unsigned int)
<myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp: In
   member function `bool xalanc_1_11::XalanNLSMessageLoader::loadMsg(...)':
<myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp:97:
 `
   toFill' undeclared (first use this function)
<myPath>/xalan/xalan-c-1.11/c/src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp:97:
 (Each
   undeclared identifier is reported only once for each function it appears 
   in.)
<myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp:97:
 `
   maxChars' undeclared (first use this function)
<myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp:102:
 invalid
   static_cast from type `_nl_catd_struct*' to type `int'
<myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp:118:
 `
   msgToLoad' undeclared (first use this function)
gmake[2]: *** [../../obj/XalanNLSMessageLoader.o] Error 1
gmake[2]: Leaving directory `<myPath>/xalan-c-1.11/c/src/xalanc'
gmake[1]: *** [install] Error 2
gmake[1]: Leaving directory `<myPath>/xalan-c-1.11/c'
gmake: *** [install] Error 2

Where <myPath is my installation and build directory.

Any help would be much appreciated.

    
> Xalan-C fails to build on Solaris
> ---------------------------------
>
>                 Key: XALANC-737
>                 URL: https://issues.apache.org/jira/browse/XALANC-737
>             Project: XalanC
>          Issue Type: Bug
>          Components: XalanC
>    Affects Versions: 1.11
>         Environment: Solaris 10u10
> gcc-2.3.2
> xerces-c 3.1.1
>            Reporter: Robert Hillier
>            Assignee: Steven J. Hathaway
>              Labels: build, newbie
>
> I am trying to build xalan-c on a Solaris environment using gcc 2.3.2.  
> xerces-c 3.1.1 has built successfully.  I am configuring and building as 
> follows:
> ./runConfigure -p solaris -c gcc -x g++ 
> gmake install
> It seems that the LocalMsgIndex.cpp is not being generated automatically 
> during the build.  I tried creating it manually, but the only xml file I 
> could find was in the Visual C++ directories.  i tried using this to create 
> LocalMsgIndex.cpp manually, but get the following error when I build:
> <myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp: In
>    static member function `static void 
>    xalanc_1_11::ProblemListenerBase::defaultFormat(xalanc_1_11::PrintWriter&, 
>    xalanc_1_11::ProblemListenerBase::eSource, 
>    xalanc_1_11::ProblemListenerBase::eClassification, const 
>    xalanc_1_11::XalanDOMString&, const xercesc_3_1::Locator*, const 
>    xalanc_1_11::XalanNode*)':
> <myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp:94:
>  `
>    SourceTreeNode_1Param' is not a member of type `xalanc_1_11::XalanMessages'
> <myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp: In
>    static member function `static void 
>    xalanc_1_11::ProblemListenerBase::defaultFormat(xalanc_1_11::PrintWriter&, 
>    xalanc_1_11::ProblemListenerBase::eSource, 
>    xalanc_1_11::ProblemListenerBase::eClassification, const 
>    xalanc_1_11::XalanDOMString&, const xalanc_1_11::XalanNode*)':
> <myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp:127:
>  `
>    SourceTreeNode_1Param' is not a member of type `xalanc_1_11::XalanMessages'
> <myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp: At
>    global scope:
> <myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp:137:
>  `
>    XMLMessage' is not a member of type `xalanc_1_11::XalanMessages'
> <myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp:138:
>  `
>    XMLWarning' is not a member of type `xalanc_1_11::XalanMessages'
> <myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp:139:
>  `
>    XMLError' is not a member of type `xalanc_1_11::XalanMessages'
> <myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp:142:
>  `
>    XSLTMessage' is not a member of type `xalanc_1_11::XalanMessages'
> <myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp:143:
>  `
>    XSLTWarning' is not a member of type `xalanc_1_11::XalanMessages'
> <myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp:144:
>  `
>    XSLTError' is not a member of type `xalanc_1_11::XalanMessages'
> <myPath>/xalan/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp:147:
>  `
>    XPathMessage' is not a member of type `xalanc_1_11::XalanMessages'
> <myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp:148:
>  `
>    XPathWarning' is not a member of type `xalanc_1_11::XalanMessages'
> <myPath>/xalan-c-1.11/c/src/xalanc/PlatformSupport/ProblemListenerBase.cpp:149:
>  `
>    XPathError' is not a member of type `xalanc_1_11::XalanMessages'
> gmake[1]: *** [../../obj/ProblemListenerBase.o] Error 1
> gmake[1]: Leaving directory `<myPath>/xalan-c-1.11/c/src/xalanc'
> gmake: *** [install] Error 2
> Where <myPath> is my installation and build directory.
> Any help would be much appreciated.

--
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to