| View previous topic :: View next topic |
| Author |
Message |
proteusx n00b

Joined: 21 Jan 2008 Posts: 29
|
Posted: Sun Jul 22, 2012 8:52 am Post subject: x11-libs/qt-meta-3.3.8b-r2 fails to compile with gcc-4.6 |
|
|
After upgrading to gcc-4.6 I found that qt-meta-3.3.8b-r2 (from kde-sunset overlay) failed to compile.
Searching the net I found that other packages failed similarly with errors like this one:
| Code: | | ./include/qvaluelist.h:88:13: error: ‘ptrdiff_t’ does not name a type |
With this information I made a patch so I can continue using my kde-3.5.10.
I thought to post the patch here for whoever may have the same problem.
Here is the patch:
| Code: |
diff -Naur qt-x11-free-3.3.8b-orig/include/qmap.h qt-x11-free-3.3.8b/include/qmap.h
--- qt-x11-free-3.3.8b-orig/include/qmap.h 2008-01-15 21:09:13.000000000 +0200
+++ qt-x11-free-3.3.8b/include/qmap.h 2012-07-22 10:16:36.000000000 +0300
@@ -53,6 +53,7 @@
#include <iterator>
#include <map>
#endif
+#include <stddef.h>
//#define QT_CHECK_MAP_RANGE
diff -Naur qt-x11-free-3.3.8b-orig/include/qvaluelist.h qt-x11-free-3.3.8b/include/qvaluelist.h
--- qt-x11-free-3.3.8b-orig/include/qvaluelist.h 2008-01-15 21:09:13.000000000 +0200
+++ qt-x11-free-3.3.8b/include/qvaluelist.h 2012-07-22 10:17:08.000000000 +0300
@@ -51,6 +51,7 @@
#include <iterator>
#include <list>
#endif
+#include <stddef.h>
//#define QT_CHECK_VALUELIST_RANGE
diff -Naur qt-x11-free-3.3.8b-orig/src/tools/qmap.h qt-x11-free-3.3.8b/src/tools/qmap.h
--- qt-x11-free-3.3.8b-orig/src/tools/qmap.h 2008-01-15 21:09:13.000000000 +0200
+++ qt-x11-free-3.3.8b/src/tools/qmap.h 2012-07-22 10:16:36.000000000 +0300
@@ -53,6 +53,7 @@
#include <iterator>
#include <map>
#endif
+#include <stddef.h>
//#define QT_CHECK_MAP_RANGE
diff -Naur qt-x11-free-3.3.8b-orig/src/tools/qvaluelist.h qt-x11-free-3.3.8b/src/tools/qvaluelist.h
--- qt-x11-free-3.3.8b-orig/src/tools/qvaluelist.h 2008-01-15 21:09:13.000000000 +0200
+++ qt-x11-free-3.3.8b/src/tools/qvaluelist.h 2012-07-22 10:17:08.000000000 +0300
@@ -51,6 +51,7 @@
#include <iterator>
#include <list>
#endif
+#include <stddef.h>
//#define QT_CHECK_VALUELIST_RANGE
|
It simply adds the line:
| Code: | | #include <stddef.h> |
to the beginning of the files: /src/tools/{qmap.h, qvaluelist.h}
Happy kde-3.5.10ing  |
|
| Back to top |
|
 |
alex.blackbit Advocate

Joined: 26 Jul 2005 Posts: 2392
|
Posted: Sun Jul 22, 2012 1:12 pm Post subject: |
|
|
proteusx,
missing includes are a known phenomenon with gcc 4.6.
I think you should create a bug (if none exists already) on b.g.o. so that patch can be included in the sunrise tree.
Upstream will be interested in this too. |
|
| Back to top |
|
 |
ssuominen Developer

Joined: 30 Sep 2005 Posts: 1822 Location: Finland
|
Posted: Sun Jul 22, 2012 6:25 pm Post subject: |
|
|
| alex.blackbit wrote: | proteusx,
missing includes are a known phenomenon with gcc 4.6.
I think you should create a bug (if none exists already) on b.g.o. so that patch can be included in the sunrise tree.
Upstream will be interested in this too. |
There is no upstream for Qt3 anymore and bugzilla is not the place to report kde-sunset bugs, the gentoo-desktop mailing list is as per
http://git.overlays.gentoo.org/gitweb/?p=proj/kde-sunset.git;a=tree;f=Documentation;hb=HEAD |
|
| Back to top |
|
 |
proteusx n00b

Joined: 21 Jan 2008 Posts: 29
|
Posted: Sun Jul 22, 2012 9:17 pm Post subject: |
|
|
@alex
As suominen says, bugzilla frowns upon bug reports on unsupported software.
Those of us still runnning kde:3.5 need to do a bit of work to keep it going,
and need to support eachother.
When sometime ago I was in a pickle with kdelibs:3.5, I found this post :
kde-base/kdelibs-3.5.10-r10 failed (compile phase)
very helpfull. |
|
| Back to top |
|
 |
alex.blackbit Advocate

Joined: 26 Jul 2005 Posts: 2392
|
Posted: Sun Jul 22, 2012 9:38 pm Post subject: |
|
|
Thanks for the clarification, ssuominen. |
|
| Back to top |
|
 |
Thistled Guru


Joined: 06 Jan 2011 Posts: 433 Location: Scotland
|
Posted: Mon Jul 23, 2012 7:16 pm Post subject: |
|
|
As KDE 3 is now "old", then would it not be simpler to compile it with an older GCC, like 4.2.* or 4.3.* ?
Would that not solve the problem? _________________ Whatever you do, do it properly! |
|
| Back to top |
|
 |
djdunn l33t


Joined: 26 Dec 2004 Posts: 617 Location: Under the moon and all the stars in the sky.
|
Posted: Mon Jul 23, 2012 9:19 pm Post subject: |
|
|
I think kde-4 is quite good also _________________ Now, with penguins, (cuddly such), "contented" means it has either just gotten laid, or it's stuffed on herring. Take it from me, I'm an expert on penguins, those are really the only two options.
--Linus Torvalds |
|
| Back to top |
|
 |
proteusx n00b

Joined: 21 Jan 2008 Posts: 29
|
Posted: Tue Jul 24, 2012 3:53 am Post subject: |
|
|
| Thistled wrote: | As KDE 3 is now "old", then would it not be simpler to compile it with an older GCC, like 4.2.* or 4.3.* ?
Would that not solve the problem? |
Maybe it would but
I keep finding packages that will only compile with >gcc-4.5
and it is a hassle switching the compiler back and forth.
Although I still use kde:3.5, I also use many kde:4 apps
such as okular, k3b, okteta, kde4-konsole and others.. |
|
| Back to top |
|
 |
|