2
## 08_gcc-4.0_fixes.dpatch taken from CVS.
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: gcc-4.0 build fixes
7
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
8
patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
11
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
15
-patch) patch $patch_opts -p1 < $0;;
16
-unpatch) patch $patch_opts -p1 -R < $0;;
18
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
24
diff -Naur mpqc-old/src/lib/chemistry/qc/basis/integral.cc mpqc/src/lib/chemistry/qc/basis/integral.cc
25
--- mpqc-old/src/lib/chemistry/qc/basis/integral.cc 2005-07-20 01:39:15.564158776 +0200
26
+++ mpqc/src/lib/chemistry/qc/basis/integral.cc 2005-07-20 01:39:39.620501656 +0200
28
set_basis(b1,b2,b3,b4);
31
+Integral::~Integral()
35
Integral::Integral(StateIn& s) :
38
diff -Naur mpqc-old/src/lib/chemistry/qc/basis/integral.h mpqc/src/lib/chemistry/qc/basis/integral.h
39
--- mpqc-old/src/lib/chemistry/qc/basis/integral.h 2005-07-20 01:39:15.564158776 +0200
40
+++ mpqc/src/lib/chemistry/qc/basis/integral.h 2005-07-20 01:39:39.622501352 +0200
43
/// Integral the Integral object from the given KeyVal object.
44
Integral(const Ref<KeyVal>&);
46
+ virtual ~Integral();
48
void save_data_state(StateOut&);
50
diff -Naur mpqc-old/src/lib/chemistry/qc/basis/obint.cc mpqc/src/lib/chemistry/qc/basis/obint.cc
51
--- mpqc-old/src/lib/chemistry/qc/basis/obint.cc 2005-07-20 01:39:15.564158776 +0200
52
+++ mpqc/src/lib/chemistry/qc/basis/obint.cc 2005-07-20 01:39:39.625500896 +0200
55
///////////////////////////////////////////////////////////////////////
57
+EfieldDotVectorData::~EfieldDotVectorData()
62
EfieldDotVectorData::set_position(double*p)
66
///////////////////////////////////////////////////////////////////////
68
+DipoleData::~DipoleData()
73
DipoleData::set_origin(double*o)
75
diff -Naur mpqc-old/src/lib/chemistry/qc/basis/obint.h mpqc/src/lib/chemistry/qc/basis/obint.h
76
--- mpqc-old/src/lib/chemistry/qc/basis/obint.h 2005-07-20 01:39:15.564158776 +0200
77
+++ mpqc/src/lib/chemistry/qc/basis/obint.h 2005-07-20 01:39:39.627500592 +0200
79
class EfieldDotVectorData: public RefCount
82
+ EfieldDotVectorData() {};
83
+ ~EfieldDotVectorData();
90
DipoleData(double *d) {origin[0]=d[0]; origin[1]=d[1]; origin[2]=d[2];}
91
DipoleData() {origin[0]=origin[1]=origin[2]=0.0;}
93
void set_origin(double*);
96
diff -Naur mpqc-old/src/lib/math/scmat/abstract.cc mpqc/src/lib/math/scmat/abstract.cc
97
--- mpqc-old/src/lib/math/scmat/abstract.cc 2005-07-20 01:39:15.657144640 +0200
98
+++ mpqc/src/lib/math/scmat/abstract.cc 2005-07-20 01:39:40.774326248 +0200
103
+SymmSCMatrix::~SymmSCMatrix()
108
SymmSCMatrix::save(StateOut&s)
114
+DiagSCMatrix::~DiagSCMatrix()
119
DiagSCMatrix::save(StateOut&s)
121
diff -Naur mpqc-old/src/lib/math/scmat/abstract.h mpqc/src/lib/math/scmat/abstract.h
122
--- mpqc-old/src/lib/math/scmat/abstract.h 2005-07-20 01:39:15.658144488 +0200
123
+++ mpqc/src/lib/math/scmat/abstract.h 2005-07-20 01:39:40.784324728 +0200
125
Ref<SCMatrixKit> kit_;
127
SymmSCMatrix(const RefSCDimension&, SCMatrixKit *);
130
/// Return the SCMatrixKit object that created this object.
131
Ref<SCMatrixKit> kit() const { return kit_; }
133
Ref<SCMatrixKit> kit_;
135
DiagSCMatrix(const RefSCDimension&, SCMatrixKit *);
138
/// Return the SCMatrixKit used to create this object.
139
Ref<SCMatrixKit> kit() const { return kit_; }
140
diff -Naur mpqc-old/src/lib/math/scmat/block.cc mpqc/src/lib/math/scmat/block.cc
141
--- mpqc-old/src/lib/math/scmat/block.cc 2005-07-20 01:39:15.658144488 +0200
142
+++ mpqc/src/lib/math/scmat/block.cc 2005-07-20 01:39:40.796322904 +0200
144
///////////////////////////////////////////////////////////////////////
145
// SCMatrixSubblockIter
147
-// inlined or pure virtual
148
+SCMatrixSubblockIter::~SCMatrixSubblockIter()
152
///////////////////////////////////////////////////////////////////////
153
// SCMatrixSimpleSubblockIter
154
diff -Naur mpqc-old/src/lib/math/scmat/block.h mpqc/src/lib/math/scmat/block.h
155
--- mpqc-old/src/lib/math/scmat/block.h 2005-07-20 01:39:15.658144488 +0200
156
+++ mpqc/src/lib/math/scmat/block.h 2005-07-20 01:39:40.798322600 +0200
158
/** The access variable should be one of Read, Write, Accum, and None,
159
with the SCMatrixSubblockIter:: scope operator applied. */
160
SCMatrixSubblockIter(Access access): access_(access) {}
161
+ ~SCMatrixSubblockIter();
162
/// Start at the beginning.
163
virtual void begin() = 0;
164
/// Returns nonzero if there is another block.
165
diff -Naur mpqc-old/src/lib/util/class/class.h mpqc/src/lib/util/class/class.h
166
--- mpqc-old/src/lib/util/class/class.h 2005-07-20 01:39:15.671142512 +0200
167
+++ mpqc/src/lib/util/class/class.h 2005-07-20 01:39:41.015289616 +0200
170
class ForceLinkBase {
172
+ ForceLinkBase() {};
173
virtual ~ForceLinkBase() {};
174
virtual DescribedClass *create(A) = 0;
177
template <class T, class A = const Ref<KeyVal> &>
178
class ForceLink: public ForceLinkBase<A> {
181
+ virtual ~ForceLink() {};
182
DescribedClass *create(A a) { return new T(a); }
185
diff -Naur mpqc-old/src/lib/util/group/topology.cc mpqc/src/lib/util/group/topology.cc
186
--- mpqc-old/src/lib/util/group/topology.cc 2005-07-20 01:39:15.681140992 +0200
187
+++ mpqc/src/lib/util/group/topology.cc 2005-07-20 01:39:41.207260432 +0200
192
+GlobalMsgIter::~GlobalMsgIter()
196
static ClassDesc MachineTopology_cd(
197
typeid(MachineTopology),"MachineTopology",1,"public DescribedClass",
199
diff -Naur mpqc-old/src/lib/util/group/topology.h mpqc/src/lib/util/group/topology.h
200
--- mpqc-old/src/lib/util/group/topology.h 2005-07-20 01:39:15.682140840 +0200
201
+++ mpqc/src/lib/util/group/topology.h 2005-07-20 01:39:41.208260280 +0200
203
virtual int fwdrecv() = 0;
205
GlobalMsgIter(int nproc, int me, int root = 0);
207
void backwards() { fwd_ = 0; i_ = n_ - 1; }
208
void forwards() { fwd_ = 1; i_ = 0; }
209
void next() { if (fwd_) i_++; else i_--; }
210
diff -Naur mpqc-old/src/lib/util/ref/ref.h mpqc/src/lib/util/ref/ref.h
211
--- mpqc-old/src/lib/util/ref/ref.h 2005-07-20 01:39:15.697138560 +0200
212
+++ mpqc/src/lib/util/ref/ref.h 2005-07-20 01:39:41.400231096 +0200
214
void reference(RefCount *);
215
int dereference(RefCount *);
219
/// Returns the DescribedClass pointer for the contained object.
220
virtual RefCount* parentpointer() const = 0;
222
--- mpqc/src/lib/util/group/message.h 2004/11/06 01:57:22 2.9
223
+++ mpqc/src/lib/util/group/message.h 2005/07/14 23:11:18 2.10
226
class GrpSumReduce: public GrpReduce<T> {
228
+ ~GrpSumReduce() {};
229
void reduce(T*target, T*data, int nelement);
233
class GrpMinReduce: public GrpReduce<T> {
235
+ ~GrpMinReduce() {};
236
void reduce(T*target, T*data, int nelement);
240
class GrpMaxReduce: public GrpReduce<T> {
242
+ ~GrpMaxReduce() {};
243
void reduce(T*target, T*data, int nelement);