Bug 45274

Summary: telepathy-qt-0.9.0 build fails with gcc-4.7.0, 'intptr_t' was not declared in this scope
Product: Telepathy Reporter: Rex Dieter <rdieter>
Component: tp-qtAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: full build.log
adds #include <stdint.h>

Description Rex Dieter 2012-01-26 08:01:21 UTC
Created attachment 56191 [details]
full build.log

cd /builddir/build/BUILD/telepathy-qt-0.9.0/i686-redhat-linux-gnu/TelepathyQt && /usr/bin/c++   -Dtelepathy_qt4_EXPORTS -D_BSD_SOURCE -DQT_NO_CAST_FROM_ASCII -DENABLE_DEBUG -DBUILDING_TP_QT -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables   -Wall -Wextra -Wsign-compare -Wpointer-arith -Wformat-security -Winit-self -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-unused-parameter -fvisibility=hidden  -Wdeprecated-declarations -DTP_QT_DEPRECATED_WARNINGS -O2 -ggdb -fPIC -I/builddir/build/BUILD/telepathy-qt-0.9.0/i686-redhat-linux-gnu/TelepathyQt -I/builddir/build/BUILD/telepathy-qt-0.9.0/TelepathyQt -I/builddir/build/BUILD/telepathy-qt-0.9.0 -I/builddir/build/BUILD/telepathy-qt-0.9.0/i686-redhat-linux-gnu -I/usr/include/QtDesigner -I/usr/include/QtDeclarative -I/usr/include/QtScriptTools -I/usr/include/QtDBus -I/usr/include/QtXml -I/usr/include/QtSql -I/usr/include/QtOpenGL -I/usr/include/QtMultimedia -I/usr/include/QtNetwork -I/usr/include/QtXmlPatterns -I/usr/include/QtHelp -I/usr/include/QtUiTools -I/usr/include/QtTest -I/usr/include/QtScript -I/usr/include/QtSvg -I/usr/include/Qt3Support -I/usr/include/QtGui -I/usr/include/QtCore -I/usr/lib/qt4/mkspecs/default    -o CMakeFiles/telepathy-qt4.dir/connection-factory.cpp.o -c /builddir/build/BUILD/telepathy-qt-0.9.0/TelepathyQt/connection-factory.cpp
/builddir/build/BUILD/telepathy-qt-0.9.0/TelepathyQt/client-registrar.cpp: In member function 'bool Tp::ClientRegistrar::registerClient(const AbstractClientPtr&, const QString&, bool)':
/builddir/build/BUILD/telepathy-qt-0.9.0/TelepathyQt/client-registrar.cpp:891:23: error: 'intptr_t' was not declared in this scope
Comment 1 Rex Dieter 2012-02-09 10:39:24 UTC
Created attachment 56829 [details] [review]
adds #include <stdint.h>

First attempt at fix.
Comment 2 Rex Dieter 2012-02-09 10:41:44 UTC
I also tried adding
#include <cstdint>
but saw an additional error:

This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options.

So, opted for the minimal approach instead.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.