Bug#487810: opencascade_6.2-5(unstable/powerpc/anakreon): inc/Plate_LinearScalarConstraint.hxx:81: error: expected ',' or '...' before numeric constant

2008-06-24 Thread Marc 'HE' Brockschmidt
Package: opencascade
Version: 6.2-5
Severity: important

Heya,

Building your package failed on my ppc buildd:

| Automatic build of opencascade_6.2-5 on anakreon.ayous.org by sbuild/powerpc 
98-farm
| Build started at 20080623-2020
| **

[...]

| Checking correctness of source dependencies...
| Toolchain package versions: libc6-dev_2.7-12 gcc-4.3_4.3.1-2 g++-4.3_4.3.1-2 
binutils_2.18.1~cvs20080103-6 libstdc++6-4.3-dev_4.3.1-2 libstdc++6_4.3.1-2
[...]
|  g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../inc -I../../../drv/Hatch 
-I../../../src/Hatch -I../../../drv/GeomInt -I../../../src/GeomInt 
-I../../../drv/IntStart -I../../../src/IntStart -I../../../drv/IntWalk 
-I../../../src/IntWalk -I../../../drv/IntImp -I../../../src/IntImp 
-I../../../drv/IntCurveSurface -I../../../src/IntCurveSurface 
-I../../../drv/IntSurf -I../../../src/IntSurf -I../../../drv/IntPatch 
-I../../../src/IntPatch -I../../../drv/Geom2dInt -I../../../src/Geom2dInt 
-I../../../drv/IntImpParGen -I../../../src/IntImpParGen -I../../../drv/IntRes2d 
-I../../../src/IntRes2d -I../../../drv/IntCurve -I../../../src/IntCurve 
-I../../../drv/TopTrans -I../../../src/TopTrans -I../../../drv/Intf 
-I../../../src/Intf -I../../../drv/ApproxInt -I../../../src/ApproxInt 
-I../../../drv/GccAna -I../../../src/GccAna -I../../../drv/GccEnt 
-I../../../src/GccEnt -I../../../drv/GccInt -I../../../src/GccInt 
-I../../../drv/GccIter -I../../../src/GccIter -I../../../drv/GccGeo 
-I../../../src/GccGeo -I../../../drv/HatchGen -I../../../src/HatchGen 
-I../../../drv/Geom2dHatch -I../../../src/Geom2dHatch -I../../../drv/Law 
-I../../../src/Law -I../../../drv/AppBlend -I../../../src/AppBlend 
-I../../../drv/Plate -I../../../src/Plate -I../../../drv/GeomPlate 
-I../../../src/GeomPlate -I../../../drv/LocalAnalysis 
-I../../../src/LocalAnalysis -I../../../drv/GeomAPI -I../../../src/GeomAPI 
-I../../../drv/GeomFill -I../../../src/GeomFill -I../../../drv/Geom2dAPI 
-I../../../src/Geom2dAPI -I../../../drv/Geom2dGcc -I../../../src/Geom2dGcc 
-I../../../drv/FairCurve -I../../../src/FairCurve -I../../../drv/NLPlate 
-I../../../src/NLPlate -I../../../drv/IntPolyh -I../../../src/IntPolyh 
-I../../../drv/TopClass -I../../../src/TopClass -g -O2 -DCSFDB 
-DOCC_CONVERT_SIGNALS -DLIN -DLININTEL -D_GNU_SOURCE=1 -g -DDEB -D_DEBUG -MT 
Plate_SequenceNodeOfSequenceOfLinearScalarConstraint_0.lo -MD -MP -MF 
.deps/Plate_SequenceNodeOfSequenceOfLinearScalarConstraint_0.Tpo -c 
../../../drv/Plate/Plate_SequenceNodeOfSequenceOfLinearScalarConstraint_0.cxx  
-fPIC -DPIC -o .libs/Plate_SequenceNodeOfSequenceOfLinearScalarConstraint_0.o
| In file included from 
../../../inc/Plate_SequenceNodeOfSequenceOfLinearScalarConstraint.hxx:34,
|  from 
../../../drv/Plate/Plate_SequenceNodeOfSequenceOfLinearScalarConstraint_0.cxx:22:
| ../../../inc/Plate_LinearScalarConstraint.hxx:81: error: expected ',' or 
'...' before numeric constant
| ../../../inc/Plate_LinearScalarConstraint.hxx:84: error: expected ',' or 
'...' before numeric constant
| ../../../inc/Plate_LinearScalarConstraint.hxx:84: error: 
'Plate_LinearScalarConstraint::Plate_LinearScalarConstraint(const 
Plate_Array1OfPinpointConstraint)' cannot be overloaded
| ../../../inc/Plate_LinearScalarConstraint.hxx:81: error: with 
'Plate_LinearScalarConstraint::Plate_LinearScalarConstraint(const 
Plate_Array1OfPinpointConstraint)'
| In file included from ../../../inc/gp_Mat.hxx:326,
|  from ../../../inc/gp_XYZ.lxx:5,
|  from ../../../inc/gp_XYZ.hxx:358,
|  from ../../../inc/TCollection_Array2.lxx:3,
|  from ../../../inc/TColgp_Array2OfXYZ.hxx:164,
|  from ../../../inc/TColgp_HArray2OfXYZ.hxx:34,
|  from ../../../inc/Plate_LinearScalarConstraint.lxx:6,
|  from ../../../inc/Plate_LinearScalarConstraint.hxx:132,
|  from 
../../../inc/Plate_SequenceNodeOfSequenceOfLinearScalarConstraint.hxx:34,
|  from 
../../../drv/Plate/Plate_SequenceNodeOfSequenceOfLinearScalarConstraint_0.cxx:22:
| ../../../inc/gp_Mat.lxx: In member function 'void 
gp_Mat::SetValue(Standard_Integer, Standard_Integer, Standard_Real)':
| ../../../inc/gp_Mat.lxx:98: warning: deprecated conversion from string 
constant to 'char*'
| ../../../inc/gp_Mat.lxx: In member function 'const Standard_Real 
gp_Mat::Value(Standard_Integer, Standard_Integer) const':
| ../../../inc/gp_Mat.lxx:115: warning: deprecated conversion from string 
constant to 'char*'
| ../../../inc/gp_Mat.lxx: In member function 'Standard_Real 
gp_Mat::ChangeValue(Standard_Integer, Standard_Integer)':
| ../../../inc/gp_Mat.lxx:123: warning: deprecated conversion from string 
constant to 'char*'
| ../../../inc/gp_Mat.lxx: In member function 'void 
gp_Mat::Divide(Standard_Real)':
| ../../../inc/gp_Mat.lxx:173: warning: deprecated conversion from string 
constant to 'char*'
| 

