Bug 45274 - telepathy-qt-0.9.0 build fails with gcc-4.7.0, 'intptr_t' was not declared in this scope
Summary: telepathy-qt-0.9.0 build fails with gcc-4.7.0, 'intptr_t' was not declared in...
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-qt (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
Depends on:
Reported: 2012-01-26 08:01 UTC by Rex Dieter
Modified: 2012-05-02 07:47 UTC (History)
0 users

See Also:
i915 platform:
i915 features:

full build.log (512.46 KB, text/x-log)
2012-01-26 08:01 UTC, Rex Dieter
adds #include <stdint.h> (1.36 KB, patch)
2012-02-09 10:39 UTC, Rex Dieter
Details | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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.