LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-07-2012, 12:00 AM   #1
zakame
Member
 
Registered: Apr 2012
Distribution: Debian, Ubuntu, Slackware
Posts: 121

Rep: Reputation: 42
building qt3 in latest -current with gcc >= 4.6


Not so much a question but a heads-up.

I was building the qt3 SlackBuild for ike on -current (which uses gcc-4.7 now,) and that fails due to missing include defining ptrdiff_t; a similar issue cropped in Debian, so I adapted the patch there for the SlackBuild, see attached.

Dunno if I should post this on slackbuild-users (as they seem to track 13.37 and not -current yet,) but I'm putting it here in case it helps
Attached Files
File Type: txt qt3-gcc46-includes-slackbuild.diff.txt (1.2 KB, 41 views)
 
Old 05-07-2012, 12:06 AM   #2
Evilus
LQ Newbie
 
Registered: May 2012
Location: Iłowa, Poland
Distribution: Slackware
Posts: 1

Rep: Reputation: Disabled
Probably GCC 4.7 is too new for Qt3 code compiling. I had some errors if I was compiling (by slackbuilds ofc) Inkscape and other "daily-use" software. Qt3 is legacy version of Qt and won't be developed. So you can download a txz package which contains Qt: ftp://ftp.slackware.pl/pub/slackware...-i486-opt3.txz (if you run 32-bit Slackware Linux) or ftp://ftp.slackware.pl/pub/slackware...86_64-opt3.txz (if you run 64-bit one).
 
Old 05-08-2012, 10:33 AM   #3
zakame
Member
 
Registered: Apr 2012
Distribution: Debian, Ubuntu, Slackware
Posts: 121

Original Poster
Rep: Reputation: 42
Actually GCC 4.7 built qt3 rather well, as long as the mentioned
Code:
#include <cstddef>
was patched in. What I'm hoping for really is a newer version of ike to come out very soon, the beta 2.2.0 version is using qt4 now.

Thanks for the pointers to the old qt3 packages though; I might make use of them in a different legacy app later.
 
1 members found this post helpful.
Old 05-08-2012, 05:33 PM   #4
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,014

Rep: Reputation: 146Reputation: 146
Quote:
Originally Posted by zakame View Post
Not so much a question but a heads-up.

I was building the qt3 SlackBuild for ike on -current (which uses gcc-4.7 now,) and that fails due to missing include defining ptrdiff_t; a similar issue cropped in Debian, so I adapted the patch there for the SlackBuild, see attached.

Dunno if I should post this on slackbuild-users (as they seem to track 13.37 and not -current yet,) but I'm putting it here in case it helps
Very nice. Thank you!
Qt3 is necessary for me to try Trinity.
 
Old 10-03-2012, 07:42 AM   #5
zakame
Member
 
Registered: Apr 2012
Distribution: Debian, Ubuntu, Slackware
Posts: 121

Original Poster
Rep: Reputation: 42
Note for Slackbuilds.org 14.0

Now that SBo/14.0 is out, it has an updated qt3 package, but it has a broken patch for ptrdiff_t:

Code:
File include/qvaluelist.h is not a regular file -- can't patch
1 out of 1 hunk ignored -- saving rejects to file include/qvaluelist.h.rej
patching file src/tools/qvaluelist.h
Apparently the qt3_gcc47.patch patches 1 file twice, as a regular file and as a symlink:

Code:
--- qt-x11-free-3.3.8b/include/qvaluelist.h     2008-01-15 17:09:13.000000000 -0200
+++ qt-x11-free-3.3.8b_patched/include/qvaluelist.h     2012-08-09 12:23:57.000000
--- qt-x11-free-3.3.8b/src/tools/qvaluelist.h   2008-01-15 17:09:13.000000000 -0200
+++ qt-x11-free-3.3.8b_patched/src/tools/qvaluelist.h   2012-08-09 13:03:09.000000000 -0300
My old qt3-gcc46-includes.diff can still apply though.

Last edited by zakame; 10-03-2012 at 07:43 AM.
 
  


Reply

Tags
gcc, qt3, slackbuild, slackware


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] gcc exits with "libXrender" error when building wmii for Slackware64-current markush Slackware 4 05-06-2012 04:49 AM
How to install gcc when a current gcc is installed but not responding Nadishka Linux - Newbie 6 10-15-2009 03:33 PM
Latest current ? brodo Slackware 34 03-13-2009 03:15 PM
Upgrade qt3 -> qt4. Symlinks still point to qt3 alar Linux - Software 1 06-07-2007 09:45 PM
trouble building latest gnome vance Linux - Software 1 02-10-2003 01:18 PM


All times are GMT -5. The time now is 01:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration