Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
x11-libs/qt-meta-3.3.8b-r2 failed error: ‘ptrdiff_t’ does no
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
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Wed Sep 05, 2012 2:31 am    Post subject: x11-libs/qt-meta-3.3.8b-r2 failed error: ‘ptrdiff_t’ does no Reply with quote

Code:
READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/var/tmp/portage/x11-libs/qt-meta-3.3.8b-r2/work/qt-x11-free-3.3.8b/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/opentype -I../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qcolor_x11.o kernel/qcolor_x11.cpp
In file included from ../include/qstringlist.h:45:0,
                 from kernel/qcolor.h:46,
                 from kernel/qcolor_x11.cpp:41:
../include/qvaluelist.h:91:13: error: ‘ptrdiff_t’ does not name a type
../include/qvaluelist.h:167:13: error: ‘ptrdiff_t’ does not name a type
In file included from ../include/qstringlist.h:45:0,
                 from kernel/qcolor.h:46,
                 from kernel/qcolor_x11.cpp:41:
../include/qvaluelist.h:427:13: error: ‘ptrdiff_t’ does not name a type
In file included from kernel/qmime.h:46:0,
                 from kernel/qevent.h:48,
                 from kernel/qobject.h:48,
                 from kernel/qwidget.h:46,
                 from kernel/qdesktopwidget.h:43,
                 from kernel/qapplication.h:45,
                 from kernel/qcolor_x11.cpp:45:
../include/qmap.h:110:13: error: ‘ptrdiff_t’ does not name a type
../include/qmap.h:226:13: error: ‘ptrdiff_t’ does not name a type
In file included from kernel/qmime.h:46:0,
                 from kernel/qevent.h:48,
                 from kernel/qobject.h:48,
                 from kernel/qwidget.h:46,
                 from kernel/qdesktopwidget.h:43,
                 from kernel/qapplication.h:45,
                 from kernel/qcolor_x11.cpp:45:
