On Tue, 23 Jan 2001, Paul J. Lucas wrote:

> On Tue, 23 Jan 2001, Matt Sergeant wrote:
> 
> > it doesn't compile on my stock Mandrake 7.0 laptop:
> > 
> > make[1]: Entering directory `/tmp/XML_Tree-1.0/mod/XML/Tree'
> > g++ -c -I../../.. -Dbool=char -DHAS_BOOL -I/usr/local/include
> > -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pipe -s
> > -mpentium -mcpu=pentium -march=pentium -ffast-math
> > -fexpensive-optimizations
> > -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -fpic
> > -I/usr/lib/perl5/5.00503/i386-linux/CORE -Ubool Tree.c
> > Tree.xs: In function `void XS_XML_Node_att(CV *)': 
> > Tree.xs:196: taking dynamic typeid of object with -fno-rtti
> > Tree.xs:196: confused by earlier errors, bailing out
> 
>       Your installation is outdated or broken or both: it should not
>       be adding -fno-rtti.  It's certainly not in the distributed
>       makefiles.
> 
>       It requires an ANSI C++ compiler (supporting RTTI).  If it
>       doesn't compile ANSI C++ then it's not officially an ANSI C++
>       compiler.

>From your INSTALL file:

> XML Tree has the following software as prerequisites:
> 
> 1. A C++ compiler.  XML Tree has been built using g++ 2.95 (earlier
> versions are untested).
> 
> 2. A version of STL, the ANSI/ISO C++ Standard Template Library.  If you
> are using g++ or egcs, then you also need (the matching version
> of) libstd++.

$  gcc -v
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux/2.95.2/specs
gcc version 2.95.2 19991024 (release)

$ rpm -q libstdc++
libstdc++-2.95.2-3mdk
$ rpm -q libstdc++-devel
libstdc++-devel-2.95.2-3mdk

Its perl adding the -fno-rtti, FWIW, not your Makefiles.

-- 
<Matt/>

    /||    ** Director and CTO **
   //||    **  AxKit.com Ltd   **  ** XML Application Serving **
  // ||    ** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // **     Personal Web Site: http://sergeant.org/     **
     \\//
     //\\
    //  \\


Reply via email to