Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
x11-libs/qt-meta-3.3.8b-r2 fails to compile with gcc-4.6
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
proteusx
Guru
Guru


Joined: 21 Jan 2008
Posts: 338

PostPosted: Sun Jul 22, 2012 8:52 am    Post subject: x11-libs/qt-meta-3.3.8b-r2 fails to compile with gcc-4.6 Reply with quote

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 :D
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Sun Jul 22, 2012 1:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Sun Jul 22, 2012 6:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
proteusx
Guru
Guru


Joined: 21 Jan 2008
Posts: 338

PostPosted: Sun Jul 22, 2012 9:17 pm    Post subject: Reply with quote

@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
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Sun Jul 22, 2012 9:38 pm    Post subject: Reply with quote

ssuominen wrote:
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

Thanks for the clarification, ssuominen.
Back to top
View user's profile Send private message
Thistled
Guru
Guru


Joined: 06 Jan 2011
Posts: 572
Location: Scotland

PostPosted: Mon Jul 23, 2012 7:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
djdunn
l33t
l33t


Joined: 26 Dec 2004
Posts: 810

PostPosted: Mon Jul 23, 2012 9:19 pm    Post subject: Reply with quote

I think kde-4 is quite good also
_________________
“Music is a moral law. It gives a soul to the Universe, wings to the mind, flight to the imagination, a charm to sadness, gaiety and life to everything. It is the essence of order, and leads to all that is good and just and beautiful.”

― Plato
Back to top
View user's profile Send private message
proteusx
Guru
Guru


Joined: 21 Jan 2008
Posts: 338

PostPosted: Tue Jul 24, 2012 3:53 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum