Bug 243862

Summary: build fails on Solaris - conflicting defines
Product: [Applications] kopete Reporter: tropikhajma <tropikhajma>
Component: Novell GroupWise Messenger PluginAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Solaris   
Latest Commit: Version Fixed In:
Attachments: patch

Description tropikhajma 2010-07-07 17:09:26 UTC
Created attachment 48660 [details]
patch

Version:           unspecified (using Devel) 
OS:                Solaris

building kdenetwork from svn fails with
...
"/export/home/test/Dashboards/kdenetwork/srcdir/kopete/protocols/groupwise/libgroupwise/rtf2html.h", line 102: Warning: p hides Level::p.
"rtf.ll", line 95: Warning: s hides RTF2HTML::s.
"rtf.ll", line 637: Error: A declaration does not specify a tag or an identifier.
"rtf.ll", line 637: Error: Use ";" to terminate declarations.
"rtf.ll", line 637: Error: A declaration was expected instead of "1".
"rtf.ll", line 760: Warning: s hides RTF2HTML::s.
"rtf.ll", line 801: Error: Case label defined twice.
4 Error(s) and 3 Warning(s) detected.


this is because on OpenSolaris the file /usr/include/sys/regset.h defines FS
The attached patch undefines FS on the Solaris platform, allowing the compilation to proceed

Reproducible: Always
Comment 1 tropikhajma 2010-11-17 23:17:09 UTC
SVN commit 1198229 by pavelheimlich:

fix build on Solaris
BUG:243862


 M  +5 -0      rtf.cc  
 M  +5 -0      rtf.ll  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1198229