Apache OpenOffice (AOO) Bugzilla – Issue 56716
`-fexceptions' is needed on a lot of new files
Last modified: 2006-01-17 10:57:04 UTC
cppuhelper's interfacecontainer.h can now "throw exceptions" (since, at least m134) and so all files including it (directly and otherwise) need to be compiled with `-fexceptions'. Various makefile.mk files must now expand their lists of EXCEPTIONSFILES -- or, perhaps, the throwing can be removed from interfacecontainer.h... I have a patch, but it is, probably, incomplete :-( (I'm using gcc-3.4.4 on FreeBSD-6/amd64)
Created attachment 30865 [details] Patch 19 makefile.mk's to ensure `-fexceptions', where needed
Obo, dbo! The change, that added "try/catch/throw" to cppuhelper/inc/cppuhelper/interfacecontainer.h is, apparently, by you: revision 1.16 date: 2005/10/11 08:20:32; author: obo; state: Exp; lines: +35 -1 INTEGRATION: CWS presfixes08 (1.14.28); FILE MERGED 2005/09/01 09:09:46 dbo 1.14.28.1: #i51786# added forEach() Can you please, take a look at all of the implications (vast number of files now require -fexceptions to compile) or, perhaps, revert the change or revise the forEach to avoid requiring exceptions? My patch currently attached to this issue is very incomplete, but it already gives an idea of the scope of the required changes :-( Thanks!
Created attachment 30941 [details] A bigger, yet still incomplete version of the patch. 32 makefiles patched...
I have #if defined(EXCEPTIONS_OFF) func( xListener ); #else try { func( xListener ); ... #endif in cppuhelper/interfacecontainer.h (rev 1.17) which ought to solve the problem; thus there is no need to modify makefiles. @HR: please apply to next milestone. @panbk: Please verify whether interfacecontainer.h rev 1.17 works for you (without patching any makefiles)
fixed.
please verify. re-open issue and reassign to panbk
reassign to panbk
reset resolution to FIXED
Yes, seems to work. The fix looks a little "hackish" though :-) Thanks for the quick reaction!
@panbk: please mark this issue verified... The "solution" is not hacky; IMO it is hacky/fragile not compiling all of our code with exception support, but allowing exceptions to be used.
verified
has long been fixed, closeing issue.