Apache OpenOffice (AOO) Bugzilla – Issue 32707
binfilter: `acquire' undeclared (first use this function)
Last modified: 2004-09-08 16:53:51 UTC
Hi, while compiling bf_xmloff/source/chart/xmloff_SchXMLAutoStylePoolP.cxx in SRC680_m50: In file included from ../../../inc/bf_xmloff/SchXMLExport.hxx:65, from /home/oo/BuildDir/ooo_SRC680_m50_src/binfilter/bf_xmloff/source/chart/xmloff_SchXMLAutoStylePoolP.cxx:65: ../../../inc/bf_xmloff/uniref.hxx: In copy constructor `binfilter::UniReference<T>::UniReference(const binfilter::UniReference<T>&) [with T = binfilter::XMLPropertySetMapper]': ../../../inc/bf_xmloff/SchXMLExportHelper.hxx:207: instantiated from here ../../../inc/bf_xmloff/uniref.hxx:168: error: `acquire' undeclared (first use this function) ../../../inc/bf_xmloff/uniref.hxx:168: error: (Each undeclared identifier is reported only once for each function it appears in.) ../../../inc/bf_xmloff/uniref.hxx: In destructor `binfilter::UniReference<T>::~UniReference() [with T = binfilter::XMLPropertySetMapper]': ../../../inc/bf_xmloff/SchXMLExportHelper.hxx:207: instantiated from here ../../../inc/bf_xmloff/uniref.hxx:175: error: `release' undeclared (first use this function) dmake: Error code 1, while making '../../../unxlngi4.pro/slo/xmloff_SchXMLAutoStylePoolP.obj' ---* tg_merge.mk *--- ERROR: Error 65280 occurred while making /home/oo/BuildDir/ooo_SRC680_m50_src/binfilter/bf_xmloff/source/chart
Hi pjanik, thanks for using and supporting OpenOffice.org... ----------- reassigned to aw mci->aw: Hi aw, this seems to be something for you, too...
This fixed it, but it is not correct solution, surely: --- uniref.hxx.~1.2.~ 2003-12-05 10:18:03.000000000 +0100 +++ uniref.hxx 2004-08-11 22:16:19.000000000 +0200 @@ -164,15 +164,11 @@ inline UniReference< T >::UniReference( const UniReference< T > & rRef ) : mpElement( rRef.mpElement ) { - if( mpElement ) - mpElement->acquire(); } template< class T > inline UniReference< T >::~UniReference() { - if( mpElement ) - mpElement->release(); } /**
I use gcc version 3.3.1 (SuSE Linux) on the build machine (SL9.0).
The following seems to correct this build error: Index: xmloff_SchXMLAutoStylePoolP.cxx =================================================================== --- xmloff_SchXMLAutoStylePoolP.cxx (revision 59) +++ xmloff_SchXMLAutoStylePoolP.cxx (revision 60) @@ -58,6 +58,9 @@ * * ************************************************************************/ + +#include <xmlprmap.hxx> + // auto strip #include "SchXMLAutoStylePoolP.hxx" #include "PropertyMap.hxx"
set target, raising prio, because this is build issue.
Confirming error currently on HEAD, see tinderbox http://ooo.ximian.com
Confirming patch by rodarvus works correctly.
changing type to patch. hr: could you please commit it to some branch so it is on HEAD soon?
Fixed in cws pj01.
Verified
Closing.