[ 
https://issues.apache.org/jira/browse/XALANC-813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17208505#comment-17208505
 ] 

Krunal Ghute commented on XALANC-813:
-------------------------------------

thanks, Roger, it helps.

now build is failing on the below part, 

In file included from 
/home/usera/rpmbuild/BUILD/xalan-c-1.12/src/xalanc/TestXPath/TestXPath.cpp:58:
/home/usera/rpmbuild/BUILD/xalan-c-1.12/src/xalanc/PlatformSupport/DirectoryEnumerator.hpp:
 In instantiation of 'void 
xalanc_1_12::EnumerateDirectory(xercesc_3_2::MemoryManager&, const StringType&, 
OutputIteratorType, FilterPredicateType, StringConversionFunction, bool) [with 
OutputIteratorType = 
std::back_insert_iterator<xalanc_1_12::XalanVector<xalanc_1_12::XalanDOMString> 
>; FilterPredicateType = xalanc_1_12::FilesOnlyFilterPredicate; StringType = 
xalanc_1_12::XalanDOMString; StringConversionFunction = 
xalanc_1_12::c_wstr_functor]':
/home/usera/rpmbuild/BUILD/xalan-c-1.12/src/xalanc/PlatformSupport/DirectoryEnumerator.hpp:479:27:
 required from 'void xalanc_1_12::DirectoryEnumeratorFunctor<CollectionType, 
StringType, FilterPredicateType, StringConversionFunction>::operator()(const 
StringType&, CollectionType&) const [with CollectionType = 
xalanc_1_12::XalanVector<xalanc_1_12::XalanDOMString>; StringType = 
xalanc_1_12::XalanDOMString; FilterPredicateType = 
xalanc_1_12::FilesOnlyFilterPredicate; StringConversionFunction = 
xalanc_1_12::c_wstr_functor]'
/home/usera/rpmbuild/BUILD/xalan-c-1.12/src/xalanc/TestXPath/TestXPath.cpp:1245:27:
 required from here
/home/usera/rpmbuild/BUILD/xalan-c-1.12/src/xalanc/PlatformSupport/DirectoryEnumerator.hpp:236:41:
 warning: unused parameter 'theConversionFunction' [-Wunused-parameter]
 StringConversionFunction theConversionFunction,
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
[ 90%] Linking CXX executable TestXPath
[ 90%] Built target TestXPath
Scanning dependencies of target EntityResolver
[ 90%] Building CXX object 
samples/CMakeFiles/EntityResolver.dir/EntityResolver/EntityResolver.cpp.o
In file included from 
/home/usera/rpmbuild/BUILD/xalan-c-1.12/src/xalanc/XPath/MutableNodeRefList.hpp:28,
 from 
/home/usera/rpmbuild/BUILD/xalan-c-1.12/src/xalanc/XPath/XPathExecutionContext.hpp:45,
 from /home/usera/rpmbuild/BUILD/xalan-c-1.12/src/xalanc/XPath/XObject.hpp:44,
 from 
/home/usera/rpmbuild/BUILD/xalan-c-1.12/src/xalanc/XSLT/XalanParamHolder.hpp:31,
 from 
/home/usera/rpmbuild/BUILD/xalan-c-1.12/src/xalanc/XalanTransformer/XalanTransformer.hpp:37,
 from 
/home/usera/rpmbuild/BUILD/xalan-c-1.12/samples/EntityResolver/EntityResolver.cpp:36:
/home/usera/rpmbuild/BUILD/xalan-c-1.12/src/xalanc/XPath/NodeRefList.hpp: In 
member function 'void 
xalanc_1_12::NodeRefList::ensureAllocation(xalanc_1_12::XalanVector<xalanc_1_12::XalanNode*>::size_type)':
/home/usera/rpmbuild/BUILD/xalan-c-1.12/src/xalanc/XPath/NodeRefList.hpp:134:57:
 warning: enumeral and non-enumeral type in conditional expression [-Wextra]
 m_nodeList.reserve(eDefaultVectorSize > theSize ? eDefaultVectorSize : 
theSize);
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from 
/home/usera/rpmbuild/BUILD/xalan-c-1.12/src/xalanc/XPath/XObject.hpp:44,
 from 
/home/usera/rpmbuild/BUILD/xalan-c-1.12/src/xalanc/XSLT/XalanParamHolder.hpp:31,
 from 
