Bug 254808

Summary: build failure in runtime/xml/xmldocument.cpp
Product: [Applications] kdepim Reporter: tropikhajma <tropikhajma>
Component: libkdepimAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: montel
Priority: NOR Keywords: triaged
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Solaris   
Latest Commit: Version Fixed In:

Description tropikhajma 2010-10-20 23:46:58 UTC
Version:           unspecified (using Devel) 
OS:                Solaris

builing kdepim fails with
...
"/export/home/test/Dashboards/kdepim/srcdir/runtime/xml/xmldocument.cpp", line 149: Error: Template parameter FreeFunc requires an expression of type void(*)(_xmlDoc*).
"/export/home/test/Dashboards/kdepim/srcdir/runtime/xml/xmldocument.cpp", line 156: Error: Template parameter FreeFunc requires an expression of type void(*)(_xmlDoc*).
"/export/home/test/Dashboards/kdepim/srcdir/runtime/xml/xmldocument.cpp", line 161: Error: Template parameter FreeFunc requires an expression of type void(*)(_xmlSchemaParserCtxt*).
"/export/home/test/Dashboards/kdepim/srcdir/runtime/xml/xmldocument.cpp", line 166: Error: Template parameter FreeFunc requires an expression of type void(*)(_xmlSchema*).
"/export/home/test/Dashboards/kdepim/srcdir/runtime/xml/xmldocument.cpp", line 171: Error: Template parameter FreeFunc requires an expression of type void(*)(_xmlSchemaValidCtxt*).
5 Error(s) detected.
(see http://my.cdash.org/viewBuildError.php?buildid=107010)

This issue is present for quite a long time. The kde-solaris project has a patch for it at
http://solaris.bionicmutton.org/hg/kde4-specs-460/file/be7804868c7b/specs/patches/kdepim-runtime/kdepim-runtime-akonadi.diff
but I cannot guarantee it's a good solution.

This is on OpenSolaris b134 using the Sun Studio 12u1 compiler.

Reproducible: Always
Comment 1 groot 2010-10-21 00:25:28 UTC
On Wednesday, October 20, 2010 11:46:59 pm tropikhajma wrote:
> "/export/home/test/Dashboards/kdepim/srcdir/runtime/xml/xmldocument.cpp",
> line 149: Error: Template parameter FreeFunc requires an expression of
> type void(*)(_xmlDoc*).

What the error message isn't saying is that the template expects a C++-linkage 
function to be passed in, while the functions declared by libxml are C 
linkage. The patch adds totally bogus C++ linkage versions of the same. 
Perhaps they should be inline as well.

There's also some additional explicit bool() operators in the patch to 
disambiguate from operator ().

[ade]
Comment 2 Laurent Montel 2012-09-02 11:51:52 UTC
Fixed ?
Comment 3 Andrew Crouthamel 2018-09-23 02:34:44 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Andrew Crouthamel 2018-10-27 04:18:05 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!