Bug#487810: opencascade_6.2-5(unstable/powerpc/anakreon): inc/Plate_LinearScalarConstraint.hxx:81: error: expected ',' or '...' before numeric constant

2008-06-24 Thread Denis Barbier
2008/6/24 Marc 'HE' Brockschmidt [EMAIL PROTECTED]:
 Package: opencascade
 Version: 6.2-5
 Severity: important

 Heya,

 Building your package failed on my ppc buildd:
[...]
 |  g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../inc -I../../../drv/Hatch 
 -I../../../src/Hatch -I../../../drv/GeomInt -I../../../src/GeomInt 
 -I../../../drv/IntStart -I../../../src/IntStart -I../../../drv/IntWalk 
 -I../../../src/IntWalk -I../../../drv/IntImp -I../../../src/IntImp 
 -I../../../drv/IntCurveSurface -I../../../src/IntCurveSurface 
 -I../../../drv/IntSurf -I../../../src/IntSurf -I../../../drv/IntPatch 
 -I../../../src/IntPatch -I../../../drv/Geom2dInt -I../../../src/Geom2dInt 
 -I../../../drv/IntImpParGen -I../../../src/IntImpParGen 
 -I../../../drv/IntRes2d -I../../../src/IntRes2d -I../../../drv/IntCurve 
 -I../../../src/IntCurve -I../../../drv/TopTrans -I../../../src/TopTrans 
 -I../../../drv/Intf -I../../../src/Intf -I../../../drv/ApproxInt 
 -I../../../src/ApproxInt -I../../../drv/GccAna -I../../../src/GccAna 
 -I../../../drv/GccEnt -I../../../src/GccEnt -I../../../drv/GccInt 
 -I../../../src/GccInt -I../../../drv/GccIter -I../../../src/GccIter 
 -I../../../drv/GccGeo -I../../../src/GccGeo -I../../../drv/HatchGen 
 -I../../../src/HatchGen -I../../../drv/Geom2dHatch -I../../../src/Geom2dHatch 
 -I../../../drv/Law -I../../../src/Law -I../../../drv/AppBlend 
 -I../../../src/AppBlend -I../../../drv/Plate -I../../../src/Plate 
 -I../../../drv/GeomPlate -I../../../src/GeomPlate 
 -I../../../drv/LocalAnalysis -I../../../src/LocalAnalysis 
 -I../../../drv/GeomAPI -I../../../src/GeomAPI -I../../../drv/GeomFill 
 -I../../../src/GeomFill -I../../../drv/Geom2dAPI -I../../../src/Geom2dAPI 
 -I../../../drv/Geom2dGcc -I../../../src/Geom2dGcc -I../../../drv/FairCurve 
 -I../../../src/FairCurve -I../../../drv/NLPlate -I../../../src/NLPlate 
 -I../../../drv/IntPolyh -I../../../src/IntPolyh -I../../../drv/TopClass 
 -I../../../src/TopClass -g -O2 -DCSFDB -DOCC_CONVERT_SIGNALS -DLIN -DLININTEL 
 -D_GNU_SOURCE=1 -g -DDEB -D_DEBUG -MT 
 Plate_SequenceNodeOfSequenceOfLinearScalarConstraint_0.lo -MD -MP -MF 
 .deps/Plate_SequenceNodeOfSequenceOfLinearScalarConstraint_0.Tpo -c 
 ../../../drv/Plate/Plate_SequenceNodeOfSequenceOfLinearScalarConstraint_0.cxx 
  -fPIC -DPIC -o .libs/Plate_SequenceNodeOfSequenceOfLinearScalarConstraint_0.o
 | In file included from 
 ../../../inc/Plate_SequenceNodeOfSequenceOfLinearScalarConstraint.hxx:34,
 |  from 
 ../../../drv/Plate/Plate_SequenceNodeOfSequenceOfLinearScalarConstraint_0.cxx:22:
 | ../../../inc/Plate_LinearScalarConstraint.hxx:81: error: expected ',' or 
 '...' before numeric constant
 | ../../../inc/Plate_LinearScalarConstraint.hxx:84: error: expected ',' or 
 '...' before numeric constant
 | ../../../inc/Plate_LinearScalarConstraint.hxx:84: error: 
 'Plate_LinearScalarConstraint::Plate_LinearScalarConstraint(const 
 Plate_Array1OfPinpointConstraint)' cannot be overloaded
 | ../../../inc/Plate_LinearScalarConstraint.hxx:81: error: with 
 'Plate_LinearScalarConstraint::Plate_LinearScalarConstraint(const 
 Plate_Array1OfPinpointConstraint)'
