Bug 156950 - Koffice compilation fails in kross module on OpenSolaris
Summary: Koffice compilation fails in kross module on OpenSolaris
Status: RESOLVED FIXED
Alias: None
Product: koffice
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: KOffice Bug Wranglers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-30 06:57 UTC by Moinak Ghosh
Modified: 2008-01-30 20:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Undefine _XPG4 in Objects.hxx and pythonconfig.h on OpenSolaris (963 bytes, patch)
2008-01-30 07:01 UTC, Moinak Ghosh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Moinak Ghosh 2008-01-30 06:57:59 UTC
Version:           1.6.3 (using KDE 3.5.8)
Installed from:    Compiled From Sources
Compiler:          Gcc 3.4.3 
OS:                Solaris

The Python scripting code in kross fails to build due to conflicting definitions of the swab function imported via pythonconfig.h -> Python.h. This happens due to a certain combination of macro definitions in effect that affects the OpenSolaris headers stdlib.h and unistd.h.

The solution is to undefine _XPG4 before including Python.h. A suggested patch is attached.
Comment 1 Moinak Ghosh 2008-01-30 07:01:09 UTC
Created attachment 23362 [details]
Undefine _XPG4 in Objects.hxx and pythonconfig.h on OpenSolaris
Comment 2 Sebastian Sauer 2008-01-30 20:22:48 UTC
Patch applied with r768839 and forward-ported to trunk with r768846. Thank you very much Moinak!