/home/usera/rpmbuild/BUILD/xalan-c-1.12/src/xalanc/XalanTransformer/XalanTransformer.hpp:37,
 from 
/home/usera/rpmbuild/BUILD/xalan-c-1.12/samples/EntityResolver/EntityResolver.cpp:36:
/home/usera/rpmbuild/BUILD/xalan-c-1.12/src/xalanc/XPath/XPathExecutionContext.hpp:
 In copy constructor 
'xalanc_1_12::XPathExecutionContext::GetCachedNodeList::GetCachedNodeList(const 
xalanc_1_12::XPathExecutionContext::GetCachedNodeList&)':
/home/usera/rpmbuild/BUILD/xalan-c-1.12/src/xalanc/XPath/XPathExecutionContext.hpp:353:47:
 warning: cast from type 'const 
xalanc_1_12::XPathExecutionContext::GetCachedNodeList*' to type 
'xalanc_1_12::XPathExecutionContext::BorrowReturnMutableNodeRefList*' \{aka 
'xalanc_1_12::XPathExecutionContext::GetCachedNodeList*'} casts away qualifiers 
[-Wcast-qual]
 ((BorrowReturnMutableNodeRefList&)theSource).m_mutableNodeRefList = 0;
 ^~~~~~~~~
[ 90%] Linking CXX executable EntityResolver
/usr/bin/ld: cannot open output file EntityResolver: Is a directory
collect2: error: ld returned 1 exit status
make[2]: *** [samples/CMakeFiles/EntityResolver.dir/build.make:90: 
samples/EntityResolver] Error 1
make[1]: *** [CMakeFiles/Makefile2:556: 
samples/CMakeFiles/EntityResolver.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.JqoiUI (%build)

> Can we build xalan-c(1.12) on rhel 8.2 ?
> ----------------------------------------
>
>                 Key: XALANC-813
>                 URL: https://issues.apache.org/jira/browse/XALANC-813
>             Project: XalanC
>          Issue Type: Bug
>          Components: XalanC
>    Affects Versions: 1.12
>            Reporter: Krunal Ghute
>            Assignee: Gary D. Gregory
>            Priority: Major
>             Fix For: 1.11
>
>
> Not able to build xalan-c rpms on rhel 8.2 using spec file. can we build 
> xalan-c (1.12) on rhel 8.2? if yes then can you please tell me the procedure. 
> beacuse while building xalan-c rpm we faced many compilation issues , PSB.
> -Wformat-nonliteral]
>              theCharsWritten = sprintf(theBuffer, *thePrintfString, theValue);
>                                                                             ^
> [  7%] Building CXX object 
> src/xalanc/CMakeFiles/xalan-c.dir/PlatformSupport/DOMStringPrintWriter.cpp.o
> [  7%] Building CXX object 
> src/xalanc/CMakeFiles/xalan-c.dir/PlatformSupport/DoubleSupport.cpp.o
> [  7%] Building CXX object 
> src/xalanc/CMakeFiles/xalan-c.dir/PlatformSupport/ExecutionContext.cpp.o
> In file included from 
> /home/pmx/rpmbuild/BUILD/amdocs-xalan-c-1.12/src/xalanc/PlatformSupport/ExecutionContext.hpp:32,
>                  from 
> /home/pmx/rpmbuild/BUILD/amdocs-xalan-c-1.12/src/xalanc/PlatformSupport/ExecutionContext.cpp:19:
> /home/pmx/rpmbuild/BUILD/amdocs-xalan-c-1.12/src/xalanc/PlatformSupport/ProblemListenerBase.hpp:28:10:
>  fatal error: LocalMsgIndex.hpp: No such file or directory
> #include "LocalMsgIndex.hpp"
>           ^~~~~~~~~~~~~~~~~~~
> compilation terminated.
> make[2]: *** [src/xalanc/CMakeFiles/xalan-c.dir/build.make:427: 
> src/xalanc/CMakeFiles/xalan-c.dir/PlatformSupport/ExecutionContext.cpp.o] 
> Error 1
> make[1]: *** [CMakeFiles/Makefile2:250: 
> src/xalanc/CMakeFiles/xalan-c.dir/all] Error 2
> make: *** [Makefile:141: all] Error 2
> error: Bad exit status from /var/tmp/rpm-tmp.zf5qy4 (%build)
> please help to resolve this isses.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to