../include/qmap.h:607:13: error: ‘ptrdiff_t’ does not name a type
make[1]: *** [.obj/release-shared-mt/qcolor_x11.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-libs/qt-meta-3.3.8b-r2/work/qt-x11-free-3.3.8b/src'
make: *** [sub-src] Error 2
emake failed
 * ERROR: x11-libs/qt-meta-3.3.8b-r2 failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 2419:  Called die
 * The specific snippet of code:
 *       emake src-qmake src-moc sub-src || die;
 *


this is a reinstall if qt3 in world update.
how to correct this error?
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
daveaube
n00b
n00b


Joined: 13 Nov 2010
Posts: 3

PostPosted: Mon Sep 17, 2012 12:21 pm    Post subject: Re: x11-libs/qt-meta-3.3.8b-r2 failed error: ‘ptrdiff_t’ doe Reply with quote

padoor wrote:
Code:
READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/var/tmp/portage/x11-libs/qt-meta-3.3.8b-r2/work/qt-x11-free-3.3.8b/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/opentype -I../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qcolor_x11.o kernel/qcolor_x11.cpp
In file included from ../include/qstringlist.h:45:0,
                 from kernel/qcolor.h:46,
                 from kernel/qcolor_x11.cpp:41:
../include/qvaluelist.h:91:13: error: ‘ptrdiff_t’ does not name a type
../include/qvaluelist.h:167:13: error: ‘ptrdiff_t’ does not name a type
In file included from ../include/qstringlist.h:45:0,
                 from kernel/qcolor.h:46,
                 from kernel/qcolor_x11.cpp:41:
../include/qvaluelist.h:427:13: error: ‘ptrdiff_t’ does not name a type
In file included from kernel/qmime.h:46:0,
                 from kernel/qevent.h:48,
                 from kernel/qobject.h:48,
                 from kernel/qwidget.h:46,
                 from kernel/qdesktopwidget.h:43,
                 from kernel/qapplication.h:45,
                 from kernel/qcolor_x11.cpp:45:
../include/qmap.h:110:13: error: ‘ptrdiff_t’ does not name a type
../include/qmap.h:226:13: error: ‘ptrdiff_t’ does not name a type
In file included from kernel/qmime.h:46:0,
                 from kernel/qevent.h:48,
                 from kernel/qobject.h:48,
                 from kernel/qwidget.h:46,
                 from kernel/qdesktopwidget.h:43,
                 from kernel/qapplication.h:45,
                 from kernel/qcolor_x11.cpp:45:
../include/qmap.h:607:13: error: ‘ptrdiff_t’ does not name a type
make[1]: *** [.obj/release-shared-mt/qcolor_x11.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-libs/qt-meta-3.3.8b-r2/work/qt-x11-free-3.3.8b/src'
make: *** [sub-src] Error 2
emake failed
 * ERROR: x11-libs/qt-meta-3.3.8b-r2 failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 2419:  Called die
 * The specific snippet of code:
 *       emake src-qmake src-moc sub-src || die;
 *


this is a reinstall if qt3 in world update.
how to correct this error?





Did you get this fixed? I'm at the same error.
I looked in the files qvaluelist.h, and qmap.h, and the line "#include <stddef.h>" is in both files. I'm about to try Linux From Scratch just to get KDE-3.5 and Amarok-1.4. what a nightmare.
dave
Back to top
View user's profile Send private message
Xenoist
n00b
n00b


Joined: 21 Aug 2002
Posts: 26
Location: EU/DE/NRW/NEUSS

PostPosted: Thu Feb 21, 2013 4:06 pm    Post subject: fixed with patch Reply with quote

Pelase add to qt-meta-3.3.8b-r2.ebuild

# Fix ptrdiff_t bug
epatch "${FILESDIR}"/qt-3.3.8-stddef.patch

qt-3.3.8-stddef.patch

--- src/tools/qvaluelist.h 2008-01-15 20:09:13.000000000 +0100
+++ src/tools/qvaluelist.h 2013-02-21 16:39:02.268736404 +0100
@@ -45,6 +45,7 @@
#include "qtl.h"
#include "qshared.h"
#include "qdatastream.h"
+#include <stddef.h>
#endif // QT_H

#ifndef QT_NO_STL
--- src/tools/qmap.h 2008-01-15 20:09:13.000000000 +0100
+++ src/tools/qmap.h 2013-02-21 16:39:23.858881970 +0100
@@ -47,6 +47,7 @@
#include "qdatastream.h"
#include "qpair.h"
#include "qvaluelist.h"
+#include <stddef.h>
#endif // QT_H

#ifndef QT_NO_STL
_________________
Once live is to short to learn all, but keep trying it.

"emerge the world" every day!


Last edited by Xenoist on Tue Apr 09, 2013 4:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
grosmano
n00b
n00b


Joined: 02 Jul 2012
Posts: 34

PostPosted: Tue Apr 09, 2013 2:44 pm    Post subject: Reply with quote

Hello,

In a trial to follow the instructions above, i added the line
Quote:
epatch "${FILESDIR}"/qt-3.3.8-stddef.patch

in the file qt-meta-3.3.8b-r2.ebuild, after the other eptach lines in the src_unpack() section.
Then copied the lines
Quote:
--- src2/tools/qvaluelist.h 2008-01-15 20:09:13.000000000 +0100

to
Quote:
#ifndef QT_NO_STL

in a new file dev-qt/qt-meta/files/qt-3.3.8-stddef.patch in the overlay's tree and ran "ebuild
qt-meta-3.3.8b-r2.ebuild manifest" in the ebuild's directory.

When i try to emerge =dev-qt/qt-meta-3.3.8b-r2 patching fails, below is the content of qt-3.3.8-stddef.patch.out :

Quote:
***** qt-3.3.8-stddef.patch *****
PWD: /var/tmp/portage/dev-qt/qt-meta-3.3.8b-r2/work/qt-x11-free-3.3.8b

=================================

PATCH COMMAND: patch -p0 -g0 -E --no-backup-if-mismatch < '/var/lib/layman/kde-sunset/dev-qt/qt-meta/files/qt-3.3.8-stddef.patch'

=================================
patching file src/tools/qvaluelist.h
patch: **** malformed patch at line 13: @@ -47,6 +47,7 @@


patch program exited with status 2
=================================

PATCH COMMAND: patch -p1 -g0 -E --no-backup-if-mismatch < '/var/lib/layman/kde-sunset/dev-qt/qt-meta/files/qt-3.3.8-stddef.patch'

=================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- src2/tools/qvaluelist.h 2008-01-15 20:09:13.000000000 +0100
|+++ src/tools/qvaluelist.h 2013-02-21 16:39:02.268736404 +0100
--------------------------
No file to patch. Skipping patch.
patch: **** malformed patch at line 13: @@ -47,6 +47,7 @@


patch program exited with status 2
=================================

PATCH COMMAND: patch -p2 -g0 -E --no-backup-if-mismatch < '/var/lib/layman/kde-sunset/dev-qt/qt-meta/files/qt-3.3.8-stddef.patch'

=================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- src2/tools/qvaluelist.h 2008-01-15 20:09:13.000000000 +0100
|+++ src/tools/qvaluelist.h 2013-02-21 16:39:02.268736404 +0100
--------------------------
No file to patch. Skipping patch.
patch: **** malformed patch at line 13: @@ -47,6 +47,7 @@


patch program exited with status 2
=================================

PATCH COMMAND: patch -p3 -g0 -E --no-backup-if-mismatch < '/var/lib/layman/kde-sunset/dev-qt/qt-meta/files/qt-3.3.8-stddef.patch'

=================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- src2/tools/qvaluelist.h 2008-01-15 20:09:13.000000000 +0100
|+++ src/tools/qvaluelist.h 2013-02-21 16:39:02.268736404 +0100
--------------------------
No file to patch. Skipping patch.
patch: **** malformed patch at line 13: @@ -47,6 +47,7 @@


patch program exited with status 2
=================================

PATCH COMMAND: patch -p4 -g0 -E --no-backup-if-mismatch < '/var/lib/layman/kde-sunset/dev-qt/qt-meta/files/qt-3.3.8-stddef.patch'

=================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- src2/tools/qvaluelist.h 2008-01-15 20:09:13.000000000 +0100
|+++ src/tools/qvaluelist.h 2013-02-21 16:39:02.268736404 +0100
--------------------------
No file to patch. Skipping patch.
patch: **** malformed patch at line 13: @@ -47,6 +47,7 @@


patch program exited with status 2

It seems there are two kind of errors, one is "**** malformed patch at line 13: @@ -47,6 +47,7 @@" but after reading a bit about patches and comparing with another qt-3.3.8-something patch i cannot figure out what could be wrong with this line. The other error says "can't find file to patch at input line 3", indeed there is no src2 directory in /var/tmp/portage/dev-qt/qt-meta-3.3.8b-r2/work/qt-x11-free-3.3.8b but i have the same kind of error if i try to replace src2 by src in the pach file, whereas the file src/tools/qvaluelist.h is present in this folder (and contains the lines indicated in the patch).
Any idea ? I am discovering these patching things so maybe i missed something that should be trivial :)
Back to top
View user's profile Send private message
Xenoist
n00b
n00b


Joined: 21 Aug 2002
Posts: 26
Location: EU/DE/NRW/NEUSS

PostPosted: Tue Apr 09, 2013 4:48 pm    Post subject: Reply with quote

Patches are sometimes very nasty.

It could be that the website setting show's a wrong symbol for patch.

It could be a space, linefeed or something similar too.

The source code could have been changed also.

I must have a look if the package builds at all.

If so, i'll open a bug on bugs.gentoo.org.

Anyway have a look to my file:

http://it-shamans.eu/files/qt-3.3.8-stddef.patch

Should work ipv6 too.
_________________
Once live is to short to learn all, but keep trying it.

"emerge the world" every day!


Last edited by Xenoist on Mon Jun 24, 2013 2:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
grosmano
n00b
n00b


Joined: 02 Jul 2012
Posts: 34

PostPosted: Tue Apr 09, 2013 5:58 pm    Post subject: Reply with quote

Thank you Xenoist, emerge was succesful using you file !

Xenoist wrote:
It could be that the website setting show's a wrong symbol for patch.

It could be a space, linefeed or something similar too.

This is likely: the leading spaces were missing for the lines starting with a "#" on my previous patch file.
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