[pkg-kolab] Bug#756866: [libkolabxml] FTBFS from source on sid amd64 (sbuild/pbuilder)

Diane Trout diane at ghic.org
Sat Aug 9 18:11:15 UTC 2014


I think found the needed change. I looked at the source generated by xsdcxx 
and noticed the char, parameter added to the simple_type declaration. 
Forwarding this upstream as well.

Diane

diff --git a/src/shared_conversions.h b/src/shared_conversions.h
index 119c5e8..6c1a416 100644
--- a/src/shared_conversions.h
+++ b/src/shared_conversions.h
@@ -29,7 +29,7 @@ namespace Kolab {
 typedef boost::shared_ptr<cDateTime> cDateTimePtr;
 
 typedef ::xsd::cxx::tree::type type;
-typedef ::xsd::cxx::tree::simple_type< type > simple_type;
+typedef ::xsd::cxx::tree::simple_type< char, type > simple_type;
 typedef ::xsd::cxx::tree::date< char, simple_type > date;
 typedef ::xsd::cxx::tree::date_time< char, simple_type > date_time;



On Saturday, August 02, 2014 19:33:21 Franz Schrober wrote:
> Just tested the upstream master and it seems that it also stops building on
> Debian sid with the error messages like (and of course the ones I've posted
> earlier in the bug report):
> 
> /tmp/sbuild/libkolabxml-git/a/bindings/iCalendar-props.hxx:923:5: note:
> const date_optional& icalendar_2_0::DateDatetimePropertyType::date() const
> date () const;
>      ^
> /tmp/sbuild/libkolabxml-git/a/bindings/iCalendar-props.hxx:923:5: note:  
> candidate expects 0 arguments, 1 provided
> /tmp/sbuild/libkolabxml-git/a/bindings/iCalendar-props.hxx:926:5: note:
> icalendar_2_0::DateDatetimePropertyType::date_optional&
> icalendar_2_0::DateDatetimePropertyType::date() date ();
>      ^
> /tmp/sbuild/libkolabxml-git/a/bindings/iCalendar-props.hxx:926:5: note:  
> candidate expects 0 arguments, 1 provided
> /tmp/sbuild/libkolabxml-git/a/bindings/iCalendar-props.hxx:929:5: note:
> void icalendar_2_0::DateDatetimePropertyType::date(const date_type&) date
> (const date_type& x);
>      ^
> /tmp/sbuild/libkolabxml-git/a/bindings/iCalendar-props.hxx:929:5: note:   no
> known conversion for argument 1 from ‘Kolab::Shared::date {aka
> xsd::cxx::tree::date<char, int>}’ to ‘const date_type& {aka const
> xsd::cxx::tree::date<char, xsd::cxx::tree::simple_type<char,
> xsd::cxx::tree::_type> >&}’
> /tmp/sbuild/libkolabxml-git/a/bindings/iCalendar-props.hxx:932:5: note:
> void icalendar_2_0::DateDatetimePropertyType::date(const date_optional&)
> date (const date_optional& x);
>      ^
> /tmp/sbuild/libkolabxml-git/a/bindings/iCalendar-props.hxx:932:5: note:   no
> known conversion for argument 1 from ‘Kolab::Shared::date {aka
> xsd::cxx::tree::date<char, int>}’ to ‘const date_optional& {aka const
> xsd::cxx::tree::optional<xsd::cxx::tree::date<char,
> xsd::cxx::tree::simple_type<char, xsd::cxx::tree::_type> > >&}’
> /tmp/sbuild/libkolabxml-git/a/bindings/iCalendar-props.hxx:935:5: note:
> void
> icalendar_2_0::DateDatetimePropertyType::date(std::auto_ptr<xsd::cxx::tree:
> :date<char, xsd::cxx::tree::simple_type<char, xsd::cxx::tree::_type> > >)
> date (::std::auto_ptr< date_type > p);
>      ^
> /tmp/sbuild/libkolabxml-git/a/bindings/iCalendar-props.hxx:935:5: note:   no
> known conversion for argument 1 from ‘Kolab::Shared::date {aka
> xsd::cxx::tree::date<char, int>}’ to
> ‘std::auto_ptr<xsd::cxx::tree::date<char, xsd::cxx::tree::simple_type<char,
> xsd::cxx::tree::_type> > >’ In file included from
> /tmp/sbuild/libkolabxml-git/src/kolabformat.cpp:21:0:
> /tmp/sbuild/libkolabxml-git/src/xcalconversions.h:513:9: error: no matching
> function for call to
> ‘icalendar_2_0::RecurrenceIdPropType::date_time(Kolab::Shared::date_time)’
> ptr->date_time(Shared::fromDateTime(dt));
>          ^
> /tmp/sbuild/libkolabxml-git/src/xcalconversions.h:513:9: note: candidates
> are: In file included from
> /tmp/sbuild/libkolabxml-git/a/bindings/kolabformat-xcal.hxx:292:0, from
> /tmp/sbuild/libkolabxml-git/src/xcalconversions.h:24, from
> /tmp/sbuild/libkolabxml-git/src/kolabformat.cpp:21:
> /tmp/sbuild/libkolabxml-git/a/bindings/iCalendar-props.hxx:902:5: note:
> const date_time_optional&
> icalendar_2_0::DateDatetimePropertyType::date_time() const date_time ()
> const;
>      ^
> /tmp/sbuild/libkolabxml-git/a/bindings/iCalendar-props.hxx:902:5: note:  
> candidate expects 0 arguments, 1 provided
> /tmp/sbuild/libkolabxml-git/a/bindings/iCalendar-props.hxx:905:5: note:
> icalendar_2_0::DateDatetimePropertyType::date_time_optional&
> icalendar_2_0::DateDatetimePropertyType::date_time() date_time ();
>      ^
> /tmp/sbuild/libkolabxml-git/a/bindings/iCalendar-props.hxx:905:5: note:  
> candidate expects 0 arguments, 1 provided
> /tmp/sbuild/libkolabxml-git/a/bindings/iCalendar-props.hxx:908:5: note:
> void icalendar_2_0::DateDatetimePropertyType::date_time(const
> date_time_type&) date_time (const date_time_type& x);
>      ^
> /tmp/sbuild/libkolabxml-git/a/bindings/iCalendar-props.hxx:908:5: note:   no
> known conversion for argument 1 from ‘Kolab::Shared::date_time {aka
> xsd::cxx::tree::date_time<char, int>}’ to ‘const date_time_type& {aka const
> icalendar_2_0::DateTimeType&}’
> /tmp/sbuild/libkolabxml-git/a/bindings/iCalendar-props.hxx:911:5: note:
> void icalendar_2_0::DateDatetimePropertyType::date_time(const
> date_time_optional&) date_time (const date_time_optional& x);
>      ^
> /tmp/sbuild/libkolabxml-git/a/bindings/iCalendar-props.hxx:911:5: note:   no
> known conversion for argument 1 from ‘Kolab::Shared::date_time {aka
> xsd::cxx::tree::date_time<char, int>}’ to ‘const date_time_optional& {aka
> const xsd::cxx::tree::optional<icalendar_2_0::DateTimeType>&}’
> /tmp/sbuild/libkolabxml-git/a/bindings/iCalendar-props.hxx:914:5: note:
> void
> icalendar_2_0::DateDatetimePropertyType::date_time(std::auto_ptr<icalendar_
> 2_0::DateTimeType>) date_time (::std::auto_ptr< date_time_type > p);
> 
> 
> 
> 
> 
> 
> 
> 
> So it looks like the libkolab* stuff does not only loose data but it doesn't
> build anymore.




More information about the pkg-kolab-devel mailing list