On 10/21/2010 04:48 PM, Jonathan Robie wrote: > On 10/21/2010 03:33 PM, Robert Schweikert wrote: > >> I am attaching the .i file. >> >> So if 2.2.3 works for you I guess there might be some instantiation >> issue. I am building with 4.4.1, or an issue with boost. I am using 1.39 > > I suspect this may be an autotools configuration issue. If you look at > configure.ac, it checks to see if > <xqilla/ast/XQEffectiveBooleanValue.hpp> is available. > >> # Check to see if we need to use legacy calls for effective boolean >> value >> xqilla_has_ebv=yes >> AC_CHECK_HEADER([xqilla/ast/XQEffectiveBooleanValue.hpp], , >> [xqilla_has_ebv=no]) >> test $xqilla_has_ebv = yes && >> AC_DEFINE([XQ_EFFECTIVE_BOOLEAN_VALUE_HPP], [1], [XQilla version >> has xqilla/ast/XQEffectiveBooleanValue.hpp.]) > > Perhaps AC_CHECK_HEADER is not finding the header file? > > If you look at XmlExchange.cpp, it checks this define to see whether to > include the file that defines effective boolean value: > >> #ifdef XQ_EFFECTIVE_BOOLEAN_VALUE_HPP >> #include <xqilla/ast/XQEffectiveBooleanValue.hpp> >> #endif > > Later on, it uses the same define to decide whether to use the older > XQilla API or the newer one: > >> #ifdef XQ_EFFECTIVE_BOOLEAN_VALUE_HPP >> Item::Ptr first_ = result->next(context.get()); >> Item::Ptr second_ = result->next(context.get()); >> return XQEffectiveBooleanValue::get(first_, second_, >> context.get(), 0); >> #else >> return result->getEffectiveBooleanValue(context.get(), 0); >> #endif
If I add the include file and the code cahnges for the return value things compile. > > What happens if you set XQ_EFFECTIVE_BOOLEAN_VALUE_HPP by hand? > > Jonathan > > --------------------------------------------------------------------- > Apache Qpid - AMQP Messaging Implementation > Project: http://qpid.apache.org > Use/Interact: mailto:[email protected] > -- Robert Schweikert MAY THE SOURCE BE WITH YOU Software Engineer Consultant LINUX [email protected] 781-464-8147 Novell Making IT Work As One --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:[email protected]
