[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nel] nel don't build with gcc-3.4.1 from mandrake (2)
From: |
Rapsys|Phoenix |
Subject: |
Re: [Nel] nel don't build with gcc-3.4.1 from mandrake (2) |
Date: |
Mon, 23 Aug 2004 01:20:01 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.7.2) Gecko/20040804 |
I have found how to fix it, please merge it in cvs.
here is join the patch
if you could could you apply the autogen.sh patch.
it fix potential trouble for system with all version of automake...
Rapsys|Phoenix a écrit :
Hi,
This time it's serious...
I have solved a previous compil bug with the joined patch, but this time
I don't know how to fix this...
I am not realy good in c/c++ programming becauseI have learn myself...
and gcc-3.4.x has became more restrictive and has comme back more close
to c++ spec...
so the following problem does comme from a declaration after use in a
file or something similar...
I didn't find where is declared _Ptr so I don't know how to solve it...
please merge my patch in cvs and solve this bug...
I am using today's cvs of nel's cvs tree...
make[3]: Leaving directory `/opt/tmp/code/nel/src/3d/driver'
make[3]: Entering directory `/opt/tmp/code/nel/src/3d'
/bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I../../include -I../../src -I/usr/include/freetype2 -g -O3
-DNL_RELEASE_DEBUG -g -O2 -ftemplate-depth-24 -D_REENTRANT -Wall -ansi
-W -Wpointer-arith -Wsign-compare -Wno-deprecated-declarations
-Wno-multichar -Wno-long-long -Wno-unused -I/usr/X11R6/include
-I/usr/include/libxml2 -I/usr/include/stlport -I../../include
-DHAVE_NELCONFIG_H -c anim_ctrl.cpp
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../../src
-I/usr/include/freetype2 -g -O3 -DNL_RELEASE_DEBUG -g -O2
-ftemplate-depth-24 -D_REENTRANT -Wall -ansi -W -Wpointer-arith
-Wsign-compare -Wno-deprecated-declarations -Wno-multichar
-Wno-long-long -Wno-unused -I/usr/X11R6/include -I/usr/include/libxml2
-I/usr/include/stlport -I../../include -DHAVE_NELCONFIG_H
-Wp,-MD,.deps/anim_ctrl.pp -c anim_ctrl.cpp -fPIC -DPIC -o
.libs/anim_ctrl.o
In file included from ../../src/3d/lighting_manager.h:30,
from ../../src/3d/transform.h:38,
from std3d.h:29,
from anim_ctrl.cpp:26:
../../src/3d/quad_grid.h: In constructor
`NL3D::CQuadGrid<T>::CIterator::CIterator()':
../../src/3d/quad_grid.h:368: error: `_Ptr' undeclared (first use this
function)
../../src/3d/quad_grid.h:368: error: (Each undeclared identifier is
reported only once for each function it appears in.)
../../src/3d/quad_grid.h: In member function `T&
NL3D::CQuadGrid<T>::CIterator::operator*() const':
../../src/3d/quad_grid.h:371: error: `_Ptr' undeclared (first use this
function)
../../src/3d/quad_grid.h: In member function
`NL3D::CQuadGrid<T>::CIterator&
NL3D::CQuadGrid<T>::CIterator::operator++()':
../../src/3d/quad_grid.h:376: error: `_Ptr' undeclared (first use this
function)
../../src/3d/quad_grid.h: In member function
`NL3D::CQuadGrid<T>::CIterator&
NL3D::CQuadGrid<T>::CIterator::operator--()':
../../src/3d/quad_grid.h:380: error: `_Ptr' undeclared (first use this
function)
../../src/3d/quad_grid.h: In member function `bool
NL3D::CQuadGrid<T>::CIterator::operator==(const
NL3D::CQuadGrid<T>::const_iterator&) const':
../../src/3d/quad_grid.h:384: error: `_Ptr' undeclared (first use this
function)
make[3]: *** [anim_ctrl.lo] Erreur 1
make[3]: Leaving directory `/opt/tmp/code/nel/src/3d'
make[2]: *** [all-recursive] Erreur 1
make[2]: Leaving directory `/opt/tmp/code/nel/src/3d'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/opt/tmp/code/nel/src'
make: *** [all-recursive] Erreur 1
--
Software is like sex it's better when it's free.
Linus Tolward
All my rpm there : ftp://ftp.pcds.ch/pub/people/rapsys/
My site : http://rapsys.free.fr/
Besoin d'aide faite un tour ici : http://linuxonfire.free.fr/
diff -urNp code/nel/src/3d/quad_grid.h~gcc3.4-buildfix
code/nel/src/3d/quad_grid.h
--- code/nel/src/3d/quad_grid.h~gcc3.4-buildfix 2004-08-23 00:07:57.188389680
+0200
+++ code/nel/src/3d/quad_grid.h 2004-08-23 00:06:49.278713520 +0200
@@ -385,7 +385,9 @@ public:
bool operator!=(const const_iterator& x) const
{return (!(*this == x)); }
protected:
+ CNode *_Ptr;
friend class CQuadGrid<T>;
+ friend class const_iterator;
};
diff -urNp code/nel/autogen.sh~autotoolsver-fix code/nel/autogen.sh
--- code/nel/autogen.sh~autotoolsver-fix 2004-01-15 18:42:13.000000000
+0100
+++ code/nel/autogen.sh 2004-08-23 00:24:28.592673320 +0200
@@ -2,10 +2,22 @@
set -x
-aclocal \
-&& libtoolize --force \
-&& autoheader \
-&& automake --gnu --add-missing \
-&& autoconf
+AUTOMAKEVER="1.6"
+AUTOCONFVER="2.5x"
+
+if [ -n $AUTOMAKEVER ] && [ -n $AUTOCONFVER ]; then
+ aclocal-$AUTOMAKEVER \
+ && libtoolize --force \
+ && autoheader-$AUTOCONFVER \
+ && automake-$AUTOMAKEVER --gnu --add-missing \
+ && autoconf-$AUTOCONFVER
+else
+ aclocal \
+ && libtoolize --force \
+ && autoheader \
+ && automake --gnu --add-missing \
+ && autoconf
+fi
+
#&& ./configure \
#&& make