You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by bob tod <ba...@hotmail.com> on 2003/08/08 21:49:59 UTC

Seg Fault compiling xalanc in redhat

Hi

I get the following when compiling xalan-c on redhat linux  2.4.18-10smp.

make
Preparing the directory structure for a build ...
mkdir -p /usr/local/src/cvs/xml-xalan/c/src/xalanc/obj
mkdir -p /usr/local/src/cvs/xml-xalan/c/src/xalanc/lib
mkdir -p /usr/local/src/cvs/xml-xalan/c/src/xalanc/bin
g++ -O2 -DNDEBUG      -fno-elide-constructors -Wall -fPIC -DLINUX 
-D_REENTRANT  -c -I/usr/local/src/xml-xalan/c//src 
-I/usr/local/src/xerces-c-src_2_3_0/src/ 
-I/usr/local/src/xerces-c-src_2_3_0/include/xercesc 
-I/usr/local/src/xerces-c-src_2_3_0/include/  -o 
/usr/local/src/cvs/xml-xalan/c/src/xalanc/obj/XPathExecutionContextDefault.o 
/usr/local/src/xml-xalan/c//src/xalanc/XPath/XPathExecutionContextDefault.cpp
/usr/local/src/xml-xalan/c/src/xalanc/Include/XalanObjectCache.hpp: In 
method
`xalanc_1_6::XPathExecutionContextDefault::XPathExecutionContextDefault 
(xalanc_1_6::XPathEnvSupport &,
xalanc_1_6::DOMSupport &, xalanc_1_6::XObjectFactory &, 
xalanc_1_6::XalanNode *, const
xalanc_1_6::NodeRefListBase *, const xalanc_1_6::PrefixResolver *)':
/usr/local/src/xml-xalan/c/src/xalanc/Include/XalanObjectCache.hpp:306: 
Internal error: Segmentation
fault.
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
make: *** 
[/usr/local/src/cvs/xml-xalan/c/src/xalanc/obj/XPathExecutionContextDefault.o] 
Error 1




Can anyone tell me what might be happening. I'm no great C-coder.


Many Thanks

Bob Todd.

_________________________________________________________________
Tired of 56k? Get a FREE BT Broadband connection 
http://www.msn.co.uk/specials/btbroadband


Re: Seg Fault compiling xalanc in redhat

Posted by Han Ming Ong <ha...@mac.com>.
If your GCC version is 2.96 (which comes with RH 7.3), you have to  
upgrade

%gcc --version
2.96

http://gcc.gnu.org/

Han Ming

On Friday, August 8, 2003, at 12:49  PM, bob tod wrote:

> Hi
>
> I get the following when compiling xalan-c on redhat linux   
> 2.4.18-10smp.
>
> make
> Preparing the directory structure for a build ...
> mkdir -p /usr/local/src/cvs/xml-xalan/c/src/xalanc/obj
> mkdir -p /usr/local/src/cvs/xml-xalan/c/src/xalanc/lib
> mkdir -p /usr/local/src/cvs/xml-xalan/c/src/xalanc/bin
> g++ -O2 -DNDEBUG      -fno-elide-constructors -Wall -fPIC -DLINUX  
> -D_REENTRANT  -c -I/usr/local/src/xml-xalan/c//src  
> -I/usr/local/src/xerces-c-src_2_3_0/src/  
> -I/usr/local/src/xerces-c-src_2_3_0/include/xercesc  
> -I/usr/local/src/xerces-c-src_2_3_0/include/  -o  
> /usr/local/src/cvs/xml-xalan/c/src/xalanc/obj/ 
> XPathExecutionContextDefault.o  
> /usr/local/src/xml-xalan/c//src/xalanc/XPath/ 
> XPathExecutionContextDefault.cpp
> /usr/local/src/xml-xalan/c/src/xalanc/Include/XalanObjectCache.hpp: In  
> method
> `xalanc_1_6::XPathExecutionContextDefault::XPathExecutionContextDefault 
>  (xalanc_1_6::XPathEnvSupport &,
> xalanc_1_6::DOMSupport &, xalanc_1_6::XObjectFactory &,  
> xalanc_1_6::XalanNode *, const
> xalanc_1_6::NodeRefListBase *, const xalanc_1_6::PrefixResolver *)':
> /usr/local/src/xml-xalan/c/src/xalanc/Include/ 
> XalanObjectCache.hpp:306: Internal error: Segmentation
> fault.
> Please submit a full bug report.
> See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
> make: ***  
> [/usr/local/src/cvs/xml-xalan/c/src/xalanc/obj/ 
> XPathExecutionContextDefault.o] Error 1
>
>
>
>
> Can anyone tell me what might be happening. I'm no great C-coder.
>
>
> Many Thanks
>
> Bob Todd.
>
> _________________________________________________________________
> Tired of 56k? Get a FREE BT Broadband connection  
> http://www.msn.co.uk/specials/btbroadband
>


