Gentoo Archives: gentoo-commits

From: "Michael Januszewski (spock)" <spock@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/oprofile/files: oprofile-0.9.3-gcc43.patch
Date: Wed, 07 May 2008 19:19:41
Message-Id: E1JtpAw-0006pm-Bk@stork.gentoo.org
1 spock 08/05/07 19:19:38
2
3 Modified: oprofile-0.9.3-gcc43.patch
4 Log:
5 Update the GCC 4.3 compilation fix.
6 (Portage version: 2.1.5_rc7)
7
8 Revision Changes Path
9 1.2 dev-util/oprofile/files/oprofile-0.9.3-gcc43.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/oprofile/files/oprofile-0.9.3-gcc43.patch?rev=1.2&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/oprofile/files/oprofile-0.9.3-gcc43.patch?rev=1.2&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/oprofile/files/oprofile-0.9.3-gcc43.patch?r1=1.1&r2=1.2
14
15 Index: oprofile-0.9.3-gcc43.patch
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/dev-util/oprofile/files/oprofile-0.9.3-gcc43.patch,v
18 retrieving revision 1.1
19 retrieving revision 1.2
20 diff -u -r1.1 -r1.2
21 --- oprofile-0.9.3-gcc43.patch 27 Apr 2008 19:17:45 -0000 1.1
22 +++ oprofile-0.9.3-gcc43.patch 7 May 2008 19:19:37 -0000 1.2
23 @@ -1,186 +1,190 @@
24 ---- oprofile-gcc43/pp/oparchive.cpp.orig 2007-11-20 15:47:00.000000000 -0500
25 -+++ oprofile-gcc43/pp/oparchive.cpp 2008-02-15 10:58:50.000000000 -0500
26 -@@ -12,6 +12,7 @@
27 -
28 - #include <iostream>
29 - #include <fstream>
30 -+#include <cstdlib>
31 -
32 - #include <errno.h>
33 - #include <string.h>
34 -diff -up oprofile-gcc43/pp/opgprof_options.cpp.orig oprofile-gcc43/pp/opgprof_options.cpp
35 ---- oprofile-gcc43/pp/opgprof_options.cpp.orig 2007-11-20 15:47:00.000000000 -0500
36 -+++ oprofile-gcc43/pp/opgprof_options.cpp 2008-02-15 10:58:50.000000000 -0500
37 -@@ -13,6 +13,7 @@
38 - #include <list>
39 - #include <iterator>
40 - #include <iostream>
41 -+#include <cstdlib>
42 -
43 - #include "opgprof_options.h"
44 - #include "popt_options.h"
45 -diff -up oprofile-gcc43/pp/common_option.cpp.orig oprofile-gcc43/pp/common_option.cpp
46 ---- oprofile-gcc43/pp/common_option.cpp.orig 2007-11-20 15:46:59.000000000 -0500
47 -+++ oprofile-gcc43/pp/common_option.cpp 2008-02-15 10:58:50.000000000 -0500
48 -@@ -12,6 +12,7 @@
49 - #include <iostream>
50 - #include <sstream>
51 - #include <iterator>
52 -+#include <cstdlib>
53 -
54 - #include "op_config.h"
55 - #include "locate_images.h"
56 -diff -up oprofile-gcc43/pp/opannotate_options.cpp.orig oprofile-gcc43/pp/opannotate_options.cpp
57 ---- oprofile-gcc43/pp/opannotate_options.cpp.orig 2008-02-13 13:57:22.000000000 -0500
58 -+++ oprofile-gcc43/pp/opannotate_options.cpp 2008-02-15 10:58:50.000000000 -0500
59 -@@ -13,6 +13,7 @@
60 - #include <list>
61 - #include <iterator>
62 - #include <iostream>
63 -+#include <cstdlib>
64 -
65 - #include "profile_spec.h"
66 - #include "arrange_profiles.h"
67 -diff -up oprofile-gcc43/libregex/demangle_symbol.cpp.orig oprofile-gcc43/libregex/demangle_symbol.cpp
68 ---- oprofile-gcc43/libregex/demangle_symbol.cpp.orig 2007-06-03 12:50:17.000000000 -0400
69 -+++ oprofile-gcc43/libregex/demangle_symbol.cpp 2008-02-15 10:58:50.000000000 -0500
70 -@@ -8,6 +8,8 @@
71 - * @author John Levon
72 - */
73 -
74 -+#include <cstdlib>
75 -+
76 - #include "config.h"
77 -
78 - #include "demangle_symbol.h"
79 -diff -up oprofile-gcc43/libpp/sample_container.cpp.orig oprofile-gcc43/libpp/sample_container.cpp
80 ---- oprofile-gcc43/libpp/sample_container.cpp.orig 2003-08-10 20:59:18.000000000 -0400
81 -+++ oprofile-gcc43/libpp/sample_container.cpp 2008-02-15 10:58:50.000000000 -0500
82 -@@ -9,6 +9,7 @@
83 - * @author John Levon
84 - */
85 -
86 -+#include <climits>
87 - #include <set>
88 - #include <numeric>
89 - #include <algorithm>
90 -diff -up oprofile-gcc43/libpp/profile.cpp.orig oprofile-gcc43/libpp/profile.cpp
91 ---- oprofile-gcc43/libpp/profile.cpp.orig 2007-11-12 16:56:07.000000000 -0500
92 -+++ oprofile-gcc43/libpp/profile.cpp 2008-02-15 10:58:50.000000000 -0500
93 -@@ -15,6 +15,7 @@
94 - #include <iostream>
95 - #include <string>
96 - #include <sstream>
97 -+#include <cstring>
98 -
99 - #include <cerrno>
100 -
101 -diff -up oprofile-gcc43/libpp/op_header.cpp.orig oprofile-gcc43/libpp/op_header.cpp
102 ---- oprofile-gcc43/libpp/op_header.cpp.orig 2007-11-12 16:56:07.000000000 -0500
103 -+++ oprofile-gcc43/libpp/op_header.cpp 2008-02-15 10:58:50.000000000 -0500
104 -@@ -14,6 +14,7 @@
105 - #include <iomanip>
106 - #include <set>
107 - #include <sstream>
108 -+#include <cstring>
109 -
110 - #include <sys/types.h>
111 - #include <sys/stat.h>
112 -diff -up oprofile-gcc43/libabi/opimport.cpp.orig oprofile-gcc43/libabi/opimport.cpp
113 ---- oprofile-gcc43/libabi/opimport.cpp.orig 2005-08-17 15:15:41.000000000 -0400
114 -+++ oprofile-gcc43/libabi/opimport.cpp 2008-02-15 10:58:50.000000000 -0500
115 -@@ -17,6 +17,8 @@
116 - #include <iostream>
117 - #include <vector>
118 - #include <cassert>
119 -+#include <cstring>
120 -+#include <cstdlib>
121 -
122 - #include <sys/types.h>
123 - #include <sys/stat.h>
124 -diff -up oprofile-gcc43/gui/oprof_start_util.cpp.orig oprofile-gcc43/gui/oprof_start_util.cpp
125 ---- oprofile-gcc43/gui/oprof_start_util.cpp.orig 2005-08-07 07:15:48.000000000 -0400
126 -+++ oprofile-gcc43/gui/oprof_start_util.cpp 2008-02-15 10:58:50.000000000 -0500
127 -@@ -19,6 +19,7 @@
128 - #include <sstream>
129 - #include <iostream>
130 - #include <fstream>
131 -+#include <cstdlib>
132 -
133 - #include <qfiledialog.h>
134 - #include <qmessagebox.h>
135 -diff -up oprofile-gcc43/libutil++/file_manip.cpp.orig oprofile-gcc43/libutil++/file_manip.cpp
136 ---- oprofile-gcc43/libutil++/file_manip.cpp.orig 2007-11-12 16:56:07.000000000 -0500
137 -+++ oprofile-gcc43/libutil++/file_manip.cpp 2008-02-15 10:58:50.000000000 -0500
138 -@@ -15,6 +15,8 @@
139 - #include <dirent.h>
140 - #include <fnmatch.h>
141 - #include <utime.h>
142 -+#include <limits.h>
143 -+#include <stdlib.h>
144 -
145 - #include <cstdio>
146 - #include <cerrno>
147 -diff -up oprofile-gcc43/libutil++/bfd_support.cpp.orig oprofile-gcc43/libutil++/bfd_support.cpp
148 ---- oprofile-gcc43/libutil++/bfd_support.cpp.orig 2007-11-12 16:56:07.000000000 -0500
149 -+++ oprofile-gcc43/libutil++/bfd_support.cpp 2008-02-15 10:58:50.000000000 -0500
150 -@@ -19,6 +19,8 @@
151 - #include <fstream>
152 - #include <sstream>
153 - #include <string>
154 -+#include <cstring>
155 -+#include <cstdlib>
156 -
157 - using namespace std;
158 -
159 -diff -up oprofile-gcc43/libutil++/child_reader.cpp.orig oprofile-gcc43/libutil++/child_reader.cpp
160 ---- oprofile-gcc43/libutil++/child_reader.cpp.orig 2004-01-19 15:00:27.000000000 -0500
161 -+++ oprofile-gcc43/libutil++/child_reader.cpp 2008-02-15 10:58:50.000000000 -0500
162 -@@ -11,10 +11,13 @@
163 -
164 - #include <unistd.h>
165 - #include <sys/wait.h>
166 -+#include <limits.h>
167 -
168 - #include <cerrno>
169 - #include <sstream>
170 - #include <iostream>
171 -+#include <cstring>
172 -+#include <cstdlib>
173 -
174 - #include "op_libiberty.h"
175 - #include "child_reader.h"
176 -diff -up oprofile-gcc43/libutil++/bfd_spu_support.cpp.orig oprofile-gcc43/libutil++/bfd_spu_support.cpp
177 ---- oprofile-gcc43/libutil++/bfd_spu_support.cpp.orig 2008-02-13 13:57:18.000000000 -0500
178 -+++ oprofile-gcc43/libutil++/bfd_spu_support.cpp 2008-02-15 10:58:50.000000000 -0500
179 -@@ -20,6 +20,7 @@
180 - #include <fstream>
181 - #include <sstream>
182 - #include <string>
183 -+#include <cstring>
184 - #include <sys/types.h>
185 -
186 - struct spu_elf {
187 -diff -up oprofile-gcc43/libutil++/cverb.cpp.orig oprofile-gcc43/libutil++/cverb.cpp
188 ---- oprofile-gcc43/libutil++/cverb.cpp.orig 2006-11-20 10:01:48.000000000 -0500
189 -+++ oprofile-gcc43/libutil++/cverb.cpp 2008-02-15 10:58:50.000000000 -0500
190 -@@ -13,6 +13,7 @@
191 - #include <iostream>
192 - #include <map>
193 - #include <string>
194 -+#include <cstring>
195 -
196 - #include "cverb.h"
197 -
198 -diff -up oprofile-gcc43/libutil++/op_spu_bfd.cpp.orig oprofile-gcc43/libutil++/op_spu_bfd.cpp
199 ---- oprofile-gcc43/libutil++/op_spu_bfd.cpp.orig 2008-02-13 13:57:18.000000000 -0500
200 -+++ oprofile-gcc43/libutil++/op_spu_bfd.cpp 2008-02-15 10:58:50.000000000 -0500
201 -@@ -14,6 +14,8 @@
202 - #include <sys/stat.h>
203 -
204 - #include <iostream>
205 -+#include <cstring>
206 -+#include <cstdlib>
207 -
208 - #include "op_bfd.h"
209 - #include "locate_images.h"
210 \ No newline at end of file
211 +diff -urp oprofile-0.9.3-orig/gui/oprof_start_util.cpp oprofile-0.9.3/gui/oprof_start_util.cpp
212 +--- oprofile-0.9.3-orig/gui/oprof_start_util.cpp 2007-07-16 20:22:17.000000000 +0200
213 ++++ oprofile-0.9.3/gui/oprof_start_util.cpp 2008-05-04 18:52:58.000000000 +0200
214 +@@ -19,6 +19,7 @@
215 + #include <sstream>
216 + #include <iostream>
217 + #include <fstream>
218 ++#include <cstdlib>
219 +
220 + #include <qfiledialog.h>
221 + #include <qmessagebox.h>
222 +diff -urp oprofile-0.9.3-orig/libabi/opimport.cpp oprofile-0.9.3/libabi/opimport.cpp
223 +--- oprofile-0.9.3-orig/libabi/opimport.cpp 2007-07-16 20:22:17.000000000 +0200
224 ++++ oprofile-0.9.3/libabi/opimport.cpp 2008-05-04 18:52:58.000000000 +0200
225 +@@ -17,6 +17,8 @@
226 + #include <iostream>
227 + #include <vector>
228 + #include <cassert>
229 ++#include <cstring>
230 ++#include <cstdlib>
231 +
232 + #include <sys/types.h>
233 + #include <sys/stat.h>
234 +diff -urp oprofile-0.9.3-orig/libpp/op_header.cpp oprofile-0.9.3/libpp/op_header.cpp
235 +--- oprofile-0.9.3-orig/libpp/op_header.cpp 2007-07-16 20:22:17.000000000 +0200
236 ++++ oprofile-0.9.3/libpp/op_header.cpp 2008-05-04 18:52:58.000000000 +0200
237 +@@ -14,6 +14,7 @@
238 + #include <iomanip>
239 + #include <set>
240 + #include <sstream>
241 ++#include <cstring>
242 +
243 + #include "op_exception.h"
244 + #include "odb.h"
245 +Only in oprofile-0.9.3/libpp: op_header.cpp.orig
246 +diff -urp oprofile-0.9.3-orig/libpp/profile.cpp oprofile-0.9.3/libpp/profile.cpp
247 +--- oprofile-0.9.3-orig/libpp/profile.cpp 2007-07-16 20:22:17.000000000 +0200
248 ++++ oprofile-0.9.3/libpp/profile.cpp 2008-05-04 18:52:58.000000000 +0200
249 +@@ -15,6 +15,7 @@
250 + #include <iostream>
251 + #include <string>
252 + #include <sstream>
253 ++#include <cstring>
254 +
255 + #include <cerrno>
256 +
257 +diff -urp oprofile-0.9.3-orig/libpp/sample_container.cpp oprofile-0.9.3/libpp/sample_container.cpp
258 +--- oprofile-0.9.3-orig/libpp/sample_container.cpp 2007-07-16 20:22:17.000000000 +0200
259 ++++ oprofile-0.9.3/libpp/sample_container.cpp 2008-05-04 18:52:58.000000000 +0200
260 +@@ -9,6 +9,7 @@
261 + * @author John Levon
262 + */
263 +
264 ++#include <climits>
265 + #include <set>
266 + #include <numeric>
267 + #include <algorithm>
268 +diff -urp oprofile-0.9.3-orig/libregex/demangle_symbol.cpp oprofile-0.9.3/libregex/demangle_symbol.cpp
269 +--- oprofile-0.9.3-orig/libregex/demangle_symbol.cpp 2007-07-16 20:22:17.000000000 +0200
270 ++++ oprofile-0.9.3/libregex/demangle_symbol.cpp 2008-05-04 18:52:58.000000000 +0200
271 +@@ -8,6 +8,8 @@
272 + * @author John Levon
273 + */
274 +
275 ++#include <cstdlib>
276 ++
277 + #include "config.h"
278 +
279 + #include "demangle_symbol.h"
280 +diff -urp oprofile-0.9.3-orig/libutil++/bfd_spu_support.cpp oprofile-0.9.3/libutil++/bfd_spu_support.cpp
281 +--- oprofile-0.9.3-orig/libutil++/bfd_spu_support.cpp 2007-07-16 20:22:17.000000000 +0200
282 ++++ oprofile-0.9.3/libutil++/bfd_spu_support.cpp 2008-05-04 18:52:58.000000000 +0200
283 +@@ -19,6 +19,7 @@
284 + #include <fstream>
285 + #include <sstream>
286 + #include <string>
287 ++#include <cstring>
288 + #include <sys/types.h>
289 +
290 + struct spu_elf {
291 +Only in oprofile-0.9.3/libutil++: bfd_spu_support.cpp.orig
292 +diff -urp oprofile-0.9.3-orig/libutil++/bfd_support.cpp oprofile-0.9.3/libutil++/bfd_support.cpp
293 +--- oprofile-0.9.3-orig/libutil++/bfd_support.cpp 2007-07-16 20:22:17.000000000 +0200
294 ++++ oprofile-0.9.3/libutil++/bfd_support.cpp 2008-05-04 18:52:58.000000000 +0200
295 +@@ -19,6 +19,8 @@
296 + #include <fstream>
297 + #include <sstream>
298 + #include <string>
299 ++#include <cstring>
300 ++#include <cstdlib>
301 +
302 + using namespace std;
303 +
304 +diff -urp oprofile-0.9.3-orig/libutil++/child_reader.cpp oprofile-0.9.3/libutil++/child_reader.cpp
305 +--- oprofile-0.9.3-orig/libutil++/child_reader.cpp 2007-07-16 20:22:17.000000000 +0200
306 ++++ oprofile-0.9.3/libutil++/child_reader.cpp 2008-05-04 18:52:58.000000000 +0200
307 +@@ -11,10 +11,13 @@
308 +
309 + #include <unistd.h>
310 + #include <sys/wait.h>
311 ++#include <limits.h>
312 +
313 + #include <cerrno>
314 + #include <sstream>
315 + #include <iostream>
316 ++#include <cstring>
317 ++#include <cstdlib>
318 +
319 + #include "op_libiberty.h"
320 + #include "child_reader.h"
321 +diff -urp oprofile-0.9.3-orig/libutil++/cverb.cpp oprofile-0.9.3/libutil++/cverb.cpp
322 +--- oprofile-0.9.3-orig/libutil++/cverb.cpp 2007-07-16 20:22:17.000000000 +0200
323 ++++ oprofile-0.9.3/libutil++/cverb.cpp 2008-05-04 18:52:58.000000000 +0200
324 +@@ -13,6 +13,7 @@
325 + #include <iostream>
326 + #include <map>
327 + #include <string>
328 ++#include <cstring>
329 +
330 + #include "cverb.h"
331 +
332 +diff -urp oprofile-0.9.3-orig/libutil++/file_manip.cpp oprofile-0.9.3/libutil++/file_manip.cpp
333 +--- oprofile-0.9.3-orig/libutil++/file_manip.cpp 2007-07-16 20:22:17.000000000 +0200
334 ++++ oprofile-0.9.3/libutil++/file_manip.cpp 2008-05-04 18:52:58.000000000 +0200
335 +@@ -15,6 +15,8 @@
336 + #include <dirent.h>
337 + #include <fnmatch.h>
338 + #include <utime.h>
339 ++#include <limits.h>
340 ++#include <stdlib.h>
341 +
342 + #include <cstdio>
343 + #include <cerrno>
344 +diff -urp oprofile-0.9.3-orig/libutil++/op_spu_bfd.cpp oprofile-0.9.3/libutil++/op_spu_bfd.cpp
345 +--- oprofile-0.9.3-orig/libutil++/op_spu_bfd.cpp 2007-07-16 20:22:17.000000000 +0200
346 ++++ oprofile-0.9.3/libutil++/op_spu_bfd.cpp 2008-05-04 18:52:58.000000000 +0200
347 +@@ -14,6 +14,8 @@
348 + #include <sys/stat.h>
349 +
350 + #include <iostream>
351 ++#include <cstring>
352 ++#include <cstdlib>
353 +
354 + #include "op_bfd.h"
355 + #include "op_libiberty.h"
356 +Only in oprofile-0.9.3/libutil++: op_spu_bfd.cpp.orig
357 +diff -urp oprofile-0.9.3-orig/pp/common_option.cpp oprofile-0.9.3/pp/common_option.cpp
358 +--- oprofile-0.9.3-orig/pp/common_option.cpp 2007-07-16 20:22:17.000000000 +0200
359 ++++ oprofile-0.9.3/pp/common_option.cpp 2008-05-04 18:52:58.000000000 +0200
360 +@@ -12,6 +12,7 @@
361 + #include <iostream>
362 + #include <sstream>
363 + #include <iterator>
364 ++#include <cstdlib>
365 +
366 + #include "op_config.h"
367 + #include "locate_images.h"
368 +diff -urp oprofile-0.9.3-orig/pp/opannotate_options.cpp oprofile-0.9.3/pp/opannotate_options.cpp
369 +--- oprofile-0.9.3-orig/pp/opannotate_options.cpp 2007-07-16 20:22:17.000000000 +0200
370 ++++ oprofile-0.9.3/pp/opannotate_options.cpp 2008-05-04 18:52:58.000000000 +0200
371 +@@ -13,6 +13,7 @@
372 + #include <list>
373 + #include <iterator>
374 + #include <iostream>
375 ++#include <cstdlib>
376 +
377 + #include "profile_spec.h"
378 + #include "arrange_profiles.h"
379 +diff -urp oprofile-0.9.3-orig/pp/oparchive.cpp oprofile-0.9.3/pp/oparchive.cpp
380 +--- oprofile-0.9.3-orig/pp/oparchive.cpp 2007-07-16 20:22:17.000000000 +0200
381 ++++ oprofile-0.9.3/pp/oparchive.cpp 2008-05-04 18:52:58.000000000 +0200
382 +@@ -12,6 +12,7 @@
383 +
384 + #include <iostream>
385 + #include <fstream>
386 ++#include <cstdlib>
387 +
388 + #include <errno.h>
389 + #include <string.h>
390 +diff -urp oprofile-0.9.3-orig/pp/opgprof_options.cpp oprofile-0.9.3/pp/opgprof_options.cpp
391 +--- oprofile-0.9.3-orig/pp/opgprof_options.cpp 2007-07-16 20:22:17.000000000 +0200
392 ++++ oprofile-0.9.3/pp/opgprof_options.cpp 2008-05-04 18:52:58.000000000 +0200
393 +@@ -13,6 +13,7 @@
394 + #include <list>
395 + #include <iterator>
396 + #include <iostream>
397 ++#include <cstdlib>
398 +
399 + #include "opgprof_options.h"
400 + #include "popt_options.h"
401
402
403
404 --
405 gentoo-commits@l.g.o mailing list