[...]

Lines 81 and 84 of Plate_LinearScalarConstraint.hxx are
  Standard_EXPORT Plate_LinearScalarConstraint(const
Plate_Array1OfPinpointConstraint PPC,const TColgp_Array1OfXYZ
coeff);
  Standard_EXPORT Plate_LinearScalarConstraint(const
Plate_Array1OfPinpointConstraint PPC,const TColgp_Array2OfXYZ
coeff);
I guess that PPC is a macro defined on powerpc arches, here is an
untested patch.

Denis
Index: opencascade-6.2/ros/src/BRepFill/BRepFill_Evolved.cxx
===
--- opencascade-6.2.orig/ros/src/BRepFill/BRepFill_Evolved.cxx
+++ opencascade-6.2/ros/src/BRepFill/BRepFill_Evolved.cxx
@@ -2107,8 +2107,8 @@ void BRepFill_Evolved::AddTopAndBottom(B
 	gp_Pnt PC;
 	gp_Vec VC;
 	C.D1(u,PC,VC);
-	gp_Vec PPC(P,PC);
-	gp_Vec Prod = PPC.Crossed(VC);
+	gp_Vec ppc(P,PC);
+	gp_Vec Prod = ppc.Crossed(VC);
 	if (IsOut) {
 	  ToReverse = Prod.Z()  0.;
 	}
Index: opencascade-6.2/ros/src/BRepLib/BRepLib_FindSurface.cxx
===
--- opencascade-6.2.orig/ros/src/BRepLib/BRepLib_FindSurface.cxx
+++ opencascade-6.2/ros/src/BRepLib/BRepLib_FindSurface.cxx
@@ -100,7 +100,7 @@ void BRepLib_FindSurface::Init(const Top
 
   TopoDS_Edge E = TopoDS::Edge(ex.Current());
   Standard_Real f,l,ff,ll;
-  Handle(Geom2d_Curve) PC,PPC;
+  Handle(Geom2d_Curve) PC,ppc;
   Handle(Geom_Surface) SS;
   TopLoc_Location L;
   Standard_Integer i = 0,j;
@@ -119,7 +119,7 @@ void BRepLib_FindSurface::Init(const Top
 	while (Standard_True) {
 	  j++;
 	  BRep_Tool::CurveOnSurface(TopoDS::Edge(ex.Current()),
-PPC,SS,L,ff,ll,j);
+ppc,SS,L,ff,ll,j);
 	  if (SS.IsNull()) {
 	break;
 	  }
Index: opencascade-6.2/ros/src/Bisector/Bisector_BisecPC.cxx
===
--- 

Bug#487810: opencascade_6.2-5(unstable/powerpc/anakreon): inc/Plate_LinearScalarConstraint.hxx:81: error: expected ',' or '...' before numeric constant

2008-06-24 Thread Adam C Powell IV
On Tue, 2008-06-24 at 13:20 +0200, Denis Barbier wrote:
 2008/6/24 Marc 'HE' Brockschmidt [EMAIL PROTECTED]:
  Package: opencascade
  Version: 6.2-5
  Severity: important
 
  Heya,
 
  Building your package failed on my ppc buildd:
 [...]
  |  g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../inc -I../../../drv/Hatch 
  -I../../../src/Hatch -I../../../drv/GeomInt -I../../../src/GeomInt 
  -I../../../drv/IntStart -I../../../src/IntStart -I../../../drv/IntWalk 
  -I../../../src/IntWalk -I../../../drv/IntImp -I../../../src/IntImp 
  -I../../../drv/IntCurveSurface -I../../../src/IntCurveSurface 
  -I../../../drv/IntSurf -I../../../src/IntSurf -I../../../drv/IntPatch 
  -I../../../src/IntPatch -I../../../drv/Geom2dInt -I../../../src/Geom2dInt 
  -I../../../drv/IntImpParGen -I../../../src/IntImpParGen 
  -I../../../drv/IntRes2d -I../../../src/IntRes2d -I../../../drv/IntCurve 
  -I../../../src/IntCurve -I../../../drv/TopTrans -I../../../src/TopTrans 
  -I../../../drv/Intf -I../../../src/Intf -I../../../drv/ApproxInt 
  -I../../../src/ApproxInt -I../../../drv/GccAna -I../../../src/GccAna 
  -I../../../drv/GccEnt -I../../../src/GccEnt -I../../../drv/GccInt 
  -I../../../src/GccInt -I../../../drv/GccIter -I../../../src/GccIter 
  -I../../../drv/GccGeo -I../../../src/GccGeo -I../../../drv/HatchGen 
  -I../../../src/HatchGen -I../../../drv/Geom2dHatch 
  -I../../../src/Geom2dHatch -I../../../drv/Law -I../../../src/Law 
  -I../../../drv/AppBlend -I../../../src/AppBlend -I../../../drv/Plate 
  -I../../../src/Plate -I../../../drv/GeomPlate -I../../../src/GeomPlate 
  -I../../../drv/LocalAnalysis -I../../../src/LocalAnalysis 
  -I../../../drv/GeomAPI -I../../../src/GeomAPI -I../../../drv/GeomFill 
  -I../../../src/GeomFill -I../../../drv/Geom2dAPI -I../../../src/Geom2dAPI 
  -I../../../drv/Geom2dGcc -I../../../src/Geom2dGcc -I../../../drv/FairCurve 
  -I../../../src/FairCurve -I../../../drv/NLPlate -I../../../src/NLPlate 
  -I../../../drv/IntPolyh -I../../../src/IntPolyh -I../../../drv/TopClass 
  -I../../../src/TopClass -g -O2 -DCSFDB -DOCC_CONVERT_SIGNALS -DLIN 
  -DLININTEL -D_GNU_SOURCE=1 -g -DDEB -D_DEBUG -MT 
  Plate_SequenceNodeOfSequenceOfLinearScalarConstraint_0.lo -MD -MP -MF 
  .deps/Plate_SequenceNodeOfSequenceOfLinearScalarConstraint_0.Tpo -c 
  ../../../drv/Plate/Plate_SequenceNodeOfSequenceOfLinearScalarConstraint_0.cxx
-fPIC -DPIC -o 
  .libs/Plate_SequenceNodeOfSequenceOfLinearScalarConstraint_0.o
  | In file included from 
  ../../../inc/Plate_SequenceNodeOfSequenceOfLinearScalarConstraint.hxx:34,
  |  from 
  ../../../drv/Plate/Plate_SequenceNodeOfSequenceOfLinearScalarConstraint_0.cxx:22:
  | ../../../inc/Plate_LinearScalarConstraint.hxx:81: error: expected ',' or 
  '...' before numeric constant
  | ../../../inc/Plate_LinearScalarConstraint.hxx:84: error: expected ',' or 
  '...' before numeric constant
  | ../../../inc/Plate_LinearScalarConstraint.hxx:84: error: 
  'Plate_LinearScalarConstraint::Plate_LinearScalarConstraint(const 
  Plate_Array1OfPinpointConstraint)' cannot be overloaded
  | ../../../inc/Plate_LinearScalarConstraint.hxx:81: error: with 
  'Plate_LinearScalarConstraint::Plate_LinearScalarConstraint(const 
  Plate_Array1OfPinpointConstraint)'
 [...]
 
 Lines 81 and 84 of Plate_LinearScalarConstraint.hxx are
   Standard_EXPORT Plate_LinearScalarConstraint(const
 Plate_Array1OfPinpointConstraint PPC,const TColgp_Array1OfXYZ
 coeff);
   Standard_EXPORT Plate_LinearScalarConstraint(const
 Plate_Array1OfPinpointConstraint PPC,const TColgp_Array2OfXYZ
 coeff);
 I guess that PPC is a macro defined on powerpc arches, here is an
 untested patch.

Thank you Denis!  Marc, please let us know if this works.

I *really* wish there were a way to get this and patches like it to
upstream...

-Adam
-- 
GPG fingerprint: D54D 1AEE B11C CE9B A02B  C5DD 526F 01E8 564E E4B6

Engineering consulting with open source tools
http://www.opennovation.com/


signature.asc
Description: This is a digitally signed message part