Re: Seg Fault compiling xalanc in redhat

Posted by da...@us.ibm.com.



Hi Bob,

It's an internal compiler error, so there's not much you can do but upgrade
to a newer version of GCC.  I don't know what version of RedHat or GCC
you're using, but RedHat has shipped some buggy versions of GCC.

Dave



                                                                                                                                  
                      "bob tod"                                                                                                   
                      <banadas@hotmail         To:      xalan-c-users@xml.apache.org                                              
                      .com>                    cc:      (bcc: David N Bertoni/Cambridge/IBM)                                      
                                               Subject: Seg Fault compiling xalanc in redhat                                      
                      08/08/2003 12:49                                                                                            
                      PM                                                                                                          
                                                                                                                                  



Hi

I get the following when compiling xalan-c on redhat linux  2.4.18-10smp.

make
Preparing the directory structure for a build ...
mkdir -p /usr/local/src/cvs/xml-xalan/c/src/xalanc/obj
mkdir -p /usr/local/src/cvs/xml-xalan/c/src/xalanc/lib
mkdir -p /usr/local/src/cvs/xml-xalan/c/src/xalanc/bin
g++ -O2 -DNDEBUG      -fno-elide-constructors -Wall -fPIC -DLINUX
-D_REENTRANT  -c -I/usr/local/src/xml-xalan/c//src
-I/usr/local/src/xerces-c-src_2_3_0/src/
-I/usr/local/src/xerces-c-src_2_3_0/include/xercesc
-I/usr/local/src/xerces-c-src_2_3_0/include/  -o
/usr/local/src/cvs/xml-xalan/c/src/xalanc/obj/XPathExecutionContextDefault.o

/usr/local/src/xml-xalan/c//src/xalanc/XPath/XPathExecutionContextDefault.cpp

/usr/local/src/xml-xalan/c/src/xalanc/Include/XalanObjectCache.hpp: In
method
`xalanc_1_6::XPathExecutionContextDefault::XPathExecutionContextDefault
(xalanc_1_6::XPathEnvSupport &,
xalanc_1_6::DOMSupport &, xalanc_1_6::XObjectFactory &,
xalanc_1_6::XalanNode *, const
xalanc_1_6::NodeRefListBase *, const xalanc_1_6::PrefixResolver *)':
/usr/local/src/xml-xalan/c/src/xalanc/Include/XalanObjectCache.hpp:306:
Internal error: Segmentation
fault.
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
make: ***
[/usr/local/src/cvs/xml-xalan/c/src/xalanc/obj/XPathExecutionContextDefault.o]

Error 1




Can anyone tell me what might be happening. I'm no great C-coder.


Many Thanks

Bob Todd.

_________________________________________________________________
Tired of 56k? Get a FREE BT Broadband connection
http://www.msn.co.uk/specials/btbroadband