[Bug 180797] New: failed to build kdesupport ("errno" in formal parameter lists). svn revision: 911333)
Yevgeniy
YLitvinenko at astana.oilfield.slb.com
Thu Jan 15 10:30:45 GMT 2009
http://bugs.kde.org/show_bug.cgi?id=180797
Summary: failed to build kdesupport ("errno" in formal parameter
lists). svn revision: 911333)
Product: kde
Version: unspecified
Platform: Compiled Sources
OS/Version: Solaris
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: unassigned-bugs at kde.org
ReportedBy: YLitvinenko at astana.oilfield.slb.com
Version: (using Devel)
Compiler: GNU gcc (GCC) 4.3.2
OS: Solaris
Installed from: Compiled sources
Compilation of kdesupport failed with errors:
/home/unix/build/telepathy-qt/src/Client/__/__/include/QtTelepathy/Client/moc_channel_type_streamed_media.cxx:92:
error: invalid conversion from 'unsigned int' to 'uint* (*)()'
/home/unix/build/telepathy-qt/src/Client/__/__/include/QtTelepathy/Client/moc_channel_type_streamed_media.cxx:92:
error: initializing argument 2 of 'void OrgFreedesktopTelepathyChannelTy
peStreamedMediaInterface::StreamError(uint, uint* (*)(), const QString&)'
/home/unix/build/telepathy-qt/src/Client/__/__/include/QtTelepathy/Client/moc_channel_type_streamed_media.cxx:124:
error: prototype for 'void OrgFreedesktopTelepathyChannelTypeStreamedMedi
aInterface::StreamError(uint, uint, const QString&)' does not match any in
class 'OrgFreedesktopTelepathyChannelTypeStreamedMediaInterface'
/home/unix/build/telepathy-qt/src/Client/__/__/include/QtTelepathy/Client/../../../../../../../../../kdesupport/telepathy-qt/include/QtTelepathy/Client/channel_type_streamed_media.h:74:
error: candidate is: void
OrgFreedesktopTelepathyChannelTypeStreamedMediaInterface::StreamError(uint,
uint* (*)(), const QString&)
and
/home/unix/build/telepathy-qt/src/Client/__/__/include/QtTelepathy/Client/moc_media_stream_handler.cxx:132:
error: invalid conversion from 'unsigned int' to 'uint* (*)()'
/home/unix/build/telepathy-qt/src/Client/__/__/include/QtTelepathy/Client/moc_media_stream_handler.cxx:132:
error: initializing argument 1 of 'QDBusReply<void>
OrgFreedesktopTelepathyMed
iaStreamHandlerInterface::Error(uint* (*)(), const QString&)'
I think these errors because of using word "errno" as name of a formal
parameter in the following functions:
1)
File:
telepathy-qt/include/QtTelepathy/Core/channel_type_streamed_media_adaptor.h
void StreamError(uint stream_id, uint errno, const QString &message)
2)
File: telepathy-qt/include/QtTelepathy/Client/channel_type_streamed_media.h
void StreamError(uint stream_id, uint errno, const QString &message);
3)
File: telepathy-qt/include/QtTelepathy/Core/media_stream_handler_adaptor.h
void Error(uint errno, const QString &message);
4)
File: telepathy-qt/include/QtTelepathy/Client/media_stream_handler.h
inline QDBusReply<void> Error(uint errno, const QString &message)
In my case I've got round this problem by adding
#undef errno
in the mentioned files just after last directive #include
But I think it is better to avoid using the word "errno"
OS: SunOS 5.11 snv_104 i86pc i386 i86pc Solaris
compiler: GNU gcc 4.3.2
preprocessor: cpp (GCC) 4.3.2
linker: GNU ld (GNU Binutils) 2.18
--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list