<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openoffice.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Damjan</id>
	<title>Apache OpenOffice Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openoffice.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Damjan"/>
	<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/wiki/Special:Contributions/Damjan"/>
	<updated>2026-11-23T13:23:06Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=267467</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=267467"/>
		<updated>2026-07-01T01:11:44Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Add 87b5bd1523182d511fe508ae9f84c948f97f0721&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in the same order as given below, (ie. top to bottom, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&lt;br /&gt;
If a patch doesn&amp;#039;t apply, you have to make the equivalent code changes yourself.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date&lt;br /&gt;
! Git commit&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2fb14843010286ad9430e029e940242d039c9bf4 2fb14843010286ad9430e029e940242d039c9bf4]&lt;br /&gt;
| All: obsolete and remove the emulation of hash_map&amp;#039;s data_type typedef &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/60db4cd41876498d413568ed5a829ba6386245f9 60db4cd41876498d413568ed5a829ba6386245f9]&lt;br /&gt;
| Java: upgrade to the first version of commons-logging that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/21f06b298926b5eac098ed9c306560dd458d3a1e 21f06b298926b5eac098ed9c306560dd458d3a1e]&lt;br /&gt;
| Java: upgrade to the first version of commons-logging that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/47d3be6bd7cbd0f5aa101006532916676c4ceede 47d3be6bd7cbd0f5aa101006532916676c4ceede]&lt;br /&gt;
| Java: upgrade to the first version of commons-codec that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/bcff05d666ac35a4ddc41f4176bdf0038fd9cb02 bcff05d666ac35a4ddc41f4176bdf0038fd9cb02]&lt;br /&gt;
| Java: upgrade to the first version of commons-lang that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f0339755da5abc74646151d092c4739dd9e5ee54 f0339755da5abc74646151d092c4739dd9e5ee54]&lt;br /&gt;
| Java: related change to version upgrades code, logging &lt;br /&gt;
|-&lt;br /&gt;
| 2014-04-30&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/22076bf181e8f43a1d012a1c50cab412d09ed2b0 22076bf181e8f43a1d012a1c50cab412d09ed2b0]&lt;br /&gt;
| All: remove obsoleted sal-module-internal custom STL allocator &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5766e80935d60fd1804ed950d1972ff5e88fda76 5766e80935d60fd1804ed950d1972ff5e88fda76]&lt;br /&gt;
| All: fix default arguments in friend declarations &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49 ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49]&lt;br /&gt;
| All: remove custom allocator support in stlport-replacement headers &lt;br /&gt;
|-&lt;br /&gt;
| 2014-06-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e]&lt;br /&gt;
| FreeBSD: Fix the regression in 892b8f20ca40cc85f427d5bbef706b21ecd460e6. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-07-06&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76cf606939c261af2f957ef904a0384a3b6169da 76cf606939c261af2f957ef904a0384a3b6169da]&lt;br /&gt;
| FreeBSD: Add initial support for FreeBSD PPC using gcc.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-08-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/1b8c19f4d7f427d50c5ed0f65f07d814d9decf09 1b8c19f4d7f427d50c5ed0f65f07d814d9decf09]&lt;br /&gt;
| OS/2: build fixes for enabling Category B&lt;br /&gt;
|-&lt;br /&gt;
| 2014-11-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/55c23f91915c517b95be9f74fad73851a384fa05 55c23f91915c517b95be9f74fad73851a384fa05]&lt;br /&gt;
| OS/2: build fixes for enabling Category B also in OS/2 port.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-11-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&lt;br /&gt;
NOTE: needed for later patches, not just on OS/2. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-12-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/0fdc0ac7221c318421259c4834dce6b0be377a8b 0fdc0ac7221c318421259c4834dce6b0be377a8b]&lt;br /&gt;
| macOS: fix autodetection of the OSX 10.10 SDK&lt;br /&gt;
|-&lt;br /&gt;
| 2015-01-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/483bf1cb99a9fae931d407012ae00ce38c31b940 483bf1cb99a9fae931d407012ae00ce38c31b940]&lt;br /&gt;
| All: Fix build breaker introduced in revision 1651396&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
| FreeBSD: build structure changes &lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
| NSS build fixes. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
| FreeBSD: system jpeg build fix. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
| FreeBSD: better GCC/Clang support &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a84fbf33bbab2f93304ad5b1d232610ec9a69c27 a84fbf33bbab2f93304ad5b1d232610ec9a69c27]&lt;br /&gt;
| FreeBSD: Work around clang-3.4 issues.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-29&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-02&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/58303369294a39db2c0a54066360efff909daa9a 58303369294a39db2c0a54066360efff909daa9a]&lt;br /&gt;
| All: fix inlining options passed to Clang.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76decbbc67da8c86b617e1a4414d0f5ea6db5ff1 76decbbc67da8c86b617e1a4414d0f5ea6db5ff1]&lt;br /&gt;
| FreeBSD: FreeBSD-10 fixes&lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-13&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply). &lt;br /&gt;
|-&lt;br /&gt;
| 2015-10-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-12&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c4b07b4b14a3bb46b6e96fc7a31d099df09d5413 c4b07b4b14a3bb46b6e96fc7a31d099df09d5413]&lt;br /&gt;
| macOS: Add support for MacOSX El Capitan&lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/28633775241ee602b4a2e63aa263cce06685e4c0 28633775241ee602b4a2e63aa263cce06685e4c0]&lt;br /&gt;
| FreeBSD/Solaris: use $GREP, $EGREP in configure.ac&lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ceb6c4440c3fb3efdb611054a51caa1e35fd152e ceb6c4440c3fb3efdb611054a51caa1e35fd152e]&lt;br /&gt;
| FreeBSD: Allow build of Open Office on FreeBSD Mac PowerPCG5&lt;br /&gt;
|-&lt;br /&gt;
| 2016-01-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&lt;br /&gt;
NOTE: Only a portion of this patch matters, use:&lt;br /&gt;
git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx | patch -p1 &lt;br /&gt;
|-&lt;br /&gt;
| 2016-02-11&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu &lt;br /&gt;
|-&lt;br /&gt;
| 2016-06-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round(). &lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/b63233d868a9af170b0457a7aa0c5809011cc2c1 b63233d868a9af170b0457a7aa0c5809011cc2c1]&lt;br /&gt;
| All: Merge branches/gbuild-reintegration to trunk. (Only main/source_soenv.sh)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d1de9d7f8e018ffc301c2ceb9e5f62e3ca186daa d1de9d7f8e018ffc301c2ceb9e5f62e3ca186daa]&lt;br /&gt;
| All: part of the “Merge branches/gbuild-reintegration to trunk.” branch&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c74c5bb92a8f815eea63d1036b0ae27319568c98 c74c5bb92a8f815eea63d1036b0ae27319568c98]&lt;br /&gt;
| Windows: new way to set the gbuild console/ui subsystem flag.&lt;br /&gt;
(Needs to be customized a lot to apply.)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/78b0b3bf9bbc90d2acc64339b8de1a40d7438b4e 78b0b3bf9bbc90d2acc64339b8de1a40d7438b4e]&lt;br /&gt;
| Windows: fix flag to determine whether the C runtime library is linked statically/dynamically and single/multithreaded. (Only main/solenv part needed.)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f78a4bb8ff5d512c1dab2e128edb7d5fba78b03b f78a4bb8ff5d512c1dab2e128edb7d5fba78b03b]&lt;br /&gt;
| All: Upgrade bundled raptor from raptor-1.4.18 to raptor2-2.0.15&lt;br /&gt;
|-&lt;br /&gt;
| 2016-12-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e15a45347c4af89b363e7d092ae18e347f2f052f e15a45347c4af89b363e7d092ae18e347f2f052f]&lt;br /&gt;
| FreeBSD: Update endianness detection on FreeBSD.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7a46fbe49ba6c420f01922f987a00bf586522653 7a46fbe49ba6c420f01922f987a00bf586522653]&lt;br /&gt;
| FreeBSD: Initial support for the FreeBSD ARM platform.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-13&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5a81235241b51fcd40950a7973a436401218ec88 5a81235241b51fcd40950a7973a436401218ec88]&lt;br /&gt;
| FreeBSD: PPC: Cleanup makefile include mess.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/81e6fec9aa5d40eea94d1c86f72a7b55900dc816 81e6fec9aa5d40eea94d1c86f72a7b55900dc816]&lt;br /&gt;
| All: libstdc++ removal&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
| All: Clang 4 issues. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a]&lt;br /&gt;
| All: nullptr -&amp;gt; NULL. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8]&lt;br /&gt;
| All: Clang 4 fix. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
| *nix: remove unused header from hunspell. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8f07f855b27ed7bcc010af365ebc4fea86de7182 8f07f855b27ed7bcc010af365ebc4fea86de7182]&lt;br /&gt;
| FreeBSD: fix gb_CPUDEFS regression.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9e1b801e35d1189c57bceab0e99f961ae72a2b3f 9e1b801e35d1189c57bceab0e99f961ae72a2b3f]&lt;br /&gt;
| All: debug symbol fixes for gbuild&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/6e4dc73d13071947dbd3f9139aca1e3b58c81103 6e4dc73d13071947dbd3f9139aca1e3b58c81103]&lt;br /&gt;
| Linux: Reinstate part of the LinuxPPC64 support removed by error.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-02-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/bcc22a4c08e1268a4f06e54fb146f88ef49f2cdc bcc22a4c08e1268a4f06e54fb146f88ef49f2cdc]&lt;br /&gt;
| All: Add initial support for building AOO with Clang on Linux.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f669900deea0b6f978ffaf80c4471c274b89aeda f669900deea0b6f978ffaf80c4471c274b89aeda]&lt;br /&gt;
| macOS: macOS fixes, Xcode8&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/87bf159baa3ed610953f1e9d9714ca462a7efc20 87bf159baa3ed610953f1e9d9714ca462a7efc20]&lt;br /&gt;
| macOS: Get macOS compiling again&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16daaedff86cb7f882d39e13c4bd90a89187fddc 16daaedff86cb7f882d39e13c4bd90a89187fddc]&lt;br /&gt;
| MacOS: 10.9&lt;br /&gt;
|-&lt;br /&gt;
| 2017-10-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9e1bc29152c52d82ff2070c9282143da61a4a507 9e1bc29152c52d82ff2070c9282143da61a4a507]&lt;br /&gt;
| macOS: Get macOS compiling again&lt;br /&gt;
|-&lt;br /&gt;
| 2017-10-10&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5532af069966acd59346782985cd865067d2cdb1 5532af069966acd59346782985cd865067d2cdb1]&lt;br /&gt;
| macOS: C++ fixes&lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-01-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/78ecfec34f3bb6578b4663d63ae245594c795fe3 78ecfec34f3bb6578b4663d63ae245594c795fe3]&lt;br /&gt;
| All: delete GXX_INCLUDE_PATH&lt;br /&gt;
|-&lt;br /&gt;
| 2018-01-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/deb9523b63f459edd793c45f6e7ac6d1130b1e9f deb9523b63f459edd793c45f6e7ac6d1130b1e9f]&lt;br /&gt;
| All: build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9 &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8d23410d6e3d8728779a0bca516f274ab5ec01c4 8d23410d6e3d8728779a0bca516f274ab5ec01c4]&lt;br /&gt;
| All: Fix indentation.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| All: fix building lucene with Java 1.9 &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/386ca8668004b012c6f9f4525bfcb30dea9d960d 386ca8668004b012c6f9f4525bfcb30dea9d960d]&lt;br /&gt;
| All: build changes&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-12&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/edd74ba5165751c51050786f638af262ec502968 edd74ba5165751c51050786f638af262ec502968]&lt;br /&gt;
| Windows: preliminary support for 64 bit Windows&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8cb913c41397e529ead8b9128c8888b324408e46 8cb913c41397e529ead8b9128c8888b324408e46]&lt;br /&gt;
| All: Fix the gbuild platform CPUDEFS to conform to what modules expect. (Only main/solenv/gbuild part needed.)&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
| *nix: target the gnu++98 C++ standard. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
(A critical patch, but impossibly difficult to apply...) &lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2bf1cfb0fb5470896af21c2c584f53f556e1551b 2bf1cfb0fb5470896af21c2c584f53f556e1551b]&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE. &lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2019-11-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers. &lt;br /&gt;
|-&lt;br /&gt;
| 2020-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
| *nix: fix linking with system Python 3 &lt;br /&gt;
|-&lt;br /&gt;
| 2020-05-19&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
| All: fix issue with GNU make 4.3 &lt;br /&gt;
|-&lt;br /&gt;
| 2020-10-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found. &lt;br /&gt;
|-&lt;br /&gt;
| 2022-04-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2022-08-22&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x. &lt;br /&gt;
|-&lt;br /&gt;
| 2023-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| 2023-03-12&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f65264f89b835de02173fcc0c71209b87439cd4f f65264f89b835de02173fcc0c71209b87439cd4f]&lt;br /&gt;
| All: make 4.4 fixes&lt;br /&gt;
|-&lt;br /&gt;
| 2024-11-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/bb4cf3dea05937a87b5ddea738bac45c713cc81e bb4cf3dea05937a87b5ddea738bac45c713cc81e]&lt;br /&gt;
| *nix: Fix build with FreeBSD clang version 19.1.2&lt;br /&gt;
|-&lt;br /&gt;
| 2024-11-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/0897ef4cee1ef03c6dd4a2b64f2839ade1353eb8 0897ef4cee1ef03c6dd4a2b64f2839ade1353eb8]&lt;br /&gt;
| All: Fix c99 errors&lt;br /&gt;
|-&lt;br /&gt;
| 2024-11-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/87b5bd1523182d511fe508ae9f84c948f97f0721 87b5bd1523182d511fe508ae9f84c948f97f0721]&lt;br /&gt;
| *nix: Avoid compiling with -Os optimization (-Os in Clang causes crashes, breaks dialogs in AOO Base)&lt;br /&gt;
|-&lt;br /&gt;
| 2025-04-30&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/aa1f4ecdf0af2b4b877bfaec913d4ef42e7dad01 aa1f4ecdf0af2b4b877bfaec913d4ef42e7dad01]&lt;br /&gt;
| *nix: fixes LIBXSLT_CFLAGS placement allowing our boost headers to be found before system headers&lt;br /&gt;
|-&lt;br /&gt;
| 2025-05-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/523491489b0a7126864a6de1be3e6e170549602a 523491489b0a7126864a6de1be3e6e170549602a]&lt;br /&gt;
| All: Fix build with libxml2 &amp;gt;= 2.12.0&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Other ==&lt;br /&gt;
&lt;br /&gt;
Prefer internal dependencies, as transitive dependencies on system dependencies are difficult to get working, eg. old serf&amp;#039;s use of new system OpenSSL would need serf patched.&lt;br /&gt;
&lt;br /&gt;
Some old versions put the include path for system headers ahead of the include path to project headers, which can break the build if a dependency is installed system-wide but we want to use a local copy. For example, vcl wants boost, but if you have system boost installed yet are using internal boost, it will try including the system boost headers and break. The easiest way to fix this is to uninstall or hide/rename the system dependency so it&amp;#039;s hidden to the build, forcing only the internal version to be used.&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=267466</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=267466"/>
		<updated>2026-06-28T08:17:54Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Add bb4cf3dea05937a87b5ddea738bac45c713cc81e&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in the same order as given below, (ie. top to bottom, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&lt;br /&gt;
If a patch doesn&amp;#039;t apply, you have to make the equivalent code changes yourself.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date&lt;br /&gt;
! Git commit&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2fb14843010286ad9430e029e940242d039c9bf4 2fb14843010286ad9430e029e940242d039c9bf4]&lt;br /&gt;
| All: obsolete and remove the emulation of hash_map&amp;#039;s data_type typedef &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/60db4cd41876498d413568ed5a829ba6386245f9 60db4cd41876498d413568ed5a829ba6386245f9]&lt;br /&gt;
| Java: upgrade to the first version of commons-logging that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/21f06b298926b5eac098ed9c306560dd458d3a1e 21f06b298926b5eac098ed9c306560dd458d3a1e]&lt;br /&gt;
| Java: upgrade to the first version of commons-logging that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/47d3be6bd7cbd0f5aa101006532916676c4ceede 47d3be6bd7cbd0f5aa101006532916676c4ceede]&lt;br /&gt;
| Java: upgrade to the first version of commons-codec that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/bcff05d666ac35a4ddc41f4176bdf0038fd9cb02 bcff05d666ac35a4ddc41f4176bdf0038fd9cb02]&lt;br /&gt;
| Java: upgrade to the first version of commons-lang that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f0339755da5abc74646151d092c4739dd9e5ee54 f0339755da5abc74646151d092c4739dd9e5ee54]&lt;br /&gt;
| Java: related change to version upgrades code, logging &lt;br /&gt;
|-&lt;br /&gt;
| 2014-04-30&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/22076bf181e8f43a1d012a1c50cab412d09ed2b0 22076bf181e8f43a1d012a1c50cab412d09ed2b0]&lt;br /&gt;
| All: remove obsoleted sal-module-internal custom STL allocator &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5766e80935d60fd1804ed950d1972ff5e88fda76 5766e80935d60fd1804ed950d1972ff5e88fda76]&lt;br /&gt;
| All: fix default arguments in friend declarations &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49 ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49]&lt;br /&gt;
| All: remove custom allocator support in stlport-replacement headers &lt;br /&gt;
|-&lt;br /&gt;
| 2014-06-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e]&lt;br /&gt;
| FreeBSD: Fix the regression in 892b8f20ca40cc85f427d5bbef706b21ecd460e6. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-07-06&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76cf606939c261af2f957ef904a0384a3b6169da 76cf606939c261af2f957ef904a0384a3b6169da]&lt;br /&gt;
| FreeBSD: Add initial support for FreeBSD PPC using gcc.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-08-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/1b8c19f4d7f427d50c5ed0f65f07d814d9decf09 1b8c19f4d7f427d50c5ed0f65f07d814d9decf09]&lt;br /&gt;
| OS/2: build fixes for enabling Category B&lt;br /&gt;
|-&lt;br /&gt;
| 2014-11-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/55c23f91915c517b95be9f74fad73851a384fa05 55c23f91915c517b95be9f74fad73851a384fa05]&lt;br /&gt;
| OS/2: build fixes for enabling Category B also in OS/2 port.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-11-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&lt;br /&gt;
NOTE: needed for later patches, not just on OS/2. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-12-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/0fdc0ac7221c318421259c4834dce6b0be377a8b 0fdc0ac7221c318421259c4834dce6b0be377a8b]&lt;br /&gt;
| macOS: fix autodetection of the OSX 10.10 SDK&lt;br /&gt;
|-&lt;br /&gt;
| 2015-01-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/483bf1cb99a9fae931d407012ae00ce38c31b940 483bf1cb99a9fae931d407012ae00ce38c31b940]&lt;br /&gt;
| All: Fix build breaker introduced in revision 1651396&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
| FreeBSD: build structure changes &lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
| NSS build fixes. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
| FreeBSD: system jpeg build fix. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
| FreeBSD: better GCC/Clang support &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a84fbf33bbab2f93304ad5b1d232610ec9a69c27 a84fbf33bbab2f93304ad5b1d232610ec9a69c27]&lt;br /&gt;
| FreeBSD: Work around clang-3.4 issues.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-29&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-02&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/58303369294a39db2c0a54066360efff909daa9a 58303369294a39db2c0a54066360efff909daa9a]&lt;br /&gt;
| All: fix inlining options passed to Clang.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76decbbc67da8c86b617e1a4414d0f5ea6db5ff1 76decbbc67da8c86b617e1a4414d0f5ea6db5ff1]&lt;br /&gt;
| FreeBSD: FreeBSD-10 fixes&lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-13&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply). &lt;br /&gt;
|-&lt;br /&gt;
| 2015-10-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-12&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c4b07b4b14a3bb46b6e96fc7a31d099df09d5413 c4b07b4b14a3bb46b6e96fc7a31d099df09d5413]&lt;br /&gt;
| macOS: Add support for MacOSX El Capitan&lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/28633775241ee602b4a2e63aa263cce06685e4c0 28633775241ee602b4a2e63aa263cce06685e4c0]&lt;br /&gt;
| FreeBSD/Solaris: use $GREP, $EGREP in configure.ac&lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ceb6c4440c3fb3efdb611054a51caa1e35fd152e ceb6c4440c3fb3efdb611054a51caa1e35fd152e]&lt;br /&gt;
| FreeBSD: Allow build of Open Office on FreeBSD Mac PowerPCG5&lt;br /&gt;
|-&lt;br /&gt;
| 2016-01-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&lt;br /&gt;
NOTE: Only a portion of this patch matters, use:&lt;br /&gt;
git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx | patch -p1 &lt;br /&gt;
|-&lt;br /&gt;
| 2016-02-11&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu &lt;br /&gt;
|-&lt;br /&gt;
| 2016-06-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round(). &lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/b63233d868a9af170b0457a7aa0c5809011cc2c1 b63233d868a9af170b0457a7aa0c5809011cc2c1]&lt;br /&gt;
| All: Merge branches/gbuild-reintegration to trunk. (Only main/source_soenv.sh)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d1de9d7f8e018ffc301c2ceb9e5f62e3ca186daa d1de9d7f8e018ffc301c2ceb9e5f62e3ca186daa]&lt;br /&gt;
| All: part of the “Merge branches/gbuild-reintegration to trunk.” branch&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c74c5bb92a8f815eea63d1036b0ae27319568c98 c74c5bb92a8f815eea63d1036b0ae27319568c98]&lt;br /&gt;
| Windows: new way to set the gbuild console/ui subsystem flag.&lt;br /&gt;
(Needs to be customized a lot to apply.)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/78b0b3bf9bbc90d2acc64339b8de1a40d7438b4e 78b0b3bf9bbc90d2acc64339b8de1a40d7438b4e]&lt;br /&gt;
| Windows: fix flag to determine whether the C runtime library is linked statically/dynamically and single/multithreaded. (Only main/solenv part needed.)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f78a4bb8ff5d512c1dab2e128edb7d5fba78b03b f78a4bb8ff5d512c1dab2e128edb7d5fba78b03b]&lt;br /&gt;
| All: Upgrade bundled raptor from raptor-1.4.18 to raptor2-2.0.15&lt;br /&gt;
|-&lt;br /&gt;
| 2016-12-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e15a45347c4af89b363e7d092ae18e347f2f052f e15a45347c4af89b363e7d092ae18e347f2f052f]&lt;br /&gt;
| FreeBSD: Update endianness detection on FreeBSD.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7a46fbe49ba6c420f01922f987a00bf586522653 7a46fbe49ba6c420f01922f987a00bf586522653]&lt;br /&gt;
| FreeBSD: Initial support for the FreeBSD ARM platform.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-13&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5a81235241b51fcd40950a7973a436401218ec88 5a81235241b51fcd40950a7973a436401218ec88]&lt;br /&gt;
| FreeBSD: PPC: Cleanup makefile include mess.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/81e6fec9aa5d40eea94d1c86f72a7b55900dc816 81e6fec9aa5d40eea94d1c86f72a7b55900dc816]&lt;br /&gt;
| All: libstdc++ removal&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
| All: Clang 4 issues. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a]&lt;br /&gt;
| All: nullptr -&amp;gt; NULL. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8]&lt;br /&gt;
| All: Clang 4 fix. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
| *nix: remove unused header from hunspell. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8f07f855b27ed7bcc010af365ebc4fea86de7182 8f07f855b27ed7bcc010af365ebc4fea86de7182]&lt;br /&gt;
| FreeBSD: fix gb_CPUDEFS regression.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9e1b801e35d1189c57bceab0e99f961ae72a2b3f 9e1b801e35d1189c57bceab0e99f961ae72a2b3f]&lt;br /&gt;
| All: debug symbol fixes for gbuild&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/6e4dc73d13071947dbd3f9139aca1e3b58c81103 6e4dc73d13071947dbd3f9139aca1e3b58c81103]&lt;br /&gt;
| Linux: Reinstate part of the LinuxPPC64 support removed by error.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-02-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/bcc22a4c08e1268a4f06e54fb146f88ef49f2cdc bcc22a4c08e1268a4f06e54fb146f88ef49f2cdc]&lt;br /&gt;
| All: Add initial support for building AOO with Clang on Linux.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f669900deea0b6f978ffaf80c4471c274b89aeda f669900deea0b6f978ffaf80c4471c274b89aeda]&lt;br /&gt;
| macOS: macOS fixes, Xcode8&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/87bf159baa3ed610953f1e9d9714ca462a7efc20 87bf159baa3ed610953f1e9d9714ca462a7efc20]&lt;br /&gt;
| macOS: Get macOS compiling again&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16daaedff86cb7f882d39e13c4bd90a89187fddc 16daaedff86cb7f882d39e13c4bd90a89187fddc]&lt;br /&gt;
| MacOS: 10.9&lt;br /&gt;
|-&lt;br /&gt;
| 2017-10-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9e1bc29152c52d82ff2070c9282143da61a4a507 9e1bc29152c52d82ff2070c9282143da61a4a507]&lt;br /&gt;
| macOS: Get macOS compiling again&lt;br /&gt;
|-&lt;br /&gt;
| 2017-10-10&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5532af069966acd59346782985cd865067d2cdb1 5532af069966acd59346782985cd865067d2cdb1]&lt;br /&gt;
| macOS: C++ fixes&lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-01-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/78ecfec34f3bb6578b4663d63ae245594c795fe3 78ecfec34f3bb6578b4663d63ae245594c795fe3]&lt;br /&gt;
| All: delete GXX_INCLUDE_PATH&lt;br /&gt;
|-&lt;br /&gt;
| 2018-01-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/deb9523b63f459edd793c45f6e7ac6d1130b1e9f deb9523b63f459edd793c45f6e7ac6d1130b1e9f]&lt;br /&gt;
| All: build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9 &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8d23410d6e3d8728779a0bca516f274ab5ec01c4 8d23410d6e3d8728779a0bca516f274ab5ec01c4]&lt;br /&gt;
| All: Fix indentation.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| All: fix building lucene with Java 1.9 &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/386ca8668004b012c6f9f4525bfcb30dea9d960d 386ca8668004b012c6f9f4525bfcb30dea9d960d]&lt;br /&gt;
| All: build changes&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-12&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/edd74ba5165751c51050786f638af262ec502968 edd74ba5165751c51050786f638af262ec502968]&lt;br /&gt;
| Windows: preliminary support for 64 bit Windows&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8cb913c41397e529ead8b9128c8888b324408e46 8cb913c41397e529ead8b9128c8888b324408e46]&lt;br /&gt;
| All: Fix the gbuild platform CPUDEFS to conform to what modules expect. (Only main/solenv/gbuild part needed.)&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
| *nix: target the gnu++98 C++ standard. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
(A critical patch, but impossibly difficult to apply...) &lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2bf1cfb0fb5470896af21c2c584f53f556e1551b 2bf1cfb0fb5470896af21c2c584f53f556e1551b]&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE. &lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2019-11-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers. &lt;br /&gt;
|-&lt;br /&gt;
| 2020-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
| *nix: fix linking with system Python 3 &lt;br /&gt;
|-&lt;br /&gt;
| 2020-05-19&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
| All: fix issue with GNU make 4.3 &lt;br /&gt;
|-&lt;br /&gt;
| 2020-10-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found. &lt;br /&gt;
|-&lt;br /&gt;
| 2022-04-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2022-08-22&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x. &lt;br /&gt;
|-&lt;br /&gt;
| 2023-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| 2023-03-12&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f65264f89b835de02173fcc0c71209b87439cd4f f65264f89b835de02173fcc0c71209b87439cd4f]&lt;br /&gt;
| All: make 4.4 fixes&lt;br /&gt;
|-&lt;br /&gt;
| 2024-11-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/bb4cf3dea05937a87b5ddea738bac45c713cc81e bb4cf3dea05937a87b5ddea738bac45c713cc81e]&lt;br /&gt;
| *nix: Fix build with FreeBSD clang version 19.1.2&lt;br /&gt;
|-&lt;br /&gt;
| 2024-11-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/0897ef4cee1ef03c6dd4a2b64f2839ade1353eb8 0897ef4cee1ef03c6dd4a2b64f2839ade1353eb8]&lt;br /&gt;
| All: Fix c99 errors&lt;br /&gt;
|-&lt;br /&gt;
| 2025-04-30&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/aa1f4ecdf0af2b4b877bfaec913d4ef42e7dad01 aa1f4ecdf0af2b4b877bfaec913d4ef42e7dad01]&lt;br /&gt;
| *nix: fixes LIBXSLT_CFLAGS placement allowing our boost headers to be found before system headers&lt;br /&gt;
|-&lt;br /&gt;
| 2025-05-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/523491489b0a7126864a6de1be3e6e170549602a 523491489b0a7126864a6de1be3e6e170549602a]&lt;br /&gt;
| All: Fix build with libxml2 &amp;gt;= 2.12.0&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Other ==&lt;br /&gt;
&lt;br /&gt;
Prefer internal dependencies, as transitive dependencies on system dependencies are difficult to get working, eg. old serf&amp;#039;s use of new system OpenSSL would need serf patched.&lt;br /&gt;
&lt;br /&gt;
Some old versions put the include path for system headers ahead of the include path to project headers, which can break the build if a dependency is installed system-wide but we want to use a local copy. For example, vcl wants boost, but if you have system boost installed yet are using internal boost, it will try including the system boost headers and break. The easiest way to fix this is to uninstall or hide/rename the system dependency so it&amp;#039;s hidden to the build, forcing only the internal version to be used.&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=267465</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=267465"/>
		<updated>2026-06-28T08:16:12Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Add f65264f89b835de02173fcc0c71209b87439cd4f&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in the same order as given below, (ie. top to bottom, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&lt;br /&gt;
If a patch doesn&amp;#039;t apply, you have to make the equivalent code changes yourself.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date&lt;br /&gt;
! Git commit&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2fb14843010286ad9430e029e940242d039c9bf4 2fb14843010286ad9430e029e940242d039c9bf4]&lt;br /&gt;
| All: obsolete and remove the emulation of hash_map&amp;#039;s data_type typedef &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/60db4cd41876498d413568ed5a829ba6386245f9 60db4cd41876498d413568ed5a829ba6386245f9]&lt;br /&gt;
| Java: upgrade to the first version of commons-logging that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/21f06b298926b5eac098ed9c306560dd458d3a1e 21f06b298926b5eac098ed9c306560dd458d3a1e]&lt;br /&gt;
| Java: upgrade to the first version of commons-logging that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/47d3be6bd7cbd0f5aa101006532916676c4ceede 47d3be6bd7cbd0f5aa101006532916676c4ceede]&lt;br /&gt;
| Java: upgrade to the first version of commons-codec that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/bcff05d666ac35a4ddc41f4176bdf0038fd9cb02 bcff05d666ac35a4ddc41f4176bdf0038fd9cb02]&lt;br /&gt;
| Java: upgrade to the first version of commons-lang that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f0339755da5abc74646151d092c4739dd9e5ee54 f0339755da5abc74646151d092c4739dd9e5ee54]&lt;br /&gt;
| Java: related change to version upgrades code, logging &lt;br /&gt;
|-&lt;br /&gt;
| 2014-04-30&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/22076bf181e8f43a1d012a1c50cab412d09ed2b0 22076bf181e8f43a1d012a1c50cab412d09ed2b0]&lt;br /&gt;
| All: remove obsoleted sal-module-internal custom STL allocator &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5766e80935d60fd1804ed950d1972ff5e88fda76 5766e80935d60fd1804ed950d1972ff5e88fda76]&lt;br /&gt;
| All: fix default arguments in friend declarations &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49 ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49]&lt;br /&gt;
| All: remove custom allocator support in stlport-replacement headers &lt;br /&gt;
|-&lt;br /&gt;
| 2014-06-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e]&lt;br /&gt;
| FreeBSD: Fix the regression in 892b8f20ca40cc85f427d5bbef706b21ecd460e6. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-07-06&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76cf606939c261af2f957ef904a0384a3b6169da 76cf606939c261af2f957ef904a0384a3b6169da]&lt;br /&gt;
| FreeBSD: Add initial support for FreeBSD PPC using gcc.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-08-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/1b8c19f4d7f427d50c5ed0f65f07d814d9decf09 1b8c19f4d7f427d50c5ed0f65f07d814d9decf09]&lt;br /&gt;
| OS/2: build fixes for enabling Category B&lt;br /&gt;
|-&lt;br /&gt;
| 2014-11-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/55c23f91915c517b95be9f74fad73851a384fa05 55c23f91915c517b95be9f74fad73851a384fa05]&lt;br /&gt;
| OS/2: build fixes for enabling Category B also in OS/2 port.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-11-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&lt;br /&gt;
NOTE: needed for later patches, not just on OS/2. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-12-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/0fdc0ac7221c318421259c4834dce6b0be377a8b 0fdc0ac7221c318421259c4834dce6b0be377a8b]&lt;br /&gt;
| macOS: fix autodetection of the OSX 10.10 SDK&lt;br /&gt;
|-&lt;br /&gt;
| 2015-01-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/483bf1cb99a9fae931d407012ae00ce38c31b940 483bf1cb99a9fae931d407012ae00ce38c31b940]&lt;br /&gt;
| All: Fix build breaker introduced in revision 1651396&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
| FreeBSD: build structure changes &lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
| NSS build fixes. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
| FreeBSD: system jpeg build fix. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
| FreeBSD: better GCC/Clang support &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a84fbf33bbab2f93304ad5b1d232610ec9a69c27 a84fbf33bbab2f93304ad5b1d232610ec9a69c27]&lt;br /&gt;
| FreeBSD: Work around clang-3.4 issues.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-29&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-02&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/58303369294a39db2c0a54066360efff909daa9a 58303369294a39db2c0a54066360efff909daa9a]&lt;br /&gt;
| All: fix inlining options passed to Clang.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76decbbc67da8c86b617e1a4414d0f5ea6db5ff1 76decbbc67da8c86b617e1a4414d0f5ea6db5ff1]&lt;br /&gt;
| FreeBSD: FreeBSD-10 fixes&lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-13&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply). &lt;br /&gt;
|-&lt;br /&gt;
| 2015-10-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-12&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c4b07b4b14a3bb46b6e96fc7a31d099df09d5413 c4b07b4b14a3bb46b6e96fc7a31d099df09d5413]&lt;br /&gt;
| macOS: Add support for MacOSX El Capitan&lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/28633775241ee602b4a2e63aa263cce06685e4c0 28633775241ee602b4a2e63aa263cce06685e4c0]&lt;br /&gt;
| FreeBSD/Solaris: use $GREP, $EGREP in configure.ac&lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ceb6c4440c3fb3efdb611054a51caa1e35fd152e ceb6c4440c3fb3efdb611054a51caa1e35fd152e]&lt;br /&gt;
| FreeBSD: Allow build of Open Office on FreeBSD Mac PowerPCG5&lt;br /&gt;
|-&lt;br /&gt;
| 2016-01-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&lt;br /&gt;
NOTE: Only a portion of this patch matters, use:&lt;br /&gt;
git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx | patch -p1 &lt;br /&gt;
|-&lt;br /&gt;
| 2016-02-11&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu &lt;br /&gt;
|-&lt;br /&gt;
| 2016-06-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round(). &lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/b63233d868a9af170b0457a7aa0c5809011cc2c1 b63233d868a9af170b0457a7aa0c5809011cc2c1]&lt;br /&gt;
| All: Merge branches/gbuild-reintegration to trunk. (Only main/source_soenv.sh)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d1de9d7f8e018ffc301c2ceb9e5f62e3ca186daa d1de9d7f8e018ffc301c2ceb9e5f62e3ca186daa]&lt;br /&gt;
| All: part of the “Merge branches/gbuild-reintegration to trunk.” branch&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c74c5bb92a8f815eea63d1036b0ae27319568c98 c74c5bb92a8f815eea63d1036b0ae27319568c98]&lt;br /&gt;
| Windows: new way to set the gbuild console/ui subsystem flag.&lt;br /&gt;
(Needs to be customized a lot to apply.)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/78b0b3bf9bbc90d2acc64339b8de1a40d7438b4e 78b0b3bf9bbc90d2acc64339b8de1a40d7438b4e]&lt;br /&gt;
| Windows: fix flag to determine whether the C runtime library is linked statically/dynamically and single/multithreaded. (Only main/solenv part needed.)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f78a4bb8ff5d512c1dab2e128edb7d5fba78b03b f78a4bb8ff5d512c1dab2e128edb7d5fba78b03b]&lt;br /&gt;
| All: Upgrade bundled raptor from raptor-1.4.18 to raptor2-2.0.15&lt;br /&gt;
|-&lt;br /&gt;
| 2016-12-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e15a45347c4af89b363e7d092ae18e347f2f052f e15a45347c4af89b363e7d092ae18e347f2f052f]&lt;br /&gt;
| FreeBSD: Update endianness detection on FreeBSD.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7a46fbe49ba6c420f01922f987a00bf586522653 7a46fbe49ba6c420f01922f987a00bf586522653]&lt;br /&gt;
| FreeBSD: Initial support for the FreeBSD ARM platform.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-13&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5a81235241b51fcd40950a7973a436401218ec88 5a81235241b51fcd40950a7973a436401218ec88]&lt;br /&gt;
| FreeBSD: PPC: Cleanup makefile include mess.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/81e6fec9aa5d40eea94d1c86f72a7b55900dc816 81e6fec9aa5d40eea94d1c86f72a7b55900dc816]&lt;br /&gt;
| All: libstdc++ removal&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
| All: Clang 4 issues. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a]&lt;br /&gt;
| All: nullptr -&amp;gt; NULL. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8]&lt;br /&gt;
| All: Clang 4 fix. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
| *nix: remove unused header from hunspell. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8f07f855b27ed7bcc010af365ebc4fea86de7182 8f07f855b27ed7bcc010af365ebc4fea86de7182]&lt;br /&gt;
| FreeBSD: fix gb_CPUDEFS regression.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9e1b801e35d1189c57bceab0e99f961ae72a2b3f 9e1b801e35d1189c57bceab0e99f961ae72a2b3f]&lt;br /&gt;
| All: debug symbol fixes for gbuild&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/6e4dc73d13071947dbd3f9139aca1e3b58c81103 6e4dc73d13071947dbd3f9139aca1e3b58c81103]&lt;br /&gt;
| Linux: Reinstate part of the LinuxPPC64 support removed by error.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-02-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/bcc22a4c08e1268a4f06e54fb146f88ef49f2cdc bcc22a4c08e1268a4f06e54fb146f88ef49f2cdc]&lt;br /&gt;
| All: Add initial support for building AOO with Clang on Linux.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f669900deea0b6f978ffaf80c4471c274b89aeda f669900deea0b6f978ffaf80c4471c274b89aeda]&lt;br /&gt;
| macOS: macOS fixes, Xcode8&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/87bf159baa3ed610953f1e9d9714ca462a7efc20 87bf159baa3ed610953f1e9d9714ca462a7efc20]&lt;br /&gt;
| macOS: Get macOS compiling again&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16daaedff86cb7f882d39e13c4bd90a89187fddc 16daaedff86cb7f882d39e13c4bd90a89187fddc]&lt;br /&gt;
| MacOS: 10.9&lt;br /&gt;
|-&lt;br /&gt;
| 2017-10-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9e1bc29152c52d82ff2070c9282143da61a4a507 9e1bc29152c52d82ff2070c9282143da61a4a507]&lt;br /&gt;
| macOS: Get macOS compiling again&lt;br /&gt;
|-&lt;br /&gt;
| 2017-10-10&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5532af069966acd59346782985cd865067d2cdb1 5532af069966acd59346782985cd865067d2cdb1]&lt;br /&gt;
| macOS: C++ fixes&lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-01-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/78ecfec34f3bb6578b4663d63ae245594c795fe3 78ecfec34f3bb6578b4663d63ae245594c795fe3]&lt;br /&gt;
| All: delete GXX_INCLUDE_PATH&lt;br /&gt;
|-&lt;br /&gt;
| 2018-01-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/deb9523b63f459edd793c45f6e7ac6d1130b1e9f deb9523b63f459edd793c45f6e7ac6d1130b1e9f]&lt;br /&gt;
| All: build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9 &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8d23410d6e3d8728779a0bca516f274ab5ec01c4 8d23410d6e3d8728779a0bca516f274ab5ec01c4]&lt;br /&gt;
| All: Fix indentation.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| All: fix building lucene with Java 1.9 &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/386ca8668004b012c6f9f4525bfcb30dea9d960d 386ca8668004b012c6f9f4525bfcb30dea9d960d]&lt;br /&gt;
| All: build changes&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-12&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/edd74ba5165751c51050786f638af262ec502968 edd74ba5165751c51050786f638af262ec502968]&lt;br /&gt;
| Windows: preliminary support for 64 bit Windows&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8cb913c41397e529ead8b9128c8888b324408e46 8cb913c41397e529ead8b9128c8888b324408e46]&lt;br /&gt;
| All: Fix the gbuild platform CPUDEFS to conform to what modules expect. (Only main/solenv/gbuild part needed.)&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
| *nix: target the gnu++98 C++ standard. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
(A critical patch, but impossibly difficult to apply...) &lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2bf1cfb0fb5470896af21c2c584f53f556e1551b 2bf1cfb0fb5470896af21c2c584f53f556e1551b]&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE. &lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2019-11-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers. &lt;br /&gt;
|-&lt;br /&gt;
| 2020-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
| *nix: fix linking with system Python 3 &lt;br /&gt;
|-&lt;br /&gt;
| 2020-05-19&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
| All: fix issue with GNU make 4.3 &lt;br /&gt;
|-&lt;br /&gt;
| 2020-10-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found. &lt;br /&gt;
|-&lt;br /&gt;
| 2022-04-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2022-08-22&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x. &lt;br /&gt;
|-&lt;br /&gt;
| 2023-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| 2023-03-12&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f65264f89b835de02173fcc0c71209b87439cd4f f65264f89b835de02173fcc0c71209b87439cd4f]&lt;br /&gt;
| All: make 4.4 fixes&lt;br /&gt;
|-&lt;br /&gt;
| 2024-11-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/0897ef4cee1ef03c6dd4a2b64f2839ade1353eb8 0897ef4cee1ef03c6dd4a2b64f2839ade1353eb8]&lt;br /&gt;
| All: Fix c99 errors&lt;br /&gt;
|-&lt;br /&gt;
| 2025-04-30&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/aa1f4ecdf0af2b4b877bfaec913d4ef42e7dad01 aa1f4ecdf0af2b4b877bfaec913d4ef42e7dad01]&lt;br /&gt;
| *nix: fixes LIBXSLT_CFLAGS placement allowing our boost headers to be found before system headers&lt;br /&gt;
|-&lt;br /&gt;
| 2025-05-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/523491489b0a7126864a6de1be3e6e170549602a 523491489b0a7126864a6de1be3e6e170549602a]&lt;br /&gt;
| All: Fix build with libxml2 &amp;gt;= 2.12.0&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Other ==&lt;br /&gt;
&lt;br /&gt;
Prefer internal dependencies, as transitive dependencies on system dependencies are difficult to get working, eg. old serf&amp;#039;s use of new system OpenSSL would need serf patched.&lt;br /&gt;
&lt;br /&gt;
Some old versions put the include path for system headers ahead of the include path to project headers, which can break the build if a dependency is installed system-wide but we want to use a local copy. For example, vcl wants boost, but if you have system boost installed yet are using internal boost, it will try including the system boost headers and break. The easiest way to fix this is to uninstall or hide/rename the system dependency so it&amp;#039;s hidden to the build, forcing only the internal version to be used.&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=267464</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=267464"/>
		<updated>2026-06-28T06:03:40Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Add 523491489b0a7126864a6de1be3e6e170549602a&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in the same order as given below, (ie. top to bottom, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&lt;br /&gt;
If a patch doesn&amp;#039;t apply, you have to make the equivalent code changes yourself.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date&lt;br /&gt;
! Git commit&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2fb14843010286ad9430e029e940242d039c9bf4 2fb14843010286ad9430e029e940242d039c9bf4]&lt;br /&gt;
| All: obsolete and remove the emulation of hash_map&amp;#039;s data_type typedef &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/60db4cd41876498d413568ed5a829ba6386245f9 60db4cd41876498d413568ed5a829ba6386245f9]&lt;br /&gt;
| Java: upgrade to the first version of commons-logging that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/21f06b298926b5eac098ed9c306560dd458d3a1e 21f06b298926b5eac098ed9c306560dd458d3a1e]&lt;br /&gt;
| Java: upgrade to the first version of commons-logging that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/47d3be6bd7cbd0f5aa101006532916676c4ceede 47d3be6bd7cbd0f5aa101006532916676c4ceede]&lt;br /&gt;
| Java: upgrade to the first version of commons-codec that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/bcff05d666ac35a4ddc41f4176bdf0038fd9cb02 bcff05d666ac35a4ddc41f4176bdf0038fd9cb02]&lt;br /&gt;
| Java: upgrade to the first version of commons-lang that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f0339755da5abc74646151d092c4739dd9e5ee54 f0339755da5abc74646151d092c4739dd9e5ee54]&lt;br /&gt;
| Java: related change to version upgrades code, logging &lt;br /&gt;
|-&lt;br /&gt;
| 2014-04-30&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/22076bf181e8f43a1d012a1c50cab412d09ed2b0 22076bf181e8f43a1d012a1c50cab412d09ed2b0]&lt;br /&gt;
| All: remove obsoleted sal-module-internal custom STL allocator &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5766e80935d60fd1804ed950d1972ff5e88fda76 5766e80935d60fd1804ed950d1972ff5e88fda76]&lt;br /&gt;
| All: fix default arguments in friend declarations &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49 ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49]&lt;br /&gt;
| All: remove custom allocator support in stlport-replacement headers &lt;br /&gt;
|-&lt;br /&gt;
| 2014-06-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e]&lt;br /&gt;
| FreeBSD: Fix the regression in 892b8f20ca40cc85f427d5bbef706b21ecd460e6. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-07-06&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76cf606939c261af2f957ef904a0384a3b6169da 76cf606939c261af2f957ef904a0384a3b6169da]&lt;br /&gt;
| FreeBSD: Add initial support for FreeBSD PPC using gcc.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-08-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/1b8c19f4d7f427d50c5ed0f65f07d814d9decf09 1b8c19f4d7f427d50c5ed0f65f07d814d9decf09]&lt;br /&gt;
| OS/2: build fixes for enabling Category B&lt;br /&gt;
|-&lt;br /&gt;
| 2014-11-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/55c23f91915c517b95be9f74fad73851a384fa05 55c23f91915c517b95be9f74fad73851a384fa05]&lt;br /&gt;
| OS/2: build fixes for enabling Category B also in OS/2 port.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-11-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&lt;br /&gt;
NOTE: needed for later patches, not just on OS/2. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-12-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/0fdc0ac7221c318421259c4834dce6b0be377a8b 0fdc0ac7221c318421259c4834dce6b0be377a8b]&lt;br /&gt;
| macOS: fix autodetection of the OSX 10.10 SDK&lt;br /&gt;
|-&lt;br /&gt;
| 2015-01-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/483bf1cb99a9fae931d407012ae00ce38c31b940 483bf1cb99a9fae931d407012ae00ce38c31b940]&lt;br /&gt;
| All: Fix build breaker introduced in revision 1651396&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
| FreeBSD: build structure changes &lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
| NSS build fixes. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
| FreeBSD: system jpeg build fix. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
| FreeBSD: better GCC/Clang support &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a84fbf33bbab2f93304ad5b1d232610ec9a69c27 a84fbf33bbab2f93304ad5b1d232610ec9a69c27]&lt;br /&gt;
| FreeBSD: Work around clang-3.4 issues.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-29&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-02&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/58303369294a39db2c0a54066360efff909daa9a 58303369294a39db2c0a54066360efff909daa9a]&lt;br /&gt;
| All: fix inlining options passed to Clang.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76decbbc67da8c86b617e1a4414d0f5ea6db5ff1 76decbbc67da8c86b617e1a4414d0f5ea6db5ff1]&lt;br /&gt;
| FreeBSD: FreeBSD-10 fixes&lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-13&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply). &lt;br /&gt;
|-&lt;br /&gt;
| 2015-10-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-12&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c4b07b4b14a3bb46b6e96fc7a31d099df09d5413 c4b07b4b14a3bb46b6e96fc7a31d099df09d5413]&lt;br /&gt;
| macOS: Add support for MacOSX El Capitan&lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/28633775241ee602b4a2e63aa263cce06685e4c0 28633775241ee602b4a2e63aa263cce06685e4c0]&lt;br /&gt;
| FreeBSD/Solaris: use $GREP, $EGREP in configure.ac&lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ceb6c4440c3fb3efdb611054a51caa1e35fd152e ceb6c4440c3fb3efdb611054a51caa1e35fd152e]&lt;br /&gt;
| FreeBSD: Allow build of Open Office on FreeBSD Mac PowerPCG5&lt;br /&gt;
|-&lt;br /&gt;
| 2016-01-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&lt;br /&gt;
NOTE: Only a portion of this patch matters, use:&lt;br /&gt;
git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx | patch -p1 &lt;br /&gt;
|-&lt;br /&gt;
| 2016-02-11&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu &lt;br /&gt;
|-&lt;br /&gt;
| 2016-06-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round(). &lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/b63233d868a9af170b0457a7aa0c5809011cc2c1 b63233d868a9af170b0457a7aa0c5809011cc2c1]&lt;br /&gt;
| All: Merge branches/gbuild-reintegration to trunk. (Only main/source_soenv.sh)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d1de9d7f8e018ffc301c2ceb9e5f62e3ca186daa d1de9d7f8e018ffc301c2ceb9e5f62e3ca186daa]&lt;br /&gt;
| All: part of the “Merge branches/gbuild-reintegration to trunk.” branch&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c74c5bb92a8f815eea63d1036b0ae27319568c98 c74c5bb92a8f815eea63d1036b0ae27319568c98]&lt;br /&gt;
| Windows: new way to set the gbuild console/ui subsystem flag.&lt;br /&gt;
(Needs to be customized a lot to apply.)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/78b0b3bf9bbc90d2acc64339b8de1a40d7438b4e 78b0b3bf9bbc90d2acc64339b8de1a40d7438b4e]&lt;br /&gt;
| Windows: fix flag to determine whether the C runtime library is linked statically/dynamically and single/multithreaded. (Only main/solenv part needed.)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f78a4bb8ff5d512c1dab2e128edb7d5fba78b03b f78a4bb8ff5d512c1dab2e128edb7d5fba78b03b]&lt;br /&gt;
| All: Upgrade bundled raptor from raptor-1.4.18 to raptor2-2.0.15&lt;br /&gt;
|-&lt;br /&gt;
| 2016-12-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e15a45347c4af89b363e7d092ae18e347f2f052f e15a45347c4af89b363e7d092ae18e347f2f052f]&lt;br /&gt;
| FreeBSD: Update endianness detection on FreeBSD.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7a46fbe49ba6c420f01922f987a00bf586522653 7a46fbe49ba6c420f01922f987a00bf586522653]&lt;br /&gt;
| FreeBSD: Initial support for the FreeBSD ARM platform.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-13&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5a81235241b51fcd40950a7973a436401218ec88 5a81235241b51fcd40950a7973a436401218ec88]&lt;br /&gt;
| FreeBSD: PPC: Cleanup makefile include mess.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/81e6fec9aa5d40eea94d1c86f72a7b55900dc816 81e6fec9aa5d40eea94d1c86f72a7b55900dc816]&lt;br /&gt;
| All: libstdc++ removal&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
| All: Clang 4 issues. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a]&lt;br /&gt;
| All: nullptr -&amp;gt; NULL. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8]&lt;br /&gt;
| All: Clang 4 fix. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
| *nix: remove unused header from hunspell. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8f07f855b27ed7bcc010af365ebc4fea86de7182 8f07f855b27ed7bcc010af365ebc4fea86de7182]&lt;br /&gt;
| FreeBSD: fix gb_CPUDEFS regression.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9e1b801e35d1189c57bceab0e99f961ae72a2b3f 9e1b801e35d1189c57bceab0e99f961ae72a2b3f]&lt;br /&gt;
| All: debug symbol fixes for gbuild&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/6e4dc73d13071947dbd3f9139aca1e3b58c81103 6e4dc73d13071947dbd3f9139aca1e3b58c81103]&lt;br /&gt;
| Linux: Reinstate part of the LinuxPPC64 support removed by error.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-02-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/bcc22a4c08e1268a4f06e54fb146f88ef49f2cdc bcc22a4c08e1268a4f06e54fb146f88ef49f2cdc]&lt;br /&gt;
| All: Add initial support for building AOO with Clang on Linux.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f669900deea0b6f978ffaf80c4471c274b89aeda f669900deea0b6f978ffaf80c4471c274b89aeda]&lt;br /&gt;
| macOS: macOS fixes, Xcode8&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/87bf159baa3ed610953f1e9d9714ca462a7efc20 87bf159baa3ed610953f1e9d9714ca462a7efc20]&lt;br /&gt;
| macOS: Get macOS compiling again&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16daaedff86cb7f882d39e13c4bd90a89187fddc 16daaedff86cb7f882d39e13c4bd90a89187fddc]&lt;br /&gt;
| MacOS: 10.9&lt;br /&gt;
|-&lt;br /&gt;
| 2017-10-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9e1bc29152c52d82ff2070c9282143da61a4a507 9e1bc29152c52d82ff2070c9282143da61a4a507]&lt;br /&gt;
| macOS: Get macOS compiling again&lt;br /&gt;
|-&lt;br /&gt;
| 2017-10-10&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5532af069966acd59346782985cd865067d2cdb1 5532af069966acd59346782985cd865067d2cdb1]&lt;br /&gt;
| macOS: C++ fixes&lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-01-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/78ecfec34f3bb6578b4663d63ae245594c795fe3 78ecfec34f3bb6578b4663d63ae245594c795fe3]&lt;br /&gt;
| All: delete GXX_INCLUDE_PATH&lt;br /&gt;
|-&lt;br /&gt;
| 2018-01-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/deb9523b63f459edd793c45f6e7ac6d1130b1e9f deb9523b63f459edd793c45f6e7ac6d1130b1e9f]&lt;br /&gt;
| All: build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9 &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8d23410d6e3d8728779a0bca516f274ab5ec01c4 8d23410d6e3d8728779a0bca516f274ab5ec01c4]&lt;br /&gt;
| All: Fix indentation.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| All: fix building lucene with Java 1.9 &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/386ca8668004b012c6f9f4525bfcb30dea9d960d 386ca8668004b012c6f9f4525bfcb30dea9d960d]&lt;br /&gt;
| All: build changes&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-12&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/edd74ba5165751c51050786f638af262ec502968 edd74ba5165751c51050786f638af262ec502968]&lt;br /&gt;
| Windows: preliminary support for 64 bit Windows&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8cb913c41397e529ead8b9128c8888b324408e46 8cb913c41397e529ead8b9128c8888b324408e46]&lt;br /&gt;
| All: Fix the gbuild platform CPUDEFS to conform to what modules expect. (Only main/solenv/gbuild part needed.)&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
| *nix: target the gnu++98 C++ standard. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
(A critical patch, but impossibly difficult to apply...) &lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2bf1cfb0fb5470896af21c2c584f53f556e1551b 2bf1cfb0fb5470896af21c2c584f53f556e1551b]&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE. &lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2019-11-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers. &lt;br /&gt;
|-&lt;br /&gt;
| 2020-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
| *nix: fix linking with system Python 3 &lt;br /&gt;
|-&lt;br /&gt;
| 2020-05-19&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
| All: fix issue with GNU make 4.3 &lt;br /&gt;
|-&lt;br /&gt;
| 2020-10-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found. &lt;br /&gt;
|-&lt;br /&gt;
| 2022-04-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2022-08-22&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x. &lt;br /&gt;
|-&lt;br /&gt;
| 2023-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| 2024-11-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/0897ef4cee1ef03c6dd4a2b64f2839ade1353eb8 0897ef4cee1ef03c6dd4a2b64f2839ade1353eb8]&lt;br /&gt;
| All: Fix c99 errors&lt;br /&gt;
|-&lt;br /&gt;
| 2025-04-30&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/aa1f4ecdf0af2b4b877bfaec913d4ef42e7dad01 aa1f4ecdf0af2b4b877bfaec913d4ef42e7dad01]&lt;br /&gt;
| *nix: fixes LIBXSLT_CFLAGS placement allowing our boost headers to be found before system headers&lt;br /&gt;
|-&lt;br /&gt;
| 2025-05-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/523491489b0a7126864a6de1be3e6e170549602a 523491489b0a7126864a6de1be3e6e170549602a]&lt;br /&gt;
| All: Fix build with libxml2 &amp;gt;= 2.12.0&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Other ==&lt;br /&gt;
&lt;br /&gt;
Prefer internal dependencies, as transitive dependencies on system dependencies are difficult to get working, eg. old serf&amp;#039;s use of new system OpenSSL would need serf patched.&lt;br /&gt;
&lt;br /&gt;
Some old versions put the include path for system headers ahead of the include path to project headers, which can break the build if a dependency is installed system-wide but we want to use a local copy. For example, vcl wants boost, but if you have system boost installed yet are using internal boost, it will try including the system boost headers and break. The easiest way to fix this is to uninstall or hide/rename the system dependency so it&amp;#039;s hidden to the build, forcing only the internal version to be used.&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=267463</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=267463"/>
		<updated>2026-06-28T05:59:34Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Add aa1f4ecdf0af2b4b877bfaec913d4ef42e7dad01&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in the same order as given below, (ie. top to bottom, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&lt;br /&gt;
If a patch doesn&amp;#039;t apply, you have to make the equivalent code changes yourself.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date&lt;br /&gt;
! Git commit&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2fb14843010286ad9430e029e940242d039c9bf4 2fb14843010286ad9430e029e940242d039c9bf4]&lt;br /&gt;
| All: obsolete and remove the emulation of hash_map&amp;#039;s data_type typedef &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/60db4cd41876498d413568ed5a829ba6386245f9 60db4cd41876498d413568ed5a829ba6386245f9]&lt;br /&gt;
| Java: upgrade to the first version of commons-logging that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/21f06b298926b5eac098ed9c306560dd458d3a1e 21f06b298926b5eac098ed9c306560dd458d3a1e]&lt;br /&gt;
| Java: upgrade to the first version of commons-logging that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/47d3be6bd7cbd0f5aa101006532916676c4ceede 47d3be6bd7cbd0f5aa101006532916676c4ceede]&lt;br /&gt;
| Java: upgrade to the first version of commons-codec that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/bcff05d666ac35a4ddc41f4176bdf0038fd9cb02 bcff05d666ac35a4ddc41f4176bdf0038fd9cb02]&lt;br /&gt;
| Java: upgrade to the first version of commons-lang that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f0339755da5abc74646151d092c4739dd9e5ee54 f0339755da5abc74646151d092c4739dd9e5ee54]&lt;br /&gt;
| Java: related change to version upgrades code, logging &lt;br /&gt;
|-&lt;br /&gt;
| 2014-04-30&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/22076bf181e8f43a1d012a1c50cab412d09ed2b0 22076bf181e8f43a1d012a1c50cab412d09ed2b0]&lt;br /&gt;
| All: remove obsoleted sal-module-internal custom STL allocator &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5766e80935d60fd1804ed950d1972ff5e88fda76 5766e80935d60fd1804ed950d1972ff5e88fda76]&lt;br /&gt;
| All: fix default arguments in friend declarations &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49 ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49]&lt;br /&gt;
| All: remove custom allocator support in stlport-replacement headers &lt;br /&gt;
|-&lt;br /&gt;
| 2014-06-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e]&lt;br /&gt;
| FreeBSD: Fix the regression in 892b8f20ca40cc85f427d5bbef706b21ecd460e6. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-07-06&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76cf606939c261af2f957ef904a0384a3b6169da 76cf606939c261af2f957ef904a0384a3b6169da]&lt;br /&gt;
| FreeBSD: Add initial support for FreeBSD PPC using gcc.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-08-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/1b8c19f4d7f427d50c5ed0f65f07d814d9decf09 1b8c19f4d7f427d50c5ed0f65f07d814d9decf09]&lt;br /&gt;
| OS/2: build fixes for enabling Category B&lt;br /&gt;
|-&lt;br /&gt;
| 2014-11-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/55c23f91915c517b95be9f74fad73851a384fa05 55c23f91915c517b95be9f74fad73851a384fa05]&lt;br /&gt;
| OS/2: build fixes for enabling Category B also in OS/2 port.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-11-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&lt;br /&gt;
NOTE: needed for later patches, not just on OS/2. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-12-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/0fdc0ac7221c318421259c4834dce6b0be377a8b 0fdc0ac7221c318421259c4834dce6b0be377a8b]&lt;br /&gt;
| macOS: fix autodetection of the OSX 10.10 SDK&lt;br /&gt;
|-&lt;br /&gt;
| 2015-01-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/483bf1cb99a9fae931d407012ae00ce38c31b940 483bf1cb99a9fae931d407012ae00ce38c31b940]&lt;br /&gt;
| All: Fix build breaker introduced in revision 1651396&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
| FreeBSD: build structure changes &lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
| NSS build fixes. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
| FreeBSD: system jpeg build fix. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
| FreeBSD: better GCC/Clang support &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a84fbf33bbab2f93304ad5b1d232610ec9a69c27 a84fbf33bbab2f93304ad5b1d232610ec9a69c27]&lt;br /&gt;
| FreeBSD: Work around clang-3.4 issues.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-29&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-02&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/58303369294a39db2c0a54066360efff909daa9a 58303369294a39db2c0a54066360efff909daa9a]&lt;br /&gt;
| All: fix inlining options passed to Clang.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76decbbc67da8c86b617e1a4414d0f5ea6db5ff1 76decbbc67da8c86b617e1a4414d0f5ea6db5ff1]&lt;br /&gt;
| FreeBSD: FreeBSD-10 fixes&lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-13&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply). &lt;br /&gt;
|-&lt;br /&gt;
| 2015-10-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-12&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c4b07b4b14a3bb46b6e96fc7a31d099df09d5413 c4b07b4b14a3bb46b6e96fc7a31d099df09d5413]&lt;br /&gt;
| macOS: Add support for MacOSX El Capitan&lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/28633775241ee602b4a2e63aa263cce06685e4c0 28633775241ee602b4a2e63aa263cce06685e4c0]&lt;br /&gt;
| FreeBSD/Solaris: use $GREP, $EGREP in configure.ac&lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ceb6c4440c3fb3efdb611054a51caa1e35fd152e ceb6c4440c3fb3efdb611054a51caa1e35fd152e]&lt;br /&gt;
| FreeBSD: Allow build of Open Office on FreeBSD Mac PowerPCG5&lt;br /&gt;
|-&lt;br /&gt;
| 2016-01-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&lt;br /&gt;
NOTE: Only a portion of this patch matters, use:&lt;br /&gt;
git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx | patch -p1 &lt;br /&gt;
|-&lt;br /&gt;
| 2016-02-11&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu &lt;br /&gt;
|-&lt;br /&gt;
| 2016-06-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round(). &lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/b63233d868a9af170b0457a7aa0c5809011cc2c1 b63233d868a9af170b0457a7aa0c5809011cc2c1]&lt;br /&gt;
| All: Merge branches/gbuild-reintegration to trunk. (Only main/source_soenv.sh)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d1de9d7f8e018ffc301c2ceb9e5f62e3ca186daa d1de9d7f8e018ffc301c2ceb9e5f62e3ca186daa]&lt;br /&gt;
| All: part of the “Merge branches/gbuild-reintegration to trunk.” branch&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c74c5bb92a8f815eea63d1036b0ae27319568c98 c74c5bb92a8f815eea63d1036b0ae27319568c98]&lt;br /&gt;
| Windows: new way to set the gbuild console/ui subsystem flag.&lt;br /&gt;
(Needs to be customized a lot to apply.)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/78b0b3bf9bbc90d2acc64339b8de1a40d7438b4e 78b0b3bf9bbc90d2acc64339b8de1a40d7438b4e]&lt;br /&gt;
| Windows: fix flag to determine whether the C runtime library is linked statically/dynamically and single/multithreaded. (Only main/solenv part needed.)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f78a4bb8ff5d512c1dab2e128edb7d5fba78b03b f78a4bb8ff5d512c1dab2e128edb7d5fba78b03b]&lt;br /&gt;
| All: Upgrade bundled raptor from raptor-1.4.18 to raptor2-2.0.15&lt;br /&gt;
|-&lt;br /&gt;
| 2016-12-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e15a45347c4af89b363e7d092ae18e347f2f052f e15a45347c4af89b363e7d092ae18e347f2f052f]&lt;br /&gt;
| FreeBSD: Update endianness detection on FreeBSD.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7a46fbe49ba6c420f01922f987a00bf586522653 7a46fbe49ba6c420f01922f987a00bf586522653]&lt;br /&gt;
| FreeBSD: Initial support for the FreeBSD ARM platform.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-13&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5a81235241b51fcd40950a7973a436401218ec88 5a81235241b51fcd40950a7973a436401218ec88]&lt;br /&gt;
| FreeBSD: PPC: Cleanup makefile include mess.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/81e6fec9aa5d40eea94d1c86f72a7b55900dc816 81e6fec9aa5d40eea94d1c86f72a7b55900dc816]&lt;br /&gt;
| All: libstdc++ removal&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
| All: Clang 4 issues. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a]&lt;br /&gt;
| All: nullptr -&amp;gt; NULL. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8]&lt;br /&gt;
| All: Clang 4 fix. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
| *nix: remove unused header from hunspell. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8f07f855b27ed7bcc010af365ebc4fea86de7182 8f07f855b27ed7bcc010af365ebc4fea86de7182]&lt;br /&gt;
| FreeBSD: fix gb_CPUDEFS regression.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9e1b801e35d1189c57bceab0e99f961ae72a2b3f 9e1b801e35d1189c57bceab0e99f961ae72a2b3f]&lt;br /&gt;
| All: debug symbol fixes for gbuild&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/6e4dc73d13071947dbd3f9139aca1e3b58c81103 6e4dc73d13071947dbd3f9139aca1e3b58c81103]&lt;br /&gt;
| Linux: Reinstate part of the LinuxPPC64 support removed by error.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-02-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/bcc22a4c08e1268a4f06e54fb146f88ef49f2cdc bcc22a4c08e1268a4f06e54fb146f88ef49f2cdc]&lt;br /&gt;
| All: Add initial support for building AOO with Clang on Linux.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f669900deea0b6f978ffaf80c4471c274b89aeda f669900deea0b6f978ffaf80c4471c274b89aeda]&lt;br /&gt;
| macOS: macOS fixes, Xcode8&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/87bf159baa3ed610953f1e9d9714ca462a7efc20 87bf159baa3ed610953f1e9d9714ca462a7efc20]&lt;br /&gt;
| macOS: Get macOS compiling again&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16daaedff86cb7f882d39e13c4bd90a89187fddc 16daaedff86cb7f882d39e13c4bd90a89187fddc]&lt;br /&gt;
| MacOS: 10.9&lt;br /&gt;
|-&lt;br /&gt;
| 2017-10-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9e1bc29152c52d82ff2070c9282143da61a4a507 9e1bc29152c52d82ff2070c9282143da61a4a507]&lt;br /&gt;
| macOS: Get macOS compiling again&lt;br /&gt;
|-&lt;br /&gt;
| 2017-10-10&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5532af069966acd59346782985cd865067d2cdb1 5532af069966acd59346782985cd865067d2cdb1]&lt;br /&gt;
| macOS: C++ fixes&lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-01-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/78ecfec34f3bb6578b4663d63ae245594c795fe3 78ecfec34f3bb6578b4663d63ae245594c795fe3]&lt;br /&gt;
| All: delete GXX_INCLUDE_PATH&lt;br /&gt;
|-&lt;br /&gt;
| 2018-01-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/deb9523b63f459edd793c45f6e7ac6d1130b1e9f deb9523b63f459edd793c45f6e7ac6d1130b1e9f]&lt;br /&gt;
| All: build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9 &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8d23410d6e3d8728779a0bca516f274ab5ec01c4 8d23410d6e3d8728779a0bca516f274ab5ec01c4]&lt;br /&gt;
| All: Fix indentation.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| All: fix building lucene with Java 1.9 &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/386ca8668004b012c6f9f4525bfcb30dea9d960d 386ca8668004b012c6f9f4525bfcb30dea9d960d]&lt;br /&gt;
| All: build changes&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-12&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/edd74ba5165751c51050786f638af262ec502968 edd74ba5165751c51050786f638af262ec502968]&lt;br /&gt;
| Windows: preliminary support for 64 bit Windows&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8cb913c41397e529ead8b9128c8888b324408e46 8cb913c41397e529ead8b9128c8888b324408e46]&lt;br /&gt;
| All: Fix the gbuild platform CPUDEFS to conform to what modules expect. (Only main/solenv/gbuild part needed.)&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
| *nix: target the gnu++98 C++ standard. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
(A critical patch, but impossibly difficult to apply...) &lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2bf1cfb0fb5470896af21c2c584f53f556e1551b 2bf1cfb0fb5470896af21c2c584f53f556e1551b]&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE. &lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2019-11-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers. &lt;br /&gt;
|-&lt;br /&gt;
| 2020-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
| *nix: fix linking with system Python 3 &lt;br /&gt;
|-&lt;br /&gt;
| 2020-05-19&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
| All: fix issue with GNU make 4.3 &lt;br /&gt;
|-&lt;br /&gt;
| 2020-10-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found. &lt;br /&gt;
|-&lt;br /&gt;
| 2022-04-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2022-08-22&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x. &lt;br /&gt;
|-&lt;br /&gt;
| 2023-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| 2024-11-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/0897ef4cee1ef03c6dd4a2b64f2839ade1353eb8 0897ef4cee1ef03c6dd4a2b64f2839ade1353eb8]&lt;br /&gt;
| All: Fix c99 errors&lt;br /&gt;
|-&lt;br /&gt;
| 2025-04-30&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/aa1f4ecdf0af2b4b877bfaec913d4ef42e7dad01 aa1f4ecdf0af2b4b877bfaec913d4ef42e7dad01]&lt;br /&gt;
| *nix: fixes LIBXSLT_CFLAGS placement allowing our boost headers to be found before system headers&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Other ==&lt;br /&gt;
&lt;br /&gt;
Prefer internal dependencies, as transitive dependencies on system dependencies are difficult to get working, eg. old serf&amp;#039;s use of new system OpenSSL would need serf patched.&lt;br /&gt;
&lt;br /&gt;
Some old versions put the include path for system headers ahead of the include path to project headers, which can break the build if a dependency is installed system-wide but we want to use a local copy. For example, vcl wants boost, but if you have system boost installed yet are using internal boost, it will try including the system boost headers and break. The easiest way to fix this is to uninstall or hide/rename the system dependency so it&amp;#039;s hidden to the build, forcing only the internal version to be used.&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=267462</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=267462"/>
		<updated>2026-06-28T01:06:43Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Add a c99 patch.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in the same order as given below, (ie. top to bottom, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&lt;br /&gt;
If a patch doesn&amp;#039;t apply, you have to make the equivalent code changes yourself.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date&lt;br /&gt;
! Git commit&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2fb14843010286ad9430e029e940242d039c9bf4 2fb14843010286ad9430e029e940242d039c9bf4]&lt;br /&gt;
| All: obsolete and remove the emulation of hash_map&amp;#039;s data_type typedef &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/60db4cd41876498d413568ed5a829ba6386245f9 60db4cd41876498d413568ed5a829ba6386245f9]&lt;br /&gt;
| Java: upgrade to the first version of commons-logging that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/21f06b298926b5eac098ed9c306560dd458d3a1e 21f06b298926b5eac098ed9c306560dd458d3a1e]&lt;br /&gt;
| Java: upgrade to the first version of commons-logging that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/47d3be6bd7cbd0f5aa101006532916676c4ceede 47d3be6bd7cbd0f5aa101006532916676c4ceede]&lt;br /&gt;
| Java: upgrade to the first version of commons-codec that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/bcff05d666ac35a4ddc41f4176bdf0038fd9cb02 bcff05d666ac35a4ddc41f4176bdf0038fd9cb02]&lt;br /&gt;
| Java: upgrade to the first version of commons-lang that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f0339755da5abc74646151d092c4739dd9e5ee54 f0339755da5abc74646151d092c4739dd9e5ee54]&lt;br /&gt;
| Java: related change to version upgrades code, logging &lt;br /&gt;
|-&lt;br /&gt;
| 2014-04-30&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/22076bf181e8f43a1d012a1c50cab412d09ed2b0 22076bf181e8f43a1d012a1c50cab412d09ed2b0]&lt;br /&gt;
| All: remove obsoleted sal-module-internal custom STL allocator &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5766e80935d60fd1804ed950d1972ff5e88fda76 5766e80935d60fd1804ed950d1972ff5e88fda76]&lt;br /&gt;
| All: fix default arguments in friend declarations &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49 ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49]&lt;br /&gt;
| All: remove custom allocator support in stlport-replacement headers &lt;br /&gt;
|-&lt;br /&gt;
| 2014-06-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e]&lt;br /&gt;
| FreeBSD: Fix the regression in 892b8f20ca40cc85f427d5bbef706b21ecd460e6. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-07-06&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76cf606939c261af2f957ef904a0384a3b6169da 76cf606939c261af2f957ef904a0384a3b6169da]&lt;br /&gt;
| FreeBSD: Add initial support for FreeBSD PPC using gcc.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-08-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/1b8c19f4d7f427d50c5ed0f65f07d814d9decf09 1b8c19f4d7f427d50c5ed0f65f07d814d9decf09]&lt;br /&gt;
| OS/2: build fixes for enabling Category B&lt;br /&gt;
|-&lt;br /&gt;
| 2014-11-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/55c23f91915c517b95be9f74fad73851a384fa05 55c23f91915c517b95be9f74fad73851a384fa05]&lt;br /&gt;
| OS/2: build fixes for enabling Category B also in OS/2 port.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-11-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&lt;br /&gt;
NOTE: needed for later patches, not just on OS/2. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-12-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/0fdc0ac7221c318421259c4834dce6b0be377a8b 0fdc0ac7221c318421259c4834dce6b0be377a8b]&lt;br /&gt;
| macOS: fix autodetection of the OSX 10.10 SDK&lt;br /&gt;
|-&lt;br /&gt;
| 2015-01-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/483bf1cb99a9fae931d407012ae00ce38c31b940 483bf1cb99a9fae931d407012ae00ce38c31b940]&lt;br /&gt;
| All: Fix build breaker introduced in revision 1651396&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
| FreeBSD: build structure changes &lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
| NSS build fixes. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
| FreeBSD: system jpeg build fix. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
| FreeBSD: better GCC/Clang support &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a84fbf33bbab2f93304ad5b1d232610ec9a69c27 a84fbf33bbab2f93304ad5b1d232610ec9a69c27]&lt;br /&gt;
| FreeBSD: Work around clang-3.4 issues.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-29&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-02&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/58303369294a39db2c0a54066360efff909daa9a 58303369294a39db2c0a54066360efff909daa9a]&lt;br /&gt;
| All: fix inlining options passed to Clang.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76decbbc67da8c86b617e1a4414d0f5ea6db5ff1 76decbbc67da8c86b617e1a4414d0f5ea6db5ff1]&lt;br /&gt;
| FreeBSD: FreeBSD-10 fixes&lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-13&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply). &lt;br /&gt;
|-&lt;br /&gt;
| 2015-10-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-12&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c4b07b4b14a3bb46b6e96fc7a31d099df09d5413 c4b07b4b14a3bb46b6e96fc7a31d099df09d5413]&lt;br /&gt;
| macOS: Add support for MacOSX El Capitan&lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/28633775241ee602b4a2e63aa263cce06685e4c0 28633775241ee602b4a2e63aa263cce06685e4c0]&lt;br /&gt;
| FreeBSD/Solaris: use $GREP, $EGREP in configure.ac&lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ceb6c4440c3fb3efdb611054a51caa1e35fd152e ceb6c4440c3fb3efdb611054a51caa1e35fd152e]&lt;br /&gt;
| FreeBSD: Allow build of Open Office on FreeBSD Mac PowerPCG5&lt;br /&gt;
|-&lt;br /&gt;
| 2016-01-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&lt;br /&gt;
NOTE: Only a portion of this patch matters, use:&lt;br /&gt;
git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx | patch -p1 &lt;br /&gt;
|-&lt;br /&gt;
| 2016-02-11&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu &lt;br /&gt;
|-&lt;br /&gt;
| 2016-06-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round(). &lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/b63233d868a9af170b0457a7aa0c5809011cc2c1 b63233d868a9af170b0457a7aa0c5809011cc2c1]&lt;br /&gt;
| All: Merge branches/gbuild-reintegration to trunk. (Only main/source_soenv.sh)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d1de9d7f8e018ffc301c2ceb9e5f62e3ca186daa d1de9d7f8e018ffc301c2ceb9e5f62e3ca186daa]&lt;br /&gt;
| All: part of the “Merge branches/gbuild-reintegration to trunk.” branch&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c74c5bb92a8f815eea63d1036b0ae27319568c98 c74c5bb92a8f815eea63d1036b0ae27319568c98]&lt;br /&gt;
| Windows: new way to set the gbuild console/ui subsystem flag.&lt;br /&gt;
(Needs to be customized a lot to apply.)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/78b0b3bf9bbc90d2acc64339b8de1a40d7438b4e 78b0b3bf9bbc90d2acc64339b8de1a40d7438b4e]&lt;br /&gt;
| Windows: fix flag to determine whether the C runtime library is linked statically/dynamically and single/multithreaded. (Only main/solenv part needed.)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f78a4bb8ff5d512c1dab2e128edb7d5fba78b03b f78a4bb8ff5d512c1dab2e128edb7d5fba78b03b]&lt;br /&gt;
| All: Upgrade bundled raptor from raptor-1.4.18 to raptor2-2.0.15&lt;br /&gt;
|-&lt;br /&gt;
| 2016-12-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e15a45347c4af89b363e7d092ae18e347f2f052f e15a45347c4af89b363e7d092ae18e347f2f052f]&lt;br /&gt;
| FreeBSD: Update endianness detection on FreeBSD.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7a46fbe49ba6c420f01922f987a00bf586522653 7a46fbe49ba6c420f01922f987a00bf586522653]&lt;br /&gt;
| FreeBSD: Initial support for the FreeBSD ARM platform.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-13&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5a81235241b51fcd40950a7973a436401218ec88 5a81235241b51fcd40950a7973a436401218ec88]&lt;br /&gt;
| FreeBSD: PPC: Cleanup makefile include mess.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/81e6fec9aa5d40eea94d1c86f72a7b55900dc816 81e6fec9aa5d40eea94d1c86f72a7b55900dc816]&lt;br /&gt;
| All: libstdc++ removal&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
| All: Clang 4 issues. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a]&lt;br /&gt;
| All: nullptr -&amp;gt; NULL. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8]&lt;br /&gt;
| All: Clang 4 fix. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
| *nix: remove unused header from hunspell. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8f07f855b27ed7bcc010af365ebc4fea86de7182 8f07f855b27ed7bcc010af365ebc4fea86de7182]&lt;br /&gt;
| FreeBSD: fix gb_CPUDEFS regression.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9e1b801e35d1189c57bceab0e99f961ae72a2b3f 9e1b801e35d1189c57bceab0e99f961ae72a2b3f]&lt;br /&gt;
| All: debug symbol fixes for gbuild&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/6e4dc73d13071947dbd3f9139aca1e3b58c81103 6e4dc73d13071947dbd3f9139aca1e3b58c81103]&lt;br /&gt;
| Linux: Reinstate part of the LinuxPPC64 support removed by error.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-02-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/bcc22a4c08e1268a4f06e54fb146f88ef49f2cdc bcc22a4c08e1268a4f06e54fb146f88ef49f2cdc]&lt;br /&gt;
| All: Add initial support for building AOO with Clang on Linux.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f669900deea0b6f978ffaf80c4471c274b89aeda f669900deea0b6f978ffaf80c4471c274b89aeda]&lt;br /&gt;
| macOS: macOS fixes, Xcode8&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/87bf159baa3ed610953f1e9d9714ca462a7efc20 87bf159baa3ed610953f1e9d9714ca462a7efc20]&lt;br /&gt;
| macOS: Get macOS compiling again&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16daaedff86cb7f882d39e13c4bd90a89187fddc 16daaedff86cb7f882d39e13c4bd90a89187fddc]&lt;br /&gt;
| MacOS: 10.9&lt;br /&gt;
|-&lt;br /&gt;
| 2017-10-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9e1bc29152c52d82ff2070c9282143da61a4a507 9e1bc29152c52d82ff2070c9282143da61a4a507]&lt;br /&gt;
| macOS: Get macOS compiling again&lt;br /&gt;
|-&lt;br /&gt;
| 2017-10-10&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5532af069966acd59346782985cd865067d2cdb1 5532af069966acd59346782985cd865067d2cdb1]&lt;br /&gt;
| macOS: C++ fixes&lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-01-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/78ecfec34f3bb6578b4663d63ae245594c795fe3 78ecfec34f3bb6578b4663d63ae245594c795fe3]&lt;br /&gt;
| All: delete GXX_INCLUDE_PATH&lt;br /&gt;
|-&lt;br /&gt;
| 2018-01-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/deb9523b63f459edd793c45f6e7ac6d1130b1e9f deb9523b63f459edd793c45f6e7ac6d1130b1e9f]&lt;br /&gt;
| All: build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9 &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8d23410d6e3d8728779a0bca516f274ab5ec01c4 8d23410d6e3d8728779a0bca516f274ab5ec01c4]&lt;br /&gt;
| All: Fix indentation.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| All: fix building lucene with Java 1.9 &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/386ca8668004b012c6f9f4525bfcb30dea9d960d 386ca8668004b012c6f9f4525bfcb30dea9d960d]&lt;br /&gt;
| All: build changes&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-12&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/edd74ba5165751c51050786f638af262ec502968 edd74ba5165751c51050786f638af262ec502968]&lt;br /&gt;
| Windows: preliminary support for 64 bit Windows&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8cb913c41397e529ead8b9128c8888b324408e46 8cb913c41397e529ead8b9128c8888b324408e46]&lt;br /&gt;
| All: Fix the gbuild platform CPUDEFS to conform to what modules expect. (Only main/solenv/gbuild part needed.)&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
| *nix: target the gnu++98 C++ standard. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
(A critical patch, but impossibly difficult to apply...) &lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2bf1cfb0fb5470896af21c2c584f53f556e1551b 2bf1cfb0fb5470896af21c2c584f53f556e1551b]&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE. &lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2019-11-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers. &lt;br /&gt;
|-&lt;br /&gt;
| 2020-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
| *nix: fix linking with system Python 3 &lt;br /&gt;
|-&lt;br /&gt;
| 2020-05-19&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
| All: fix issue with GNU make 4.3 &lt;br /&gt;
|-&lt;br /&gt;
| 2020-10-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found. &lt;br /&gt;
|-&lt;br /&gt;
| 2022-04-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2022-08-22&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x. &lt;br /&gt;
|-&lt;br /&gt;
| 2023-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| 2024-11-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/0897ef4cee1ef03c6dd4a2b64f2839ade1353eb8 0897ef4cee1ef03c6dd4a2b64f2839ade1353eb8]&lt;br /&gt;
| all: Fix c99 errors&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Other ==&lt;br /&gt;
&lt;br /&gt;
Prefer internal dependencies, as transitive dependencies on system dependencies are difficult to get working, eg. old serf&amp;#039;s use of new system OpenSSL would need serf patched.&lt;br /&gt;
&lt;br /&gt;
Some old versions put the include path for system headers ahead of the include path to project headers, which can break the build if a dependency is installed system-wide but we want to use a local copy. For example, vcl wants boost, but if you have system boost installed yet are using internal boost, it will try including the system boost headers and break. The easiest way to fix this is to uninstall or hide/rename the system dependency so it&amp;#039;s hidden to the build, forcing only the internal version to be used.&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Python_as_a_macro_language&amp;diff=267385</id>
		<title>Python as a macro language</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Python_as_a_macro_language&amp;diff=267385"/>
		<updated>2026-05-24T06:10:10Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Update the current state of editing Python macros.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Pyuno supports the {{AOo}} scripting framework which first shipped with OpenOffice.org 2.0. The current support is limited to the &amp;#039;&amp;#039;&amp;#039;core framework&amp;#039;&amp;#039;&amp;#039;, meaning that execution and assigning of macros via the standard Tools/Macro dialog works fine, minimal editing was added recently, but debugging macros is not yet integrated in {{AOo}}&amp;#039;s UI (simply because of the lack of development resources). Use your favourite text editor to create and modify python scripts.&lt;br /&gt;
&lt;br /&gt;
== Script Location ==&lt;br /&gt;
Scripts to be excuted in {{AOo}} can be stored within the following locations:&lt;br /&gt;
[[Image:Macro_run_dlg.PNG]]&lt;br /&gt;
&lt;br /&gt;
==={{AOo}}&amp;#039;s user directory===&lt;br /&gt;
&lt;br /&gt;
This is the standard place for self written python scripts. The script files are simply stored within the file system. The directory location depends on the used {{AOo}} version and the operating system. Some examples are:&lt;br /&gt;
====OpenOffice 2.x====&lt;br /&gt;
* Windows - &amp;#039;&amp;#039;&amp;#039;C:\Documents and Settings\&amp;lt;current-user\&amp;gt;Application Data\OpenOffice.org 2.0\user\Scripts\python&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Unix - &amp;#039;&amp;#039;&amp;#039;~/.openoffice.org.2.0/user/Scripts/python&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;~/.openoffice.org.2.0/user/Scripts/python&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
====OpenOffice 3.x====&lt;br /&gt;
* Windows 7 - &amp;#039;&amp;#039;&amp;#039;C:\Users\&amp;lt;current-user&amp;gt;\AppData\Roaming\OpenOffice.org\3\user\Scripts\python&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Unix - &amp;#039;&amp;#039;&amp;#039;~/.openoffice.org/3/user/Scripts/python&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
====OpenOffice 4.x====&lt;br /&gt;
* Windows 10/11 - &amp;#039;&amp;#039;&amp;#039;C:\Users\&amp;lt;current-user&amp;gt;\AppData\Roaming\OpenOffice\4\user\Scripts\python&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Unix - &amp;#039;&amp;#039;&amp;#039;~/.openoffice.org/4/user/Scripts/python&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Note, that the last python subdirectory may need to be created initially. Make sure, the word python is completely written lowercase. You can add arbitrary deeply nested subdirectories, the names of these directories are reflected in the UI. &lt;br /&gt;
&lt;br /&gt;
Example: The [https://www.openoffice.org/udk/python/scriptingframework/dynamicDialog.py dynamicDialog.py] file can simply be placed in the above directory. Afterward, open the &amp;#039;&amp;#039;Tools/Macros/Run macro dialog&amp;#039;&amp;#039; and navigate to the position shown in the above picture. Click on {{button|Run}} to execute the python script, which opens another dialog with a push button and a label field. Clicking the button will increase the number within the label field. The dialog can be closed by pressing ESC.&lt;br /&gt;
&lt;br /&gt;
==={{AOo}}&amp;#039;s share directory===&lt;br /&gt;
&lt;br /&gt;
Scripts that shall be shared throughout all users of a concrete {{AOo}} installation can be stored with the share directory. All default scripts coming with {{AOo}} are located here. In general, this directory should not be used for script deployment (see later uno-packages). &lt;br /&gt;
&lt;br /&gt;
The script files are simply stored within the file system. The directory location is, (like the user directories), depending on the used OpenOffice.org/Apache OpenOffice version and the operating system. Some examples are:&lt;br /&gt;
&lt;br /&gt;
====OpenOffice 2.x====&lt;br /&gt;
* Windows &amp;#039;&amp;#039;&amp;#039;C:\Program Files\OpenOffice.org 2.0\share\Scripts\python&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Unix	&amp;#039;&amp;#039;&amp;#039;/usr/lib/openoffice/share/Scripts/python&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
====OpenOffice 3.x====&lt;br /&gt;
* Windows 7/64Bit &amp;#039;&amp;#039;C:\Program Files (x86)\OpenOffice.org 3\Basis\share\Scripts\python&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Ubuntu 10.04 &amp;#039;&amp;#039;&amp;#039;/usr/lib/openoffice/basis3.2/share/Scripts/python&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
====OpenOffice 4.x====&lt;br /&gt;
* Windows 10/11/64bit &amp;#039;&amp;#039;C:\Program Files (x86)\OpenOffice 4\share\Scripts\python&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Ubuntu 10.04 &amp;#039;&amp;#039;&amp;#039;/usr/lib/openoffice/4/share/Scripts/python&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Embedded within an {{AOo}}&amp;#039;s document===&lt;br /&gt;
&lt;br /&gt;
An Apache OpenOffice document is a zip-File, which contains different files. Python scripts within documents are stored in Scripts/python subdirectory. &lt;br /&gt;
&lt;br /&gt;
If you want to ship your self written python scripts within a document, you should first develop your scripts in the (above mentioned) user directory and then finally move the scripts into the document with your favorite zip tool. However, note that you must reassign every binding you did before to the script instances in the document. Ideally, you move away the scripts from the user directory and do a regression test on the document&amp;#039;s functionality.&lt;br /&gt;
&lt;br /&gt;
After moving the script files into the document, you have to add some lines (boldly printed) to the &amp;#039;&amp;#039;META-INF/manifest.xml&amp;#039;&amp;#039; file:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE manifest:manifest PUBLIC &amp;quot;-//OpenOffice.org//DTD Manifest 1.0//EN&amp;quot; &amp;quot;Manifest.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;manifest:manifest xmlns:manifest=&amp;quot;http://openoffice.org/2001/manifest&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;manifest:file-entry manifest:media-type=&amp;quot;application/vnd.oasis.opendocument.text&amp;quot; manifest:full-path=&amp;quot;/&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;manifest:file-entry manifest:media-type=&amp;quot;application/vnd.sun.xml.ui.configuration&amp;quot; manifest:full-path=&amp;quot;Configurations2/&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;manifest:file-entry manifest:media-type=&amp;quot;&amp;quot; manifest:full-path=&amp;quot;Pictures/&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;manifest:file-entry manifest:media-type=&amp;quot;text/xml&amp;quot; manifest:full-path=&amp;quot;content.xml&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;manifest:file-entry manifest:media-type=&amp;quot;text/xml&amp;quot; manifest:full-path=&amp;quot;styles.xml&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;manifest:file-entry manifest:media-type=&amp;quot;text/xml&amp;quot; manifest:full-path=&amp;quot;meta.xml&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;manifest:file-entry manifest:media-type=&amp;quot;&amp;quot; manifest:full-path=&amp;quot;Thumbnails/thumbnail.png&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;manifest:file-entry manifest:media-type=&amp;quot;&amp;quot; manifest:full-path=&amp;quot;Thumbnails/&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;manifest:file-entry manifest:media-type=&amp;quot;text/xml&amp;quot; manifest:full-path=&amp;quot;settings.xml&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;manifest:file-entry manifest:media-type=&amp;quot;&amp;quot; manifest:full-path=&amp;quot;Scripts/python/push_me.py&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;manifest:file-entry manifest:media-type=&amp;quot;application/binary&amp;quot; manifest:full-path=&amp;quot;Scripts/python/&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;manifest:file-entry manifest:media-type=&amp;quot;application/binary&amp;quot; manifest:full-path=&amp;quot;Scripts/&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/manifest:manifest&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you open the document afterwards, the {{AOo}}&amp;#039;s UI should warn you about script content within the document (when this is not the case, you either have switched off the warning in the options or you did something wrong).&lt;br /&gt;
&lt;br /&gt;
Example:To see how it works, download [[File:Push_me_python4.odt]]. The document contains a push button and a multi line edit control. Pressing the button adds a new line with the current time stamp to the multi line edit control.&lt;br /&gt;
&lt;br /&gt;
===Embedded within a uno-package in {{AOo}}&amp;#039;s user directory (read only)===&lt;br /&gt;
&lt;br /&gt;
Often, distributing scripts in documents is not what you want (for instance when you want to modify the application itself or you want to use the same scripts with multiple documents ). Therefor you can place your scripts simply within uno-packages. &lt;br /&gt;
&lt;br /&gt;
A uno-package is a zip-file. Its name must end with .pkg, otherwise it does not work. file, where you must define the subdirectory (required!) that shall contain scripts. For instance the sample [https://www.openoffice.org/udk/python/scriptingframework/pyhello2.uno.pkg pyhello2.uno.pkg] has the following file structure:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
META-INF/&lt;br /&gt;
META-INF/manifest.xml&lt;br /&gt;
package/&lt;br /&gt;
package/hallo.py&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The hallo.py contains the scripts. How to write scripts is explained below. However, in order to make a script work within a uno package, you must add some dummy code.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# ... here is the python script code&lt;br /&gt;
&lt;br /&gt;
# this must be added to every script file (the&lt;br /&gt;
# name org.openoffice.script.DummyImplementationForPythonScripts should be changed to something&lt;br /&gt;
# different (must be unique within an office installation !)&lt;br /&gt;
# --- faked component, dummy to allow registration with unopkg, no functionality expected&lt;br /&gt;
import unohelper&lt;br /&gt;
g_ImplementationHelper = unohelper.ImplementationHelper()&lt;br /&gt;
g_ImplementationHelper.addImplementation( \&lt;br /&gt;
	None,&amp;quot;org.openoffice.script.DummyImplementationForPythonScripts&amp;quot;, \&lt;br /&gt;
    (&amp;quot;org.openoffice.script.DummyServiceForPythonScripts&amp;quot;,),)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
By default, every .py-file is interpreted as a UNO component. Not having the above lines within the .py file would raise errors during deployment. &lt;br /&gt;
&lt;br /&gt;
The directory name (here package) can be choosen freely. A uno-package with a python script must contain a META-INF/manifest.xml, which needs to point to the freely chosen directory name.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE manifest:manifest PUBLIC &amp;quot;-//OpenOffice.org//DTD Manifest 1.0//EN&amp;quot; &amp;quot;Manifest.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;manifest:manifest xmlns:manifest=&amp;quot;http://openoffice.org/2001/manifest&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;manifest:file-entry manifest:media-type=&amp;quot;application/vnd.sun.star.framework-script&amp;quot; manifest:full-path=&amp;quot;package&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/manifest:manifest&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Every user can add packages via the package manager ({{menu|Tools|Extension manager}}). Note, that content within the package is by design readonly, it is really a pure deployment, not a development mechanism. This might be the reason, why scripts in packages cannot be viewed via Tools/Macros/Organize macros/Python dialog. &lt;br /&gt;
Embedded within a uno-package in {{AOo}}&amp;#039;s share directory (read only) &lt;br /&gt;
&lt;br /&gt;
Packages can be added by an administrator to a complete {{AOo}} installation, so that every user can use run the macros located within the package. This can be done with the unopkg tool.&lt;br /&gt;
&lt;br /&gt;
==Script coding==&lt;br /&gt;
A python script within the {{AOo}}&amp;#039;s scripting framework is a function (introduced by the def keyword) within a .py file. For execution via the &amp;#039;&amp;#039;Tools/Macros/Run macro dialog&amp;#039;&amp;#039;, the script must have an empty argument list. For typical event listeners, the function must have exactly one argument (the event). In general, the number of arguments depend on the context where the function shall be used. Currently, the .py file must use unix line feeds, this will be changed in future. &lt;br /&gt;
&lt;br /&gt;
A single .py file may contain an arbitrary number of function definitions. By default, all function definitions are exported ( = shown in the macro selection dialog). As this may become tedious, exports can be limited to a smaller set of functions by having a global variable named g_exportedScripts, which is a tuple of function definitions. &lt;br /&gt;
&lt;br /&gt;
At the current integration level, .py files can only import python modules which are within the python PYTHONPATH. By default this is just the python runtime with its standard libraries and the uno bridge files. This means that python macros cannot reference other python macro files. This limitation may be changed in future but exists currently. Python macros can, of course, import from any module you place in the PYTHONPATH; but you must do that yourself and the results will not be portable.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;(a reader wonders: couldn&amp;#039;t the pythonloader automatically append the {{AOo}} scripting dirs to PYTHONPATH?)&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Before executing the source code within the module, the global variable XSCRIPTCONTEXT is inserted as global variable within the module (this variable also exists e.g. for javascript and beanshell, it is offered here for consistency reasons). It has three members (Document,Desktop and ComponentContext). &lt;br /&gt;
&lt;br /&gt;
The comment of a function (introduced and ended by three &amp;quot;) is shown as description in the macros&amp;#039; selection dialog. &lt;br /&gt;
&lt;br /&gt;
The compiled python script files are not added to sys.modules. There may exist multiple instances of the same module at the same time.&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
# HelloWorld python script for the scripting framework&lt;br /&gt;
&lt;br /&gt;
def HelloWorldPython( ):&lt;br /&gt;
    &amp;quot;&amp;quot;&amp;quot;Prints the string &amp;#039;Hello World(in Python)&amp;#039; into the current document&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
    #get the doc from the scripting context which is made available to all scripts&lt;br /&gt;
    model = XSCRIPTCONTEXT.getDocument()&lt;br /&gt;
    text = model.Text&lt;br /&gt;
    cursor = text.createTextCursor()&lt;br /&gt;
    text.insertString( cursor, &amp;quot;Hello World(in Python)&amp;quot;, 0 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==Error handling and debugging==&lt;br /&gt;
Errors during compilation or execution of the scripts are passed as exceptions to the scripting framework where possible. The scripting framework in general opens a popup box and displays the message of the thrown exception. &lt;br /&gt;
&lt;br /&gt;
However, sometimes this is not possible and an error gets silently ignored. The user realizes these errors, when&lt;br /&gt;
* his python script file does not appear where it is expected to be &lt;br /&gt;
* the name of the script file appears, but it does not contain any scripts &lt;br /&gt;
* only part of the script gets executed.&lt;br /&gt;
&lt;br /&gt;
You can get to know these problems by changing some flags in the &amp;#039;&amp;#039;&amp;#039;OpenOffice 4/program/pythonscript.py&amp;#039;&amp;#039;&amp;#039; file :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# Configuration ----------------------------------------------------&lt;br /&gt;
LogLevel.use = LogLevel.NONE                # alternavly use LogLevel.ERROR or LogLevel.DEBUG&lt;br /&gt;
LOG_STDOUT = False                          # True, writes to stdout&lt;br /&gt;
                                            # False, writes to user/Scripts/python/log.txt&lt;br /&gt;
ENABLE_EDIT_DIALOG=False                    # offers a minimal editor for editing.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Attaching a python debugger is currently not supported.&lt;br /&gt;
&lt;br /&gt;
==Credits==&lt;br /&gt;
The python binding of the scripting framework is developed and maintained by Joerg Budischewski in his spare time. Many, many thanks to Tomas O&amp;#039;Connor from Sun for his great support and his code additions to the framework which made this binding possible. Please put low level questions about the binding to [mailto:dev@openoffice.apache.org dev@openoffice.apache.org].&lt;br /&gt;
&lt;br /&gt;
[[Category:Python]]&lt;br /&gt;
[[Category:Uno]]&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Python&amp;diff=267384</id>
		<title>Python</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Python&amp;diff=267384"/>
		<updated>2026-05-24T06:07:34Z</updated>

		<summary type="html">&lt;p&gt;Damjan: /* Where is the IDE ? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Extensions}}&lt;br /&gt;
[[image:Py-uno_128.png|PyUNO Logo]] [[image:Pyuno_logo_a.jpg]] &lt;br /&gt;
&lt;br /&gt;
=== Python and OpenOffice ===&lt;br /&gt;
Apache OpenOffice 4 ships with the Python scripting language, version 2.7. OpenOffice.org 3.1 and above shipped with Python version 2.6.1 and older OpenOffice.org releases shipped with Python version 2.3.4. This Python distribution via OpenOffice comes with the [[Uno]] module, which connects the [[API|UNO API]] to the Python scripting language.  To run this version of Python on Linux, you can go directly to the OpenOffice PATH.  And as one would expect with any distribution of Python, AOO-Python can be run from the command line as well.&lt;br /&gt;
&lt;br /&gt;
If you already have a separate Python installation, you can import the uno module (the Python-UNO bridge) to it using [https://forum.openoffice.org/en/forum/viewtopic.php?f=45&amp;amp;t=36370&amp;amp;p=166783 these instructions].&lt;br /&gt;
&lt;br /&gt;
If you already have a different version of Python installed on Windows, you can also access the [[API|UNO API]] using the [https://forum.openoffice.org/en/forum/viewtopic.php?f=45&amp;amp;t=36608&amp;amp;p=167909 COM bridge] instead of the Python bridge. Requires the [https://sourceforge.net/projects/pywin32/ add-on pywin32] module so Python can talk to COM. Note that while the UNO API is uniform, the implementation by the two bridges is slightly different, so the syntax required by each is also sometimes different.&lt;br /&gt;
&lt;br /&gt;
==== Where is the IDE ? ====&lt;br /&gt;
OpenOffice only got a minimal text editor for Python recently, so advanced development is best done in another editor.  Any volunteer for a binding is welcomed. Here is a nice [http://pythonconquerstheuniverse.wordpress.com/category/the-python-debugger/ blog post] about using [https://www.vim.org VIM] a common Unix/Linux text editor configured in a way that acts like an IDE. Windows users can use [https://www.vim.org/download.php#pc Gvim] and [https://macvim.org/ MacVim] for OSX users.&lt;br /&gt;
&lt;br /&gt;
==== Tips &amp;amp; Tricks ====&lt;br /&gt;
&lt;br /&gt;
Here is some useful information about using Python in AOO.&lt;br /&gt;
&lt;br /&gt;
===== Debug output =====&lt;br /&gt;
&lt;br /&gt;
If you launch a python script, any error will silently break the execution, making your extension hard to debug.  To change this behaviour, one can change the &amp;#039;&amp;#039;&amp;#039;LogLevel&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
.&lt;br /&gt;
&lt;br /&gt;
Have a look in &lt;br /&gt;
&amp;#039;&amp;#039;/path/to/aoo/program/&amp;#039;&amp;#039;&amp;#039;pythonscript.py&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
and replace &lt;br /&gt;
&amp;#039;&amp;#039;LogLevel.use = LogLevel.&amp;#039;&amp;#039;&amp;#039;NONE&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
with&lt;br /&gt;
&amp;#039;&amp;#039;LogLevel.use = LogLevel.&amp;#039;&amp;#039;&amp;#039;DEBUG&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
.&lt;br /&gt;
&lt;br /&gt;
There are also currently-undocumented environment variables that tell the pyUno bridge to log every call.  Set the environment variable&lt;br /&gt;
&amp;#039;&amp;#039;export PYUNO_LOGLEVEL=ARGS&amp;#039;&amp;#039;&lt;br /&gt;
.  The output may be a little hard to read, but helpful nonetheless.&lt;br /&gt;
&lt;br /&gt;
Note that his applies only to Linux.  For Windows, you need some more switches, and the output gets written to files (there is no stdout on windows :-( ).&lt;br /&gt;
&lt;br /&gt;
There are still some error messages that won&amp;#039;t appear in these logs; this will improve in the near future (cws pyunofixes4).  Once the cws is integrated, I will document these switches on the official pyuno site. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Thanks to Joerg Budischewski&amp;#039;&amp;#039;&lt;br /&gt;
.&lt;br /&gt;
&lt;br /&gt;
=== Python specific information for Extension creation ===&lt;br /&gt;
To create extensions for python, it is important that you have enough familiarity with the UNO components, as well as with packaging your code for easy distribution through the &amp;#039;&amp;#039;OpenOffice package manager&amp;#039;&amp;#039;.  Please check the tutorials to learn how to component-ize your code, and how to deploy remote scripting through a service implementation.&lt;br /&gt;
&lt;br /&gt;
To learn to run Python on Windows, visit [[Using Python on Windows| this link]] for more detailed information.&lt;br /&gt;
&lt;br /&gt;
{| align=&amp;quot;center&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; style=&amp;quot;border: 0px solid rgb(134, 194, 230);&amp;quot;&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 35%; padding-right: 15px;&amp;quot; | &amp;lt;div style=&amp;quot;border-style: solid solid none; border-color: rgb(134, 194, 230) rgb(134, 194, 230) -moz-use-text-color; border-width: 1px 1px medium; padding: 5px; font-size: 120%; font-weight: bold; background-color: rgb(203, 222, 250);&amp;quot;&amp;gt;Getting Started&amp;lt;/div&amp;gt; &amp;lt;div style=&amp;quot;border: 1px solid rgb(155, 192, 245); padding: 5px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
*[[Python/Python_Language_Binding|Python Language Binding]]&lt;br /&gt;
*[[Python/Python_Loader|Python Loader]]&lt;br /&gt;
*[[Using Python on Windows]] - New to Python? Learn how to use python on Windows&lt;br /&gt;
*[[Using Python on Linux]] - A must read for an overview on Python and AOO relations&lt;br /&gt;
* [[pyUNO bridge]] - Official page of the PyUNO bridge at the [https://www.openoffice.org/udk/ UDK site]&lt;br /&gt;
* [[Python as a macro language]] in OpenOffice.org 2.x - How to use the Python scripting framework&lt;br /&gt;
* [[Python/Transfer_from_Basic_to_Python|Transfer from Basic to Python]]&lt;br /&gt;
* [http://lucasmanual.com/mywiki/OpenOffice PyUNO Manual] Lukasz created a pyUNO manual. &amp;#039;&amp;#039;&amp;#039;new&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* [[SQLAlquemyPyUNO|SQLAlchemy and PyUNO]] connecting OpenOffice to any database&lt;br /&gt;
* [https://www.linuxjournal.com/content/starting-stopping-and-connecting-openoffice-python Starting/Stopping and connecting using Python] From Linux Journal&lt;br /&gt;
* Introduction on testing pyUNO programs with [[doctests]]&lt;br /&gt;
* Create a [[PythonDialogBox|dialog box]] in PyUNO.&lt;br /&gt;
* [http://codesnippets.services.openoffice.org/index.xml/Office/Office.ConnectViaPipe.snip Connect to Openoffice] from PyUNO&lt;br /&gt;
* [[PyUNO samples]] currently shipping with OpenOffice and the explanation.&lt;br /&gt;
* Enhanced [https://web.archive.org/web/20110629100343/http://www.oooforum.org/forum/viewtopic.phtml?p=257496 Capitalized.py] script by &amp;#039;&amp;#039;The gray Cardinal&amp;#039;&amp;#039; at the OpenOffice forum.&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;width: 35%; padding-right: 15px;&amp;quot; | &amp;lt;div style=&amp;quot;border-style: solid solid none; border-color: rgb(134, 194, 230) rgb(134, 194, 230) -moz-use-text-color; border-width: 1px 1px medium; padding: 5px; font-size: 120%; font-weight: bold; background-color: rgb(203, 222, 250);&amp;quot;&amp;gt;PYUNO Modules&amp;lt;/div&amp;gt; &amp;lt;div style=&amp;quot;border: 1px solid rgb(155, 192, 245); padding: 5px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
*[[Danny&amp;#039;s Python Modules]] - Collection guide from DannyB&amp;#039;s modules.&lt;br /&gt;
*[[PrinttoWriter.py]] - This makes it easy and convenient to print a bunch of text into a Writer document.&lt;br /&gt;
*[[CalcFunctions]] - Learn how Python can be used to develop Calc functions in Python&lt;br /&gt;
*[[Python-Calc]] - Various scripts to deal with Calc&lt;br /&gt;
*[[PythonContainers]] - Python container components&lt;br /&gt;
*[[PyUNOServer]] - The PyUNOServer is a script that works as an XML server for OpenOffice.org Calc&lt;br /&gt;
*[[calcParser]] - calcParser is a small parser using the native SAX utilities within the OpenOffice.org python&lt;br /&gt;
*[[OoConfig]] - OoConfig is a Python extension that seeks to provide a configuration editing facility similar to Mozilla&amp;#039;s about:config&lt;br /&gt;
*[[Bibliographic/Hints and Tips/OOoRISExport.py|OOoRISExport.py]] - Exports the bibliographic database in RIS format. Also [http://bibliographic.openoffice.org/files/documents/124/3078/RISImport.py RISImport.py]&lt;br /&gt;
*[[Zotero_Plugin |Zotero Plugin]] - The Zotero plugin provides citation and bibliographic table insertion and editing functions for Writer documents.&lt;br /&gt;
*[http://oosheet.hacklab.com.br/ OOSheet] - High level python library to develop spreadsheet macros without the complexity of Uno. Focuses on spreadsheets, but may be useful for other documents.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Hacking Around ===&lt;br /&gt;
*[[UNO component packaging]] - How to create UNO components as well as the basics of script componentizing&lt;br /&gt;
*[https://web.archive.org/web/20110829040030/http://www.oooforum.org/forum/viewtopic.phtml?p=38234 Python component to parse XML] - Python is great to parse XML, PyUNO is also excellent when working with XML&lt;br /&gt;
*[[Example of Service in Python]] - Learn how to run Python as a service, this is useful for remote scripting.&lt;br /&gt;
*[[CellCustomAtributes]] - Example of storing and retrieving a custom attribute on a spreadsheet cell.&lt;br /&gt;
*A simple [[Deamon in Python|Daemon in Python]] - Learn how to run Python as a daemon&lt;br /&gt;
*[[Loook.py]] - a simple Python tool that searches for text strings in Apache OpenOffice.&lt;br /&gt;
*[[odt2txt.py]] - convert ODF to plain text using python (and convert the text to HTML).&lt;br /&gt;
&lt;br /&gt;
=== Python rules OpenOffice (by B. Bois) ===&lt;br /&gt;
[[image:python_power_for_OOo.png|Python rules OpenOffice :-)]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Extensions]]&lt;br /&gt;
[[Category:Python]]&lt;br /&gt;
[[Category:Uno]]&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Win64_port&amp;diff=260267</id>
		<title>Win64 port</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Win64_port&amp;diff=260267"/>
		<updated>2025-01-21T18:05:14Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Add bug link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This documents the progress being made on [https://bz.apache.org/ooo/show_bug.cgi?id=46594 bug 46594], porting AOO to run on 64 bit Windows.&lt;br /&gt;
&lt;br /&gt;
Strictly speaking, it should be called the x86-64 or AMD64 port, since there are other 64 bit architectures that Microsoft Windows supports that are not being addressed here (eg. Aarch64), but most of the work done is to data types and API calls, so it will also benefit future ports to those other 64 bit architectures.&lt;br /&gt;
&lt;br /&gt;
This has traditionally been a difficult platform to port to due to Windows uniquely being a LLP64 platform, whereas *nix is LP64; ie. sizeof(long) == 32 on Win64, but 64 on *nix. Every &amp;quot;long&amp;quot; everywhere in the codebase may have to potentially be replaced, and every conversion between long and pointer will definitely need replacement. A UNO bridge for LLP64 will also be necessary.&lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s not all doom and gloom though. The *nix 64 bit port already must have eliminated conversions between int and pointer, making our life easier. Java, Python, StarBasic and other languages with types of known size should be ok. And even for C/C++ code, our many dependencies generally support Win64 already.&lt;br /&gt;
&lt;br /&gt;
So starting with Windows 7 64 bit, Cygwin64, 64 bit Java 9, Ant 1.10.2, let&amp;#039;s push on and see how far we get.&lt;br /&gt;
&lt;br /&gt;
=== Status ===&lt;br /&gt;
&lt;br /&gt;
* In 2018, at least 83 out of 189 modules (43.9%) built successfully.&lt;br /&gt;
* 2 January 2025, 112 out of 185 modules (60%) were building successfully.&lt;br /&gt;
* 3 January 2025, 138 out of 185 modules (74.6%) were building successfully.&lt;br /&gt;
* 4 January 2025, 158 out of 185 modules (85.4%) were building successfully.&lt;br /&gt;
* 19 January 2025, the first ever minimal build was completed successfully, but OpenOffice quickly crashes when run, due to bugs in the UNO bridge.&lt;br /&gt;
&lt;br /&gt;
Currently the x86-64 UNO bridge in main/bridges needs to be developed further and debugged. The bridge needs to work with the Win64 C++ ABI in assembly language, and throw and catch arbitrary C++ exceptions from assembly language, a major challenge.&lt;br /&gt;
&lt;br /&gt;
=== Testing ===&lt;br /&gt;
Use the latest Git trunk and 64 bit Cygwin.&lt;br /&gt;
&lt;br /&gt;
Make sure you pass --enable-win64 to ./configure like below (without it, 32 bit binaries get built), and then &amp;quot;source winAMD64Env.set.sh&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
 autoconf&lt;br /&gt;
 ./configure \&lt;br /&gt;
     --enable-win64 \&lt;br /&gt;
     --with-dmake-url=https://sourceforge.net/projects/oooextras.mirror/files/dmake-4.12.tar.bz2 \&lt;br /&gt;
     --with-epm-url=https://sourceforge.net/projects/oooextras.mirror/files/epm-3.7.tar.gz \&lt;br /&gt;
     --disable-directx --with-ant-home=/cygdrive/c/apache-ant-1.10.2 \&lt;br /&gt;
     --without-junit \&lt;br /&gt;
     --enable-verbose&lt;br /&gt;
 source winAMD64Env.set.sh&lt;br /&gt;
 ./bootstrap&lt;br /&gt;
 cd instsetoo_native&lt;br /&gt;
 build --all&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Outstanding issues ===&lt;br /&gt;
&lt;br /&gt;
==== Compatibility with old Windows versions ====&lt;br /&gt;
uwinapi in main/sal proxies/emulates over 50 Windows API functions that are not available on older Windows versions, but uses 32 bit assembly languages. Only a few were ported to AMD64 (via porting them to C instead of assembly). Most should be unnecessary though, and are there mostly for Win9x.&lt;br /&gt;
&lt;br /&gt;
==== Python ====&lt;br /&gt;
Python was a major mission to patch and might not work.&lt;br /&gt;
&lt;br /&gt;
==== Star Basic native DLL calls ====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;DLL manager&amp;quot; in main/basic/source/runtime/dllmgr.cxx, which allows StarBasic to call native functions in arbitrary external DLLs, only ever supported Win32.&lt;br /&gt;
&lt;br /&gt;
At present, it&amp;#039;s been disabled on Win64. Whether it should be implemented, and whether it should support other operating systems and architectures, remains an open question.&lt;br /&gt;
&lt;br /&gt;
==== Database access and SDBC API ====&lt;br /&gt;
&lt;br /&gt;
What size are traditional integer-valued SQL properties, such as Statement.MaxRows, on 64 bit database drivers?&lt;br /&gt;
* Java&amp;#039;s JDBC API added a 64 bit Statement.getLargeMaxRows() (https://docs.oracle.com/javase/8/docs/api/java/sql/Statement.html#getLargeMaxRows--) in addition to the older 32 bit Statement.getMaxRows().&lt;br /&gt;
* ODBC started using SQLLEN/SQLULEN in such cases, which uses pointer-sized integers, ie. 32 bit on 32 bit architectures, and 64 bit on 64 bit architectures (https://www.unixodbc.org/doc/ODBC64.html).&lt;br /&gt;
* ADO is like ODBC.&lt;br /&gt;
&lt;br /&gt;
SDBC provides integral properties, such as Statement.MaxRows, almost exclusively in 32 bits (http://www.openoffice.org/api/docs/common/ref/com/sun/star/sdbc/Statement.html#MaxRows). What should we do about that, when calling lower-level APIs such as the above, that take/return 64 bit parameters?&lt;br /&gt;
&lt;br /&gt;
At present, we extend to 64 bit integers when calling, and truncate to 32 bit integers when returning.&lt;br /&gt;
&lt;br /&gt;
However in the long run, it would be more desirable to extends the SDBC API to allow callers to work with 64 bit integers directly. Since UNO interfaces are immutable, we&amp;#039;d have to provide new interfaces with different names (eg. Statement2), or same name but in a different package.&lt;br /&gt;
&lt;br /&gt;
==== Java &amp;gt; 8 breaks the build in scripting ====&lt;br /&gt;
&lt;br /&gt;
With Java 9 and later, the build breaks in the scripting module, because main/scripting/java/build.xml passes the -Xbootclasspath compiler argument to javac, but this was removed after Java 8.&lt;br /&gt;
&lt;br /&gt;
Maybe -Xbootclasspath is unnecessary. It was done to avoid some Rhino bug, and might not be required any more? Needs testing.&lt;br /&gt;
&lt;br /&gt;
=== Issues (old) ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date&lt;br /&gt;
! Issue&lt;br /&gt;
! Resolution&lt;br /&gt;
! Fixed in SVN revision&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/03&lt;br /&gt;
| Java 9 is not detected by oowintool.&lt;br /&gt;
| Patched oowintool to detect it.&lt;br /&gt;
| 1825763&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/04&lt;br /&gt;
| dmake&amp;#039;s old config.guess can&amp;#039;t detect Cygwin64.&lt;br /&gt;
| Patched main/bootstrap.1 to overwrite its config.guess with our own newer one.&lt;br /&gt;
| 1825798&lt;br /&gt;
1825802&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/04&lt;br /&gt;
| dmake uses Cygwin API functions that were deprecated on Cygwin32 and have been removed in Cygwin64.&lt;br /&gt;
| Added a patch in main/solenv/src to change dmake to use the replacement Cygwin APIs, and patched main/bootstrap.1 to apply the patch during ./bootstrap.&lt;br /&gt;
| 1825798&lt;br /&gt;
1825802&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/04&lt;br /&gt;
| Binaries built are 32 bit.&lt;br /&gt;
| Changes to configure.ac, set_soenv.in, various dmake and gbuild files are necessary to set up the 64 bit cl.exe. WORK ONGOING.&lt;br /&gt;
| 1825935&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| ext_libraries/apr builds 32 bit and fails to link.&lt;br /&gt;
| Build was hardcoded to 32 bit, and needed 64 bit detection improved and resulting build files copied from the right location.&lt;br /&gt;
| 1825848&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| main/lucene won&amp;#039;t build with Java 1.9, needs -source and -target to be at least 1.6.&lt;br /&gt;
| Patched it to use those. As discussed on the mailing list before, we should use minimum Java version of 1.7, but OS/2 only has 1.6, so this change which used 1.6 shouldn&amp;#039;t break any platform.&lt;br /&gt;
| 1825849&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| main/curl only builds 32 bit and fails to link.&lt;br /&gt;
| Patched it to build 64 bit on Win64.&lt;br /&gt;
| 1825850&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| main/sal doesn&amp;#039;t build. Missing endianness, wrong types, 32-bit assembly language in macros, lots wrong...&lt;br /&gt;
| Builds now and unit tests pass, but unsure whether there are any remaining type conversion bugs.&lt;br /&gt;
| 1825923&lt;br /&gt;
1826021&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/06&lt;br /&gt;
| Win64 has the wrong CPPU_ENV of &amp;quot;msci&amp;quot;.&lt;br /&gt;
| Changed it to &amp;quot;mscx&amp;quot;.&lt;br /&gt;
| 1825956 but reverted and placed into win64.patch&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| main/icu doesn&amp;#039;t build, hardcoded to Win32.&lt;br /&gt;
| Patched to use 64 bit compiler as necessary.&lt;br /&gt;
| 1826062&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| main/salhelper won&amp;#039;t link, needs linker symbol map.&lt;br /&gt;
| Added new symbol map for Win64.&lt;br /&gt;
| 1826066&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| main/icc won&amp;#039;t compile, needs strcasecmp.&lt;br /&gt;
| If Win32 is not detected, stricmp is defined as strcasebmp. Patched to detect AMD64 as well.&lt;br /&gt;
| 1826069&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| ridljar won&amp;#039;t build, javadep from soltools doesn&amp;#039;t support Java 9&amp;#039;s new class file changes.&lt;br /&gt;
| Patched javadep.&lt;br /&gt;
| 1826078&lt;br /&gt;
[[Category:Porting]]&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Win64_port&amp;diff=260266</id>
		<title>Win64 port</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Win64_port&amp;diff=260266"/>
		<updated>2025-01-19T07:08:12Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Update status&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This documents progress being made in porting AOO to run on 64 bit Windows.&lt;br /&gt;
&lt;br /&gt;
Strictly speaking, it should be called the x86-64 or AMD64 port, since there are other 64 bit architectures that Microsoft Windows supports that are not being addressed here (eg. Aarch64), but most of the work done is to data types and API calls, so it will also benefit future ports to those other 64 bit architectures.&lt;br /&gt;
&lt;br /&gt;
This has traditionally been a difficult platform to port to due to Windows uniquely being a LLP64 platform, whereas *nix is LP64; ie. sizeof(long) == 32 on Win64, but 64 on *nix. Every &amp;quot;long&amp;quot; everywhere in the codebase may have to potentially be replaced, and every conversion between long and pointer will definitely need replacement. A UNO bridge for LLP64 will also be necessary.&lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s not all doom and gloom though. The *nix 64 bit port already must have eliminated conversions between int and pointer, making our life easier. Java, Python, StarBasic and other languages with types of known size should be ok. And even for C/C++ code, our many dependencies generally support Win64 already.&lt;br /&gt;
&lt;br /&gt;
So starting with Windows 7 64 bit, Cygwin64, 64 bit Java 9, Ant 1.10.2, let&amp;#039;s push on and see how far we get.&lt;br /&gt;
&lt;br /&gt;
=== Status ===&lt;br /&gt;
&lt;br /&gt;
* In 2018, at least 83 out of 189 modules (43.9%) built successfully.&lt;br /&gt;
* 2 January 2025, 112 out of 185 modules (60%) were building successfully.&lt;br /&gt;
* 3 January 2025, 138 out of 185 modules (74.6%) were building successfully.&lt;br /&gt;
* 4 January 2025, 158 out of 185 modules (85.4%) were building successfully.&lt;br /&gt;
* 19 January 2025, the first ever minimal build was completed successfully, but OpenOffice quickly crashes when run, due to bugs in the UNO bridge.&lt;br /&gt;
&lt;br /&gt;
Currently the x86-64 UNO bridge in main/bridges needs to be developed further and debugged. The bridge needs to work with the Win64 C++ ABI in assembly language, and throw and catch arbitrary C++ exceptions from assembly language, a major challenge.&lt;br /&gt;
&lt;br /&gt;
=== Testing ===&lt;br /&gt;
Use the latest Git trunk and 64 bit Cygwin.&lt;br /&gt;
&lt;br /&gt;
Make sure you pass --enable-win64 to ./configure like below (without it, 32 bit binaries get built), and then &amp;quot;source winAMD64Env.set.sh&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
 autoconf&lt;br /&gt;
 ./configure \&lt;br /&gt;
     --enable-win64 \&lt;br /&gt;
     --with-dmake-url=https://sourceforge.net/projects/oooextras.mirror/files/dmake-4.12.tar.bz2 \&lt;br /&gt;
     --with-epm-url=https://sourceforge.net/projects/oooextras.mirror/files/epm-3.7.tar.gz \&lt;br /&gt;
     --disable-directx --with-ant-home=/cygdrive/c/apache-ant-1.10.2 \&lt;br /&gt;
     --without-junit \&lt;br /&gt;
     --enable-verbose&lt;br /&gt;
 source winAMD64Env.set.sh&lt;br /&gt;
 ./bootstrap&lt;br /&gt;
 cd instsetoo_native&lt;br /&gt;
 build --all&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Outstanding issues ===&lt;br /&gt;
&lt;br /&gt;
==== Compatibility with old Windows versions ====&lt;br /&gt;
uwinapi in main/sal proxies/emulates over 50 Windows API functions that are not available on older Windows versions, but uses 32 bit assembly languages. Only a few were ported to AMD64 (via porting them to C instead of assembly). Most should be unnecessary though, and are there mostly for Win9x.&lt;br /&gt;
&lt;br /&gt;
==== Python ====&lt;br /&gt;
Python was a major mission to patch and might not work.&lt;br /&gt;
&lt;br /&gt;
==== Star Basic native DLL calls ====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;DLL manager&amp;quot; in main/basic/source/runtime/dllmgr.cxx, which allows StarBasic to call native functions in arbitrary external DLLs, only ever supported Win32.&lt;br /&gt;
&lt;br /&gt;
At present, it&amp;#039;s been disabled on Win64. Whether it should be implemented, and whether it should support other operating systems and architectures, remains an open question.&lt;br /&gt;
&lt;br /&gt;
==== Database access and SDBC API ====&lt;br /&gt;
&lt;br /&gt;
What size are traditional integer-valued SQL properties, such as Statement.MaxRows, on 64 bit database drivers?&lt;br /&gt;
* Java&amp;#039;s JDBC API added a 64 bit Statement.getLargeMaxRows() (https://docs.oracle.com/javase/8/docs/api/java/sql/Statement.html#getLargeMaxRows--) in addition to the older 32 bit Statement.getMaxRows().&lt;br /&gt;
* ODBC started using SQLLEN/SQLULEN in such cases, which uses pointer-sized integers, ie. 32 bit on 32 bit architectures, and 64 bit on 64 bit architectures (https://www.unixodbc.org/doc/ODBC64.html).&lt;br /&gt;
* ADO is like ODBC.&lt;br /&gt;
&lt;br /&gt;
SDBC provides integral properties, such as Statement.MaxRows, almost exclusively in 32 bits (http://www.openoffice.org/api/docs/common/ref/com/sun/star/sdbc/Statement.html#MaxRows). What should we do about that, when calling lower-level APIs such as the above, that take/return 64 bit parameters?&lt;br /&gt;
&lt;br /&gt;
At present, we extend to 64 bit integers when calling, and truncate to 32 bit integers when returning.&lt;br /&gt;
&lt;br /&gt;
However in the long run, it would be more desirable to extends the SDBC API to allow callers to work with 64 bit integers directly. Since UNO interfaces are immutable, we&amp;#039;d have to provide new interfaces with different names (eg. Statement2), or same name but in a different package.&lt;br /&gt;
&lt;br /&gt;
==== Java &amp;gt; 8 breaks the build in scripting ====&lt;br /&gt;
&lt;br /&gt;
With Java 9 and later, the build breaks in the scripting module, because main/scripting/java/build.xml passes the -Xbootclasspath compiler argument to javac, but this was removed after Java 8.&lt;br /&gt;
&lt;br /&gt;
Maybe -Xbootclasspath is unnecessary. It was done to avoid some Rhino bug, and might not be required any more? Needs testing.&lt;br /&gt;
&lt;br /&gt;
=== Issues (old) ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date&lt;br /&gt;
! Issue&lt;br /&gt;
! Resolution&lt;br /&gt;
! Fixed in SVN revision&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/03&lt;br /&gt;
| Java 9 is not detected by oowintool.&lt;br /&gt;
| Patched oowintool to detect it.&lt;br /&gt;
| 1825763&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/04&lt;br /&gt;
| dmake&amp;#039;s old config.guess can&amp;#039;t detect Cygwin64.&lt;br /&gt;
| Patched main/bootstrap.1 to overwrite its config.guess with our own newer one.&lt;br /&gt;
| 1825798&lt;br /&gt;
1825802&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/04&lt;br /&gt;
| dmake uses Cygwin API functions that were deprecated on Cygwin32 and have been removed in Cygwin64.&lt;br /&gt;
| Added a patch in main/solenv/src to change dmake to use the replacement Cygwin APIs, and patched main/bootstrap.1 to apply the patch during ./bootstrap.&lt;br /&gt;
| 1825798&lt;br /&gt;
1825802&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/04&lt;br /&gt;
| Binaries built are 32 bit.&lt;br /&gt;
| Changes to configure.ac, set_soenv.in, various dmake and gbuild files are necessary to set up the 64 bit cl.exe. WORK ONGOING.&lt;br /&gt;
| 1825935&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| ext_libraries/apr builds 32 bit and fails to link.&lt;br /&gt;
| Build was hardcoded to 32 bit, and needed 64 bit detection improved and resulting build files copied from the right location.&lt;br /&gt;
| 1825848&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| main/lucene won&amp;#039;t build with Java 1.9, needs -source and -target to be at least 1.6.&lt;br /&gt;
| Patched it to use those. As discussed on the mailing list before, we should use minimum Java version of 1.7, but OS/2 only has 1.6, so this change which used 1.6 shouldn&amp;#039;t break any platform.&lt;br /&gt;
| 1825849&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| main/curl only builds 32 bit and fails to link.&lt;br /&gt;
| Patched it to build 64 bit on Win64.&lt;br /&gt;
| 1825850&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| main/sal doesn&amp;#039;t build. Missing endianness, wrong types, 32-bit assembly language in macros, lots wrong...&lt;br /&gt;
| Builds now and unit tests pass, but unsure whether there are any remaining type conversion bugs.&lt;br /&gt;
| 1825923&lt;br /&gt;
1826021&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/06&lt;br /&gt;
| Win64 has the wrong CPPU_ENV of &amp;quot;msci&amp;quot;.&lt;br /&gt;
| Changed it to &amp;quot;mscx&amp;quot;.&lt;br /&gt;
| 1825956 but reverted and placed into win64.patch&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| main/icu doesn&amp;#039;t build, hardcoded to Win32.&lt;br /&gt;
| Patched to use 64 bit compiler as necessary.&lt;br /&gt;
| 1826062&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| main/salhelper won&amp;#039;t link, needs linker symbol map.&lt;br /&gt;
| Added new symbol map for Win64.&lt;br /&gt;
| 1826066&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| main/icc won&amp;#039;t compile, needs strcasecmp.&lt;br /&gt;
| If Win32 is not detected, stricmp is defined as strcasebmp. Patched to detect AMD64 as well.&lt;br /&gt;
| 1826069&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| ridljar won&amp;#039;t build, javadep from soltools doesn&amp;#039;t support Java 9&amp;#039;s new class file changes.&lt;br /&gt;
| Patched javadep.&lt;br /&gt;
| 1826078&lt;br /&gt;
[[Category:Porting]]&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Win64_port&amp;diff=260265</id>
		<title>Win64 port</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Win64_port&amp;diff=260265"/>
		<updated>2025-01-18T16:23:10Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Also document Win64 support for dependencies.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This documents progress being made in porting AOO to run on 64 bit Windows.&lt;br /&gt;
&lt;br /&gt;
Strictly speaking, it should be called the x86-64 or AMD64 port, since there are other 64 bit architectures that Microsoft Windows supports that are not being addressed here (eg. Aarch64), but most of the work done is to data types and API calls, so it will also benefit future ports to those other 64 bit architectures.&lt;br /&gt;
&lt;br /&gt;
This has traditionally been a difficult platform to port to due to Windows uniquely being a LLP64 platform, whereas *nix is LP64; ie. sizeof(long) == 32 on Win64, but 64 on *nix. Every &amp;quot;long&amp;quot; everywhere in the codebase may have to potentially be replaced, and every conversion between long and pointer will definitely need replacement. A UNO bridge for LLP64 will also be necessary.&lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s not all doom and gloom though. The *nix 64 bit port already must have eliminated conversions between int and pointer, making our life easier. Java, Python, StarBasic and other languages with types of known size should be ok. And even for C/C++ code, our many dependencies generally support Win64 already.&lt;br /&gt;
&lt;br /&gt;
So starting with Windows 7 64 bit, Cygwin64, 64 bit Java 9, Ant 1.10.2, let&amp;#039;s push on and see how far we get.&lt;br /&gt;
&lt;br /&gt;
=== Status ===&lt;br /&gt;
&lt;br /&gt;
* In 2018, at least 83 out of 189 modules (43.9%) built successfully.&lt;br /&gt;
* 2 January 2025, 112 out of 185 modules (60%) were building successfully.&lt;br /&gt;
* 3 January 2025, 138 out of 185 modules (74.6%) were building successfully.&lt;br /&gt;
* 4 January 2025, 158 out of 185 modules (85.4%) were building successfully.&lt;br /&gt;
&lt;br /&gt;
Currently the x86-64 bridge in main/bridges needs to be developed further and debugged. The bridge needs to work with the Win64 C++ ABI in assembly language, and throw and catch arbitrary C++ exceptions from assembly language, a major challenge.&lt;br /&gt;
&lt;br /&gt;
=== Testing ===&lt;br /&gt;
Use the latest Git trunk and 64 bit Cygwin.&lt;br /&gt;
&lt;br /&gt;
Make sure you pass --enable-win64 to ./configure like below (without it, 32 bit binaries get built), and then &amp;quot;source winAMD64Env.set.sh&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
 autoconf&lt;br /&gt;
 ./configure \&lt;br /&gt;
     --enable-win64 \&lt;br /&gt;
     --with-dmake-url=https://sourceforge.net/projects/oooextras.mirror/files/dmake-4.12.tar.bz2 \&lt;br /&gt;
     --with-epm-url=https://sourceforge.net/projects/oooextras.mirror/files/epm-3.7.tar.gz \&lt;br /&gt;
     --disable-directx --with-ant-home=/cygdrive/c/apache-ant-1.10.2 \&lt;br /&gt;
     --without-junit \&lt;br /&gt;
     --enable-verbose&lt;br /&gt;
 source winAMD64Env.set.sh&lt;br /&gt;
 ./bootstrap&lt;br /&gt;
 cd instsetoo_native&lt;br /&gt;
 build --all&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Outstanding issues ===&lt;br /&gt;
&lt;br /&gt;
==== Compatibility with old Windows versions ====&lt;br /&gt;
uwinapi in main/sal proxies/emulates over 50 Windows API functions that are not available on older Windows versions, but uses 32 bit assembly languages. Only a few were ported to AMD64 (via porting them to C instead of assembly). Most should be unnecessary though, and are there mostly for Win9x.&lt;br /&gt;
&lt;br /&gt;
==== Python ====&lt;br /&gt;
Python was a major mission to patch and might not work.&lt;br /&gt;
&lt;br /&gt;
==== Star Basic native DLL calls ====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;DLL manager&amp;quot; in main/basic/source/runtime/dllmgr.cxx, which allows StarBasic to call native functions in arbitrary external DLLs, only ever supported Win32.&lt;br /&gt;
&lt;br /&gt;
At present, it&amp;#039;s been disabled on Win64. Whether it should be implemented, and whether it should support other operating systems and architectures, remains an open question.&lt;br /&gt;
&lt;br /&gt;
==== Database access and SDBC API ====&lt;br /&gt;
&lt;br /&gt;
What size are traditional integer-valued SQL properties, such as Statement.MaxRows, on 64 bit database drivers?&lt;br /&gt;
* Java&amp;#039;s JDBC API added a 64 bit Statement.getLargeMaxRows() (https://docs.oracle.com/javase/8/docs/api/java/sql/Statement.html#getLargeMaxRows--) in addition to the older 32 bit Statement.getMaxRows().&lt;br /&gt;
* ODBC started using SQLLEN/SQLULEN in such cases, which uses pointer-sized integers, ie. 32 bit on 32 bit architectures, and 64 bit on 64 bit architectures (https://www.unixodbc.org/doc/ODBC64.html).&lt;br /&gt;
* ADO is like ODBC.&lt;br /&gt;
&lt;br /&gt;
SDBC provides integral properties, such as Statement.MaxRows, almost exclusively in 32 bits (http://www.openoffice.org/api/docs/common/ref/com/sun/star/sdbc/Statement.html#MaxRows). What should we do about that, when calling lower-level APIs such as the above, that take/return 64 bit parameters?&lt;br /&gt;
&lt;br /&gt;
At present, we extend to 64 bit integers when calling, and truncate to 32 bit integers when returning.&lt;br /&gt;
&lt;br /&gt;
However in the long run, it would be more desirable to extends the SDBC API to allow callers to work with 64 bit integers directly. Since UNO interfaces are immutable, we&amp;#039;d have to provide new interfaces with different names (eg. Statement2), or same name but in a different package.&lt;br /&gt;
&lt;br /&gt;
==== Java &amp;gt; 8 breaks the build in scripting ====&lt;br /&gt;
&lt;br /&gt;
With Java 9 and later, the build breaks in the scripting module, because main/scripting/java/build.xml passes the -Xbootclasspath compiler argument to javac, but this was removed after Java 8.&lt;br /&gt;
&lt;br /&gt;
Maybe -Xbootclasspath is unnecessary. It was done to avoid some Rhino bug, and might not be required any more? Needs testing.&lt;br /&gt;
&lt;br /&gt;
=== Issues (old) ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date&lt;br /&gt;
! Issue&lt;br /&gt;
! Resolution&lt;br /&gt;
! Fixed in SVN revision&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/03&lt;br /&gt;
| Java 9 is not detected by oowintool.&lt;br /&gt;
| Patched oowintool to detect it.&lt;br /&gt;
| 1825763&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/04&lt;br /&gt;
| dmake&amp;#039;s old config.guess can&amp;#039;t detect Cygwin64.&lt;br /&gt;
| Patched main/bootstrap.1 to overwrite its config.guess with our own newer one.&lt;br /&gt;
| 1825798&lt;br /&gt;
1825802&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/04&lt;br /&gt;
| dmake uses Cygwin API functions that were deprecated on Cygwin32 and have been removed in Cygwin64.&lt;br /&gt;
| Added a patch in main/solenv/src to change dmake to use the replacement Cygwin APIs, and patched main/bootstrap.1 to apply the patch during ./bootstrap.&lt;br /&gt;
| 1825798&lt;br /&gt;
1825802&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/04&lt;br /&gt;
| Binaries built are 32 bit.&lt;br /&gt;
| Changes to configure.ac, set_soenv.in, various dmake and gbuild files are necessary to set up the 64 bit cl.exe. WORK ONGOING.&lt;br /&gt;
| 1825935&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| ext_libraries/apr builds 32 bit and fails to link.&lt;br /&gt;
| Build was hardcoded to 32 bit, and needed 64 bit detection improved and resulting build files copied from the right location.&lt;br /&gt;
| 1825848&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| main/lucene won&amp;#039;t build with Java 1.9, needs -source and -target to be at least 1.6.&lt;br /&gt;
| Patched it to use those. As discussed on the mailing list before, we should use minimum Java version of 1.7, but OS/2 only has 1.6, so this change which used 1.6 shouldn&amp;#039;t break any platform.&lt;br /&gt;
| 1825849&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| main/curl only builds 32 bit and fails to link.&lt;br /&gt;
| Patched it to build 64 bit on Win64.&lt;br /&gt;
| 1825850&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| main/sal doesn&amp;#039;t build. Missing endianness, wrong types, 32-bit assembly language in macros, lots wrong...&lt;br /&gt;
| Builds now and unit tests pass, but unsure whether there are any remaining type conversion bugs.&lt;br /&gt;
| 1825923&lt;br /&gt;
1826021&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/06&lt;br /&gt;
| Win64 has the wrong CPPU_ENV of &amp;quot;msci&amp;quot;.&lt;br /&gt;
| Changed it to &amp;quot;mscx&amp;quot;.&lt;br /&gt;
| 1825956 but reverted and placed into win64.patch&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| main/icu doesn&amp;#039;t build, hardcoded to Win32.&lt;br /&gt;
| Patched to use 64 bit compiler as necessary.&lt;br /&gt;
| 1826062&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| main/salhelper won&amp;#039;t link, needs linker symbol map.&lt;br /&gt;
| Added new symbol map for Win64.&lt;br /&gt;
| 1826066&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| main/icc won&amp;#039;t compile, needs strcasecmp.&lt;br /&gt;
| If Win32 is not detected, stricmp is defined as strcasebmp. Patched to detect AMD64 as well.&lt;br /&gt;
| 1826069&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| ridljar won&amp;#039;t build, javadep from soltools doesn&amp;#039;t support Java 9&amp;#039;s new class file changes.&lt;br /&gt;
| Patched javadep.&lt;br /&gt;
| 1826078&lt;br /&gt;
[[Category:Porting]]&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Win64_port&amp;diff=260264</id>
		<title>Win64 port</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Win64_port&amp;diff=260264"/>
		<updated>2025-01-05T00:35:18Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Document the Java version issue in scripting&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This documents progress being made in porting AOO to run on 64 bit Windows.&lt;br /&gt;
&lt;br /&gt;
Strictly speaking, it should be called the x86-64 or AMD64 port, since there are other 64 bit architectures that Microsoft Windows supports that are not being addressed here (eg. Aarch64), but most of the work done is to data types and API calls, so it will also benefit future ports to those other 64 bit architectures.&lt;br /&gt;
&lt;br /&gt;
This has traditionally been a difficult platform to port to due to Windows uniquely being a LLP64 platform, whereas *nix is LP64; ie. sizeof(long) == 32 on Win64, but 64 on *nix. Every &amp;quot;long&amp;quot; everywhere in the codebase may have to potentially be replaced, and every conversion between long and pointer will definitely need replacement. A UNO bridge for LLP64 will also be necessary.&lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s not all doom and gloom though. The *nix 64 bit port already must have eliminated conversions between int and pointer, making our life easier. Java, Python, StarBasic and other languages with types of known size should be ok.&lt;br /&gt;
&lt;br /&gt;
So starting with Windows 7 64 bit, Cygwin64, 64 bit Java 9, Ant 1.10.2, let&amp;#039;s push on and see how far we get.&lt;br /&gt;
&lt;br /&gt;
=== Status ===&lt;br /&gt;
&lt;br /&gt;
* In 2018, at least 83 out of 189 modules (43.9%) built successfully.&lt;br /&gt;
* 2 January 2025, 112 out of 185 modules (60%) were building successfully.&lt;br /&gt;
* 3 January 2025, 138 out of 185 modules (74.6%) were building successfully.&lt;br /&gt;
* 4 January 2025, 158 out of 185 modules (85.4%) were building successfully.&lt;br /&gt;
&lt;br /&gt;
Currently the x86-64 bridge in main/bridges needs to be developed further and debugged. The bridge needs to work with the Win64 C++ ABI in assembly language, and throw and catch arbitrary C++ exceptions from assembly language, a major challenge.&lt;br /&gt;
&lt;br /&gt;
=== Testing ===&lt;br /&gt;
Use the latest Git trunk and 64 bit Cygwin.&lt;br /&gt;
&lt;br /&gt;
Make sure you pass --enable-win64 to ./configure like below (without it, 32 bit binaries get built), and then &amp;quot;source winAMD64Env.set.sh&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
 autoconf&lt;br /&gt;
 ./configure \&lt;br /&gt;
     --enable-win64 \&lt;br /&gt;
     --with-dmake-url=https://sourceforge.net/projects/oooextras.mirror/files/dmake-4.12.tar.bz2 \&lt;br /&gt;
     --with-epm-url=https://sourceforge.net/projects/oooextras.mirror/files/epm-3.7.tar.gz \&lt;br /&gt;
     --disable-directx --with-ant-home=/cygdrive/c/apache-ant-1.10.2 \&lt;br /&gt;
     --without-junit \&lt;br /&gt;
     --enable-verbose&lt;br /&gt;
 source winAMD64Env.set.sh&lt;br /&gt;
 ./bootstrap&lt;br /&gt;
 cd instsetoo_native&lt;br /&gt;
 build --all&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Outstanding issues ===&lt;br /&gt;
&lt;br /&gt;
==== Compatibility with old Windows versions ====&lt;br /&gt;
uwinapi in main/sal proxies/emulates over 50 Windows API functions that are not available on older Windows versions, but uses 32 bit assembly languages. Only a few were ported to AMD64 (via porting them to C instead of assembly). Most should be unnecessary though, and are there mostly for Win9x.&lt;br /&gt;
&lt;br /&gt;
==== Python ====&lt;br /&gt;
Python was a major mission to patch and might not work.&lt;br /&gt;
&lt;br /&gt;
==== Star Basic native DLL calls ====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;DLL manager&amp;quot; in main/basic/source/runtime/dllmgr.cxx, which allows StarBasic to call native functions in arbitrary external DLLs, only ever supported Win32.&lt;br /&gt;
&lt;br /&gt;
At present, it&amp;#039;s been disabled on Win64. Whether it should be implemented, and whether it should support other operating systems and architectures, remains an open question.&lt;br /&gt;
&lt;br /&gt;
==== Database access and SDBC API ====&lt;br /&gt;
&lt;br /&gt;
What size are traditional integer-valued SQL properties, such as Statement.MaxRows, on 64 bit database drivers?&lt;br /&gt;
* Java&amp;#039;s JDBC API added a 64 bit Statement.getLargeMaxRows() (https://docs.oracle.com/javase/8/docs/api/java/sql/Statement.html#getLargeMaxRows--) in addition to the older 32 bit Statement.getMaxRows().&lt;br /&gt;
* ODBC started using SQLLEN/SQLULEN in such cases, which uses pointer-sized integers, ie. 32 bit on 32 bit architectures, and 64 bit on 64 bit architectures (https://www.unixodbc.org/doc/ODBC64.html).&lt;br /&gt;
* ADO is like ODBC.&lt;br /&gt;
&lt;br /&gt;
SDBC provides integral properties, such as Statement.MaxRows, almost exclusively in 32 bits (http://www.openoffice.org/api/docs/common/ref/com/sun/star/sdbc/Statement.html#MaxRows). What should we do about that, when calling lower-level APIs such as the above, that take/return 64 bit parameters?&lt;br /&gt;
&lt;br /&gt;
At present, we extend to 64 bit integers when calling, and truncate to 32 bit integers when returning.&lt;br /&gt;
&lt;br /&gt;
However in the long run, it would be more desirable to extends the SDBC API to allow callers to work with 64 bit integers directly. Since UNO interfaces are immutable, we&amp;#039;d have to provide new interfaces with different names (eg. Statement2), or same name but in a different package.&lt;br /&gt;
&lt;br /&gt;
==== Java &amp;gt; 8 breaks the build in scripting ====&lt;br /&gt;
&lt;br /&gt;
With Java 9 and later, the build breaks in the scripting module, because main/scripting/java/build.xml passes the -Xbootclasspath compiler argument to javac, but this was removed after Java 8.&lt;br /&gt;
&lt;br /&gt;
Maybe -Xbootclasspath is unnecessary. It was done to avoid some Rhino bug, and might not be required any more? Needs testing.&lt;br /&gt;
&lt;br /&gt;
=== Issues (old) ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date&lt;br /&gt;
! Issue&lt;br /&gt;
! Resolution&lt;br /&gt;
! Fixed in SVN revision&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/03&lt;br /&gt;
| Java 9 is not detected by oowintool.&lt;br /&gt;
| Patched oowintool to detect it.&lt;br /&gt;
| 1825763&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/04&lt;br /&gt;
| dmake&amp;#039;s old config.guess can&amp;#039;t detect Cygwin64.&lt;br /&gt;
| Patched main/bootstrap.1 to overwrite its config.guess with our own newer one.&lt;br /&gt;
| 1825798&lt;br /&gt;
1825802&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/04&lt;br /&gt;
| dmake uses Cygwin API functions that were deprecated on Cygwin32 and have been removed in Cygwin64.&lt;br /&gt;
| Added a patch in main/solenv/src to change dmake to use the replacement Cygwin APIs, and patched main/bootstrap.1 to apply the patch during ./bootstrap.&lt;br /&gt;
| 1825798&lt;br /&gt;
1825802&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/04&lt;br /&gt;
| Binaries built are 32 bit.&lt;br /&gt;
| Changes to configure.ac, set_soenv.in, various dmake and gbuild files are necessary to set up the 64 bit cl.exe. WORK ONGOING.&lt;br /&gt;
| 1825935&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| ext_libraries/apr builds 32 bit and fails to link.&lt;br /&gt;
| Build was hardcoded to 32 bit, and needed 64 bit detection improved and resulting build files copied from the right location.&lt;br /&gt;
| 1825848&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| main/lucene won&amp;#039;t build with Java 1.9, needs -source and -target to be at least 1.6.&lt;br /&gt;
| Patched it to use those. As discussed on the mailing list before, we should use minimum Java version of 1.7, but OS/2 only has 1.6, so this change which used 1.6 shouldn&amp;#039;t break any platform.&lt;br /&gt;
| 1825849&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| main/curl only builds 32 bit and fails to link.&lt;br /&gt;
| Patched it to build 64 bit on Win64.&lt;br /&gt;
| 1825850&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| main/sal doesn&amp;#039;t build. Missing endianness, wrong types, 32-bit assembly language in macros, lots wrong...&lt;br /&gt;
| Builds now and unit tests pass, but unsure whether there are any remaining type conversion bugs.&lt;br /&gt;
| 1825923&lt;br /&gt;
1826021&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/06&lt;br /&gt;
| Win64 has the wrong CPPU_ENV of &amp;quot;msci&amp;quot;.&lt;br /&gt;
| Changed it to &amp;quot;mscx&amp;quot;.&lt;br /&gt;
| 1825956 but reverted and placed into win64.patch&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| main/icu doesn&amp;#039;t build, hardcoded to Win32.&lt;br /&gt;
| Patched to use 64 bit compiler as necessary.&lt;br /&gt;
| 1826062&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| main/salhelper won&amp;#039;t link, needs linker symbol map.&lt;br /&gt;
| Added new symbol map for Win64.&lt;br /&gt;
| 1826066&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| main/icc won&amp;#039;t compile, needs strcasecmp.&lt;br /&gt;
| If Win32 is not detected, stricmp is defined as strcasebmp. Patched to detect AMD64 as well.&lt;br /&gt;
| 1826069&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| ridljar won&amp;#039;t build, javadep from soltools doesn&amp;#039;t support Java 9&amp;#039;s new class file changes.&lt;br /&gt;
| Patched javadep.&lt;br /&gt;
| 1826078&lt;br /&gt;
[[Category:Porting]]&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Win64_port&amp;diff=260263</id>
		<title>Win64 port</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Win64_port&amp;diff=260263"/>
		<updated>2025-01-04T18:38:18Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Today&amp;#039;s update.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This documents progress being made in porting AOO to run on 64 bit Windows.&lt;br /&gt;
&lt;br /&gt;
Strictly speaking, it should be called the x86-64 or AMD64 port, since there are other 64 bit architectures that Microsoft Windows supports that are not being addressed here (eg. Aarch64), but most of the work done is to data types and API calls, so it will also benefit future ports to those other 64 bit architectures.&lt;br /&gt;
&lt;br /&gt;
This has traditionally been a difficult platform to port to due to Windows uniquely being a LLP64 platform, whereas *nix is LP64; ie. sizeof(long) == 32 on Win64, but 64 on *nix. Every &amp;quot;long&amp;quot; everywhere in the codebase may have to potentially be replaced, and every conversion between long and pointer will definitely need replacement. A UNO bridge for LLP64 will also be necessary.&lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s not all doom and gloom though. The *nix 64 bit port already must have eliminated conversions between int and pointer, making our life easier. Java, Python, StarBasic and other languages with types of known size should be ok.&lt;br /&gt;
&lt;br /&gt;
So starting with Windows 7 64 bit, Cygwin64, 64 bit Java 9, Ant 1.10.2, let&amp;#039;s push on and see how far we get.&lt;br /&gt;
&lt;br /&gt;
=== Status ===&lt;br /&gt;
&lt;br /&gt;
* In 2018, at least 83 out of 189 modules (43.9%) built successfully.&lt;br /&gt;
* 2 January 2025, 112 out of 185 modules (60%) were building successfully.&lt;br /&gt;
* 3 January 2025, 138 out of 185 modules (74.6%) were building successfully.&lt;br /&gt;
* 4 January 2025, 158 out of 185 modules (85.4%) were building successfully.&lt;br /&gt;
&lt;br /&gt;
Currently the x86-64 bridge in main/bridges needs to be developed further and debugged. The bridge needs to work with the Win64 C++ ABI in assembly language, and throw and catch arbitrary C++ exceptions from assembly language, a major challenge.&lt;br /&gt;
&lt;br /&gt;
=== Testing ===&lt;br /&gt;
Use the latest Git trunk and 64 bit Cygwin.&lt;br /&gt;
&lt;br /&gt;
Make sure you pass --enable-win64 to ./configure like below (without it, 32 bit binaries get built), and then &amp;quot;source winAMD64Env.set.sh&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
 autoconf&lt;br /&gt;
 ./configure \&lt;br /&gt;
     --enable-win64 \&lt;br /&gt;
     --with-dmake-url=https://sourceforge.net/projects/oooextras.mirror/files/dmake-4.12.tar.bz2 \&lt;br /&gt;
     --with-epm-url=https://sourceforge.net/projects/oooextras.mirror/files/epm-3.7.tar.gz \&lt;br /&gt;
     --disable-directx --with-ant-home=/cygdrive/c/apache-ant-1.10.2 \&lt;br /&gt;
     --without-junit \&lt;br /&gt;
     --enable-verbose&lt;br /&gt;
 source winAMD64Env.set.sh&lt;br /&gt;
 ./bootstrap&lt;br /&gt;
 cd instsetoo_native&lt;br /&gt;
 build --all&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Outstanding issues ===&lt;br /&gt;
&lt;br /&gt;
==== Compatibility with old Windows versions ====&lt;br /&gt;
uwinapi in main/sal proxies/emulates over 50 Windows API functions that are not available on older Windows versions, but uses 32 bit assembly languages. Only a few were ported to AMD64 (via porting them to C instead of assembly). Most should be unnecessary though, and are there mostly for Win9x.&lt;br /&gt;
&lt;br /&gt;
==== Python ====&lt;br /&gt;
Python was a major mission to patch and might not work.&lt;br /&gt;
&lt;br /&gt;
==== Star Basic native DLL calls ====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;DLL manager&amp;quot; in main/basic/source/runtime/dllmgr.cxx, which allows StarBasic to call native functions in arbitrary external DLLs, only ever supported Win32.&lt;br /&gt;
&lt;br /&gt;
At present, it&amp;#039;s been disabled on Win64. Whether it should be implemented, and whether it should support other operating systems and architectures, remains an open question.&lt;br /&gt;
&lt;br /&gt;
==== Database access and SDBC API ====&lt;br /&gt;
&lt;br /&gt;
What size are traditional integer-valued SQL properties, such as Statement.MaxRows, on 64 bit database drivers?&lt;br /&gt;
* Java&amp;#039;s JDBC API added a 64 bit Statement.getLargeMaxRows() (https://docs.oracle.com/javase/8/docs/api/java/sql/Statement.html#getLargeMaxRows--) in addition to the older 32 bit Statement.getMaxRows().&lt;br /&gt;
* ODBC started using SQLLEN/SQLULEN in such cases, which uses pointer-sized integers, ie. 32 bit on 32 bit architectures, and 64 bit on 64 bit architectures (https://www.unixodbc.org/doc/ODBC64.html).&lt;br /&gt;
* ADO is like ODBC.&lt;br /&gt;
&lt;br /&gt;
SDBC provides integral properties, such as Statement.MaxRows, almost exclusively in 32 bits (http://www.openoffice.org/api/docs/common/ref/com/sun/star/sdbc/Statement.html#MaxRows). What should we do about that, when calling lower-level APIs such as the above, that take/return 64 bit parameters?&lt;br /&gt;
&lt;br /&gt;
At present, we extend to 64 bit integers when calling, and truncate to 32 bit integers when returning.&lt;br /&gt;
&lt;br /&gt;
However in the long run, it would be more desirable to extends the SDBC API to allow callers to work with 64 bit integers directly. Since UNO interfaces are immutable, we&amp;#039;d have to provide new interfaces with different names (eg. Statement2), or same name but in a different package.&lt;br /&gt;
&lt;br /&gt;
=== Issues (old) ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date&lt;br /&gt;
! Issue&lt;br /&gt;
! Resolution&lt;br /&gt;
! Fixed in SVN revision&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/03&lt;br /&gt;
| Java 9 is not detected by oowintool.&lt;br /&gt;
| Patched oowintool to detect it.&lt;br /&gt;
| 1825763&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/04&lt;br /&gt;
| dmake&amp;#039;s old config.guess can&amp;#039;t detect Cygwin64.&lt;br /&gt;
| Patched main/bootstrap.1 to overwrite its config.guess with our own newer one.&lt;br /&gt;
| 1825798&lt;br /&gt;
1825802&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/04&lt;br /&gt;
| dmake uses Cygwin API functions that were deprecated on Cygwin32 and have been removed in Cygwin64.&lt;br /&gt;
| Added a patch in main/solenv/src to change dmake to use the replacement Cygwin APIs, and patched main/bootstrap.1 to apply the patch during ./bootstrap.&lt;br /&gt;
| 1825798&lt;br /&gt;
1825802&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/04&lt;br /&gt;
| Binaries built are 32 bit.&lt;br /&gt;
| Changes to configure.ac, set_soenv.in, various dmake and gbuild files are necessary to set up the 64 bit cl.exe. WORK ONGOING.&lt;br /&gt;
| 1825935&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| ext_libraries/apr builds 32 bit and fails to link.&lt;br /&gt;
| Build was hardcoded to 32 bit, and needed 64 bit detection improved and resulting build files copied from the right location.&lt;br /&gt;
| 1825848&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| main/lucene won&amp;#039;t build with Java 1.9, needs -source and -target to be at least 1.6.&lt;br /&gt;
| Patched it to use those. As discussed on the mailing list before, we should use minimum Java version of 1.7, but OS/2 only has 1.6, so this change which used 1.6 shouldn&amp;#039;t break any platform.&lt;br /&gt;
| 1825849&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| main/curl only builds 32 bit and fails to link.&lt;br /&gt;
| Patched it to build 64 bit on Win64.&lt;br /&gt;
| 1825850&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| main/sal doesn&amp;#039;t build. Missing endianness, wrong types, 32-bit assembly language in macros, lots wrong...&lt;br /&gt;
| Builds now and unit tests pass, but unsure whether there are any remaining type conversion bugs.&lt;br /&gt;
| 1825923&lt;br /&gt;
1826021&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/06&lt;br /&gt;
| Win64 has the wrong CPPU_ENV of &amp;quot;msci&amp;quot;.&lt;br /&gt;
| Changed it to &amp;quot;mscx&amp;quot;.&lt;br /&gt;
| 1825956 but reverted and placed into win64.patch&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| main/icu doesn&amp;#039;t build, hardcoded to Win32.&lt;br /&gt;
| Patched to use 64 bit compiler as necessary.&lt;br /&gt;
| 1826062&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| main/salhelper won&amp;#039;t link, needs linker symbol map.&lt;br /&gt;
| Added new symbol map for Win64.&lt;br /&gt;
| 1826066&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| main/icc won&amp;#039;t compile, needs strcasecmp.&lt;br /&gt;
| If Win32 is not detected, stricmp is defined as strcasebmp. Patched to detect AMD64 as well.&lt;br /&gt;
| 1826069&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| ridljar won&amp;#039;t build, javadep from soltools doesn&amp;#039;t support Java 9&amp;#039;s new class file changes.&lt;br /&gt;
| Patched javadep.&lt;br /&gt;
| 1826078&lt;br /&gt;
[[Category:Porting]]&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Win64_port&amp;diff=260262</id>
		<title>Win64 port</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Win64_port&amp;diff=260262"/>
		<updated>2025-01-04T13:56:14Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Fix typo.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This documents progress being made in porting AOO to run on 64 bit Windows.&lt;br /&gt;
&lt;br /&gt;
Strictly speaking, it should be called the x86-64 or AMD64 port, since there are other 64 bit architectures that Microsoft Windows supports that are not being addressed here (eg. Aarch64), but most of the work done is to data types and API calls, so it will also benefit future ports to those other 64 bit architectures.&lt;br /&gt;
&lt;br /&gt;
This has traditionally been a difficult platform to port to due to Windows uniquely being a LLP64 platform, whereas *nix is LP64; ie. sizeof(long) == 32 on Win64, but 64 on *nix. Every &amp;quot;long&amp;quot; everywhere in the codebase may have to potentially be replaced, and every conversion between long and pointer will definitely need replacement. A UNO bridge for LLP64 will also be necessary.&lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s not all doom and gloom though. The *nix 64 bit port already must have eliminated conversions between int and pointer, making our life easier. Java, Python, StarBasic and other languages with types of known size should be ok.&lt;br /&gt;
&lt;br /&gt;
So starting with Windows 7 64 bit, Cygwin64, 64 bit Java 9, Ant 1.10.2, let&amp;#039;s push on and see how far we get.&lt;br /&gt;
&lt;br /&gt;
=== Status ===&lt;br /&gt;
&lt;br /&gt;
* In 2018, at least 83 out of 189 modules (43.9%) built successfully.&lt;br /&gt;
* 2 January 2025, 112 out of 185 modules (60%) were building successfully.&lt;br /&gt;
* 3 January 2025, 138 out of 185 modules (74.6%) were building successfully.&lt;br /&gt;
&lt;br /&gt;
Currently the x86-64 bridge in main/bridges needs to be developed further and debugged. The bridge needs to work with the Win64 C++ ABI in assembly language, and throw and catch arbitrary C++ exceptions from assembly language, a major challenge.&lt;br /&gt;
&lt;br /&gt;
=== Testing ===&lt;br /&gt;
Use the latest Git trunk and 64 bit Cygwin.&lt;br /&gt;
&lt;br /&gt;
Make sure you pass --enable-win64 to ./configure like below (without it, 32 bit binaries get built), and then &amp;quot;source winAMD64Env.set.sh&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
 autoconf&lt;br /&gt;
 ./configure \&lt;br /&gt;
     --enable-win64 \&lt;br /&gt;
     --with-dmake-url=https://sourceforge.net/projects/oooextras.mirror/files/dmake-4.12.tar.bz2 \&lt;br /&gt;
     --with-epm-url=https://sourceforge.net/projects/oooextras.mirror/files/epm-3.7.tar.gz \&lt;br /&gt;
     --disable-directx --with-ant-home=/cygdrive/c/apache-ant-1.10.2 \&lt;br /&gt;
     --without-junit \&lt;br /&gt;
     --enable-verbose&lt;br /&gt;
 source winAMD64Env.set.sh&lt;br /&gt;
 ./bootstrap&lt;br /&gt;
 cd instsetoo_native&lt;br /&gt;
 build --all&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Outstanding issues ===&lt;br /&gt;
&lt;br /&gt;
==== Compatibility with old Windows versions ====&lt;br /&gt;
uwinapi in main/sal proxies/emulates over 50 Windows API functions that are not available on older Windows versions, but uses 32 bit assembly languages. Only a few were ported to AMD64 (via porting them to C instead of assembly). Most should be unnecessary though, and are there mostly for Win9x.&lt;br /&gt;
&lt;br /&gt;
==== Python ====&lt;br /&gt;
Python was a major mission to patch and might not work.&lt;br /&gt;
&lt;br /&gt;
==== Star Basic native DLL calls ====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;DLL manager&amp;quot; in main/basic/source/runtime/dllmgr.cxx, which allows StarBasic to call native functions in arbitrary external DLLs, only ever supported Win32.&lt;br /&gt;
&lt;br /&gt;
At present, it&amp;#039;s been disabled on Win64. Whether it should be implemented, and whether it should support other operating systems and architectures, remains an open question.&lt;br /&gt;
&lt;br /&gt;
==== Database access and SDBC API ====&lt;br /&gt;
&lt;br /&gt;
What size are traditional integer-valued SQL properties, such as Statement.MaxRows, on 64 bit database drivers?&lt;br /&gt;
* Java&amp;#039;s JDBC API added a 64 bit Statement.getLargeMaxRows() (https://docs.oracle.com/javase/8/docs/api/java/sql/Statement.html#getLargeMaxRows--) in addition to the older 32 bit Statement.getMaxRows().&lt;br /&gt;
* ODBC started using SQLLEN/SQLULEN in such cases, which uses pointer-sized integers, ie. 32 bit on 32 bit architectures, and 64 bit on 64 bit architectures (https://www.unixodbc.org/doc/ODBC64.html).&lt;br /&gt;
* ADO is like ODBC.&lt;br /&gt;
&lt;br /&gt;
SDBC provides integral properties, such as Statement.MaxRows, almost exclusively in 32 bits (http://www.openoffice.org/api/docs/common/ref/com/sun/star/sdbc/Statement.html#MaxRows). What should we do about that, when calling lower-level APIs such as the above, that take/return 64 bit parameters?&lt;br /&gt;
&lt;br /&gt;
At present, we extend to 64 bit integers when calling, and truncate to 32 bit integers when returning.&lt;br /&gt;
&lt;br /&gt;
However in the long run, it would be more desirable to extends the SDBC API to allow callers to work with 64 bit integers directly. Since UNO interfaces are immutable, we&amp;#039;d have to provide new interfaces with different names (eg. Statement2), or same name but in a different package.&lt;br /&gt;
&lt;br /&gt;
=== Issues (old) ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date&lt;br /&gt;
! Issue&lt;br /&gt;
! Resolution&lt;br /&gt;
! Fixed in SVN revision&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/03&lt;br /&gt;
| Java 9 is not detected by oowintool.&lt;br /&gt;
| Patched oowintool to detect it.&lt;br /&gt;
| 1825763&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/04&lt;br /&gt;
| dmake&amp;#039;s old config.guess can&amp;#039;t detect Cygwin64.&lt;br /&gt;
| Patched main/bootstrap.1 to overwrite its config.guess with our own newer one.&lt;br /&gt;
| 1825798&lt;br /&gt;
1825802&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/04&lt;br /&gt;
| dmake uses Cygwin API functions that were deprecated on Cygwin32 and have been removed in Cygwin64.&lt;br /&gt;
| Added a patch in main/solenv/src to change dmake to use the replacement Cygwin APIs, and patched main/bootstrap.1 to apply the patch during ./bootstrap.&lt;br /&gt;
| 1825798&lt;br /&gt;
1825802&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/04&lt;br /&gt;
| Binaries built are 32 bit.&lt;br /&gt;
| Changes to configure.ac, set_soenv.in, various dmake and gbuild files are necessary to set up the 64 bit cl.exe. WORK ONGOING.&lt;br /&gt;
| 1825935&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| ext_libraries/apr builds 32 bit and fails to link.&lt;br /&gt;
| Build was hardcoded to 32 bit, and needed 64 bit detection improved and resulting build files copied from the right location.&lt;br /&gt;
| 1825848&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| main/lucene won&amp;#039;t build with Java 1.9, needs -source and -target to be at least 1.6.&lt;br /&gt;
| Patched it to use those. As discussed on the mailing list before, we should use minimum Java version of 1.7, but OS/2 only has 1.6, so this change which used 1.6 shouldn&amp;#039;t break any platform.&lt;br /&gt;
| 1825849&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| main/curl only builds 32 bit and fails to link.&lt;br /&gt;
| Patched it to build 64 bit on Win64.&lt;br /&gt;
| 1825850&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| main/sal doesn&amp;#039;t build. Missing endianness, wrong types, 32-bit assembly language in macros, lots wrong...&lt;br /&gt;
| Builds now and unit tests pass, but unsure whether there are any remaining type conversion bugs.&lt;br /&gt;
| 1825923&lt;br /&gt;
1826021&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/06&lt;br /&gt;
| Win64 has the wrong CPPU_ENV of &amp;quot;msci&amp;quot;.&lt;br /&gt;
| Changed it to &amp;quot;mscx&amp;quot;.&lt;br /&gt;
| 1825956 but reverted and placed into win64.patch&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| main/icu doesn&amp;#039;t build, hardcoded to Win32.&lt;br /&gt;
| Patched to use 64 bit compiler as necessary.&lt;br /&gt;
| 1826062&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| main/salhelper won&amp;#039;t link, needs linker symbol map.&lt;br /&gt;
| Added new symbol map for Win64.&lt;br /&gt;
| 1826066&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| main/icc won&amp;#039;t compile, needs strcasecmp.&lt;br /&gt;
| If Win32 is not detected, stricmp is defined as strcasebmp. Patched to detect AMD64 as well.&lt;br /&gt;
| 1826069&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| ridljar won&amp;#039;t build, javadep from soltools doesn&amp;#039;t support Java 9&amp;#039;s new class file changes.&lt;br /&gt;
| Patched javadep.&lt;br /&gt;
| 1826078&lt;br /&gt;
[[Category:Porting]]&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Win64_port&amp;diff=260261</id>
		<title>Win64 port</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Win64_port&amp;diff=260261"/>
		<updated>2025-01-04T11:53:26Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Update Win64 port page with more recent info.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This documents progress being made in porting AOO to run on 64 bit Windows.&lt;br /&gt;
&lt;br /&gt;
Strictly speaking, it should be called the x86-64 or AMD64 port, since there are other 64 bit architectures that Microsoft Windows supports that are not being addressed here (eg. Aarch64), but most of the work done is to data types and API calls, so it will also benefit future ports to those other 64 bit architectures.&lt;br /&gt;
&lt;br /&gt;
This has traditionally been a difficult platform to port to due to Windows uniquely being a LLP64 platform, whereas *nix is LP64; ie. sizeof(long) == 32 on Win64, but 64 on *nix. Every &amp;quot;long&amp;quot; everywhere in the codebase may have to potentially be replaced, and every conversion between long and pointer will definitely need replacement. A UNO bridge for LLP64 will also be necessary.&lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s not all doom and gloom though. The *nix 64 bit port already must have eliminated conversions between int and pointer, making our life easier. Java, Python, StarBasic and other languages with types of known size should be ok.&lt;br /&gt;
&lt;br /&gt;
So starting with Windows 7 64 bit, Cygwin64, 64 bit Java 9, Ant 1.10.2, let&amp;#039;s push on and see how far we get.&lt;br /&gt;
&lt;br /&gt;
=== Status ===&lt;br /&gt;
&lt;br /&gt;
* In 2018, at least 83 out of 189 modules (43.9%) built successfully.&lt;br /&gt;
* 2 January 2025, 112 out of 185 modules (60%) were building successfully.&lt;br /&gt;
* 3 January 2025, 138 out of 185 modules (74.6%) were building successfully.&lt;br /&gt;
&lt;br /&gt;
Currently the x86-64 bridge in main/bridges needs to be developed further debugged. The bridge needs to work with the Win64 C++ ABI in assembly language, and throw and catch arbitrary C++ exceptions from assembly language, a major challenge.&lt;br /&gt;
&lt;br /&gt;
=== Testing ===&lt;br /&gt;
Use the latest Git trunk and 64 bit Cygwin.&lt;br /&gt;
&lt;br /&gt;
Make sure you pass --enable-win64 to ./configure like below (without it, 32 bit binaries get built), and then &amp;quot;source winAMD64Env.set.sh&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
 autoconf&lt;br /&gt;
 ./configure \&lt;br /&gt;
     --enable-win64 \&lt;br /&gt;
     --with-dmake-url=https://sourceforge.net/projects/oooextras.mirror/files/dmake-4.12.tar.bz2 \&lt;br /&gt;
     --with-epm-url=https://sourceforge.net/projects/oooextras.mirror/files/epm-3.7.tar.gz \&lt;br /&gt;
     --disable-directx --with-ant-home=/cygdrive/c/apache-ant-1.10.2 \&lt;br /&gt;
     --without-junit \&lt;br /&gt;
     --enable-verbose&lt;br /&gt;
 source winAMD64Env.set.sh&lt;br /&gt;
 ./bootstrap&lt;br /&gt;
 cd instsetoo_native&lt;br /&gt;
 build --all&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Outstanding issues ===&lt;br /&gt;
&lt;br /&gt;
==== Compatibility with old Windows versions ====&lt;br /&gt;
uwinapi in main/sal proxies/emulates over 50 Windows API functions that are not available on older Windows versions, but uses 32 bit assembly languages. Only a few were ported to AMD64 (via porting them to C instead of assembly). Most should be unnecessary though, and are there mostly for Win9x.&lt;br /&gt;
&lt;br /&gt;
==== Python ====&lt;br /&gt;
Python was a major mission to patch and might not work.&lt;br /&gt;
&lt;br /&gt;
==== Star Basic native DLL calls ====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;DLL manager&amp;quot; in main/basic/source/runtime/dllmgr.cxx, which allows StarBasic to call native functions in arbitrary external DLLs, only ever supported Win32.&lt;br /&gt;
&lt;br /&gt;
At present, it&amp;#039;s been disabled on Win64. Whether it should be implemented, and whether it should support other operating systems and architectures, remains an open question.&lt;br /&gt;
&lt;br /&gt;
==== Database access and SDBC API ====&lt;br /&gt;
&lt;br /&gt;
What size are traditional integer-valued SQL properties, such as Statement.MaxRows, on 64 bit database drivers?&lt;br /&gt;
* Java&amp;#039;s JDBC API added a 64 bit Statement.getLargeMaxRows() (https://docs.oracle.com/javase/8/docs/api/java/sql/Statement.html#getLargeMaxRows--) in addition to the older 32 bit Statement.getMaxRows().&lt;br /&gt;
* ODBC started using SQLLEN/SQLULEN in such cases, which uses pointer-sized integers, ie. 32 bit on 32 bit architectures, and 64 bit on 64 bit architectures (https://www.unixodbc.org/doc/ODBC64.html).&lt;br /&gt;
* ADO is like ODBC.&lt;br /&gt;
&lt;br /&gt;
SDBC provides integral properties, such as Statement.MaxRows, almost exclusively in 32 bits (http://www.openoffice.org/api/docs/common/ref/com/sun/star/sdbc/Statement.html#MaxRows). What should we do about that, when calling lower-level APIs such as the above, that take/return 64 bit parameters?&lt;br /&gt;
&lt;br /&gt;
At present, we extend to 64 bit integers when calling, and truncate to 32 bit integers when returning.&lt;br /&gt;
&lt;br /&gt;
However in the long run, it would be more desirable to extends the SDBC API to allow callers to work with 64 bit integers directly. Since UNO interfaces are immutable, we&amp;#039;d have to provide new interfaces with different names (eg. Statement2), or same name but in a different package.&lt;br /&gt;
&lt;br /&gt;
=== Issues (old) ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date&lt;br /&gt;
! Issue&lt;br /&gt;
! Resolution&lt;br /&gt;
! Fixed in SVN revision&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/03&lt;br /&gt;
| Java 9 is not detected by oowintool.&lt;br /&gt;
| Patched oowintool to detect it.&lt;br /&gt;
| 1825763&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/04&lt;br /&gt;
| dmake&amp;#039;s old config.guess can&amp;#039;t detect Cygwin64.&lt;br /&gt;
| Patched main/bootstrap.1 to overwrite its config.guess with our own newer one.&lt;br /&gt;
| 1825798&lt;br /&gt;
1825802&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/04&lt;br /&gt;
| dmake uses Cygwin API functions that were deprecated on Cygwin32 and have been removed in Cygwin64.&lt;br /&gt;
| Added a patch in main/solenv/src to change dmake to use the replacement Cygwin APIs, and patched main/bootstrap.1 to apply the patch during ./bootstrap.&lt;br /&gt;
| 1825798&lt;br /&gt;
1825802&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/04&lt;br /&gt;
| Binaries built are 32 bit.&lt;br /&gt;
| Changes to configure.ac, set_soenv.in, various dmake and gbuild files are necessary to set up the 64 bit cl.exe. WORK ONGOING.&lt;br /&gt;
| 1825935&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| ext_libraries/apr builds 32 bit and fails to link.&lt;br /&gt;
| Build was hardcoded to 32 bit, and needed 64 bit detection improved and resulting build files copied from the right location.&lt;br /&gt;
| 1825848&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| main/lucene won&amp;#039;t build with Java 1.9, needs -source and -target to be at least 1.6.&lt;br /&gt;
| Patched it to use those. As discussed on the mailing list before, we should use minimum Java version of 1.7, but OS/2 only has 1.6, so this change which used 1.6 shouldn&amp;#039;t break any platform.&lt;br /&gt;
| 1825849&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| main/curl only builds 32 bit and fails to link.&lt;br /&gt;
| Patched it to build 64 bit on Win64.&lt;br /&gt;
| 1825850&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/05&lt;br /&gt;
| main/sal doesn&amp;#039;t build. Missing endianness, wrong types, 32-bit assembly language in macros, lots wrong...&lt;br /&gt;
| Builds now and unit tests pass, but unsure whether there are any remaining type conversion bugs.&lt;br /&gt;
| 1825923&lt;br /&gt;
1826021&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/06&lt;br /&gt;
| Win64 has the wrong CPPU_ENV of &amp;quot;msci&amp;quot;.&lt;br /&gt;
| Changed it to &amp;quot;mscx&amp;quot;.&lt;br /&gt;
| 1825956 but reverted and placed into win64.patch&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| main/icu doesn&amp;#039;t build, hardcoded to Win32.&lt;br /&gt;
| Patched to use 64 bit compiler as necessary.&lt;br /&gt;
| 1826062&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| main/salhelper won&amp;#039;t link, needs linker symbol map.&lt;br /&gt;
| Added new symbol map for Win64.&lt;br /&gt;
| 1826066&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| main/icc won&amp;#039;t compile, needs strcasecmp.&lt;br /&gt;
| If Win32 is not detected, stricmp is defined as strcasebmp. Patched to detect AMD64 as well.&lt;br /&gt;
| 1826069&lt;br /&gt;
|-&lt;br /&gt;
| 2018/03/07&lt;br /&gt;
| ridljar won&amp;#039;t build, javadep from soltools doesn&amp;#039;t support Java 9&amp;#039;s new class file changes.&lt;br /&gt;
| Patched javadep.&lt;br /&gt;
| 1826078&lt;br /&gt;
[[Category:Porting]]&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Calc/Implementation/Spreadsheet_Functions&amp;diff=259188</id>
		<title>Calc/Implementation/Spreadsheet Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Calc/Implementation/Spreadsheet_Functions&amp;diff=259188"/>
		<updated>2024-01-28T03:42:37Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Update the documentation for ReferenceOrForceArray.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Calc]]&lt;br /&gt;
[[Category:Implementation]]&lt;br /&gt;
&lt;br /&gt;
Procedure to add a new [[Calc]] spreadsheet function.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Let&amp;#039;s assume you want to implement a new spreadsheet function and the function&lt;br /&gt;
was defined by the&lt;br /&gt;
[http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=office-formula OASIS OpenDocument Format Formula subcommittee],&lt;br /&gt;
see latest revision of the&lt;br /&gt;
[http://www.oasis-open.org/committees/documents.php?wg_abbrev=office-formula specification (draft)].&lt;br /&gt;
Let&amp;#039;s further assume the function&amp;#039;s name is &amp;#039;&amp;#039;&amp;#039;MYFUNC&amp;#039;&amp;#039;&amp;#039; and will take&lt;br /&gt;
2 parameters, of which the second parameter is optional and defaulted to 0, and&lt;br /&gt;
returns a number, as following:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Syntax:&amp;#039;&amp;#039;&amp;#039; MYFUNC( &amp;#039;&amp;#039;Number&amp;#039;&amp;#039; Param1 [ ; &amp;#039;&amp;#039;Number&amp;#039;&amp;#039; Param2 = 0 ] ) &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Returns:&amp;#039;&amp;#039;&amp;#039; Number&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Make the formula compiler know the function ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== formula/inc/formula/compiler.hrc ===&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;sc/inc/compiler.hrc&amp;#039;&amp;#039;&amp;#039; up to and including version DEV300_m38&amp;#039;&amp;#039;  &lt;br /&gt;
&lt;br /&gt;
These are the defines used by the resources for function names and the Function&lt;br /&gt;
Wizard, and the numerical values of OpCode for the formula compiler and&lt;br /&gt;
interpreter. Note that once defined the &amp;#039;&amp;#039;names&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;must not be changed&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
because they are used by the localization tools as identifiers.&lt;br /&gt;
&lt;br /&gt;
Add a new define, in this case for 2 parameters append it to the section for&lt;br /&gt;
functions with more than 1 parameter near the end of the file. Name the define&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;SC_OPCODE_MYFUNC&amp;#039;&amp;#039;&amp;#039; and insert it right before the define of&lt;br /&gt;
SC_OPCODE_STOP_2_PAR, give it the value SC_OPCODE_STOP_2_PAR had, and&lt;br /&gt;
increment the values of SC_OPCODE_STOP_2_PAR and SC_OPCODE_LAST_OPCODE_ID. If&lt;br /&gt;
before the section looked like&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
#define SC_OPCODE_STOP_2_PAR        393&lt;br /&gt;
&lt;br /&gt;
#define SC_OPCODE_LAST_OPCODE_ID    392      /* last OpCode */&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
it should then be&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
#define SC_OPCODE_MYFUNC            393&lt;br /&gt;
#define SC_OPCODE_STOP_2_PAR        394&lt;br /&gt;
&lt;br /&gt;
#define SC_OPCODE_LAST_OPCODE_ID    393      /* last OpCode */&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== formula/inc/formula/opcode.hxx ===&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;sc/inc/opcode.hxx&amp;#039;&amp;#039;&amp;#039; up to and including version DEV300_m38&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Here the &amp;#039;&amp;#039;OpCodeEnum&amp;#039;&amp;#039; values are defined. Note that in a non-product build&lt;br /&gt;
(--enable-dbgutil during configure) there is a&lt;br /&gt;
&amp;lt;code&amp;gt;typedef OpCodeEnum OpCode;&amp;lt;/code&amp;gt;&lt;br /&gt;
to show enum names in the debugger, while in a product build it is&lt;br /&gt;
&amp;lt;code&amp;gt;typedef OpCodeEnum USHORT;&amp;lt;/code&amp;gt;&lt;br /&gt;
to save some memory, since compilers tend to produce an &amp;#039;&amp;#039;int&amp;#039;&amp;#039; for an enum.&lt;br /&gt;
&lt;br /&gt;
Find a &amp;quot;right&amp;quot; place for the new enum. Although the way the definitions are&lt;br /&gt;
setup the placement doesn&amp;#039;t matter, there are sections with different topics,&lt;br /&gt;
such as &amp;#039;&amp;#039;String functions&amp;#039;&amp;#039; and &amp;#039;&amp;#039;Statistical functions&amp;#039;&amp;#039;. Maybe the correct&lt;br /&gt;
place for MYFUNC would be under &amp;#039;&amp;#039;miscellaneous&amp;#039;&amp;#039;. Best practice is to add&lt;br /&gt;
a new OpCode to the end of such section. Name the OpCode &amp;#039;&amp;#039;&amp;#039;ocMyFunc&amp;#039;&amp;#039;&amp;#039; and add&lt;br /&gt;
the line&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
        ocMyFunc            = SC_OPCODE_MYFUNC,&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== formula/source/core/resource/core_resource.src ===&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;sc/source/core/src/compiler.src&amp;#039;&amp;#039;&amp;#039; up to and including version DEV300_m38&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
These are the resources for function names. There are 3 resource bundles:&lt;br /&gt;
&lt;br /&gt;
; RID_SC_FUNCTION_NAMES : English UI display names. These get localized for the UI of other languages.&lt;br /&gt;
; RID_SC_FUNCTION_NAMES_ENGLISH : These English names are used internally to store/load [[ODF]] v1.0/v1.1 and for [[API]] [http://api.openoffice.org/docs/common/ref/com/sun/star/sheet/XFunctionAccess.html XFunctionAccess]. Usually the name is identical to that in RID_SC_FUNCTION_NAMES. Once defined and &amp;quot;in the wild&amp;quot;, the name &amp;#039;&amp;#039;&amp;#039;must not be changed&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
; RID_SC_FUNCTION_NAMES_ENGLISH_ODFF : These English names are used internally to store/load ODFF aka OpenFormula as of [[ODF]] v1.2. Once defined, the name &amp;#039;&amp;#039;&amp;#039;must not be changed&amp;#039;&amp;#039;&amp;#039;. &lt;br /&gt;
&lt;br /&gt;
The new function name must be defined for all 3 resource bundles.&lt;br /&gt;
&lt;br /&gt;
To the end of &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;Resource RID_SC_FUNCTION_NAMES&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
add&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    String SC_OPCODE_MYFUNC&lt;br /&gt;
    {&lt;br /&gt;
        Text [ en-US ] = &amp;quot;MYFUNC&amp;quot; ;&lt;br /&gt;
    };&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;[ en-US ]&amp;lt;/code&amp;gt; field tells the localization tools that the name may&lt;br /&gt;
be localized.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To the end of &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;Resource RID_SC_FUNCTION_NAMES_ENGLISH&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
add&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    String SC_OPCODE_MYFUNC { Text = &amp;quot;MYFUNC&amp;quot; ; };&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The absence of the &amp;lt;code&amp;gt;[ en-US ]&amp;lt;/code&amp;gt; field tells the localization tools&lt;br /&gt;
that the name &amp;#039;&amp;#039;&amp;#039;must not&amp;#039;&amp;#039;&amp;#039; be localized.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To the end of &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;Resource RID_SC_FUNCTION_NAMES_ENGLISH_ODFF&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
add&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    String SC_OPCODE_MYFUNC { Text = &amp;quot;MYFUNC&amp;quot; ; };&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Again, the absence of the &amp;lt;code&amp;gt;[ en-US ]&amp;lt;/code&amp;gt; field tells the localization&lt;br /&gt;
tools that the name &amp;#039;&amp;#039;&amp;#039;must not&amp;#039;&amp;#039;&amp;#039; be localized.&lt;br /&gt;
&lt;br /&gt;
=== The compiler knows the function ===&lt;br /&gt;
&lt;br /&gt;
After having added the necessary entries to &amp;lt;tt&amp;gt;formula/inc/formula/compiler.hrc&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;formula/inc/formula/opcode.hxx&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;formula/source/core/resource/core_resource.src&amp;lt;/tt&amp;gt; (&amp;lt;tt&amp;gt;sc/inc/compiler.hrc&amp;lt;/tt&amp;gt;,&lt;br /&gt;
&amp;lt;tt&amp;gt;sc/inc/opcode.hxx&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;sc/source/core/src/compiler.src&amp;lt;/tt&amp;gt; respectively), the&lt;br /&gt;
formula compiler now knows the new function name and is able to compile an&lt;br /&gt;
expression where it is used, and it can be stored in and loaded from&lt;br /&gt;
a document. Of course nothing else works, the interpreter doesn&amp;#039;t know how to&lt;br /&gt;
handle it and will generate an error if encountered. The function and its&lt;br /&gt;
parameters will not appear in the Function Wizard.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Publish the function to the Function Wizard ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sc/inc/scfuncs.hrc ===&lt;br /&gt;
Till DEV300m90&lt;br /&gt;
&lt;br /&gt;
Function groups (categories) and HelpIDs for functions are defined here. Lookup&lt;br /&gt;
the group where functions of ID_FUNCTION_GRP_... matching the new function&amp;#039;s&lt;br /&gt;
category are defined and append an entry, incrementing the offset of the last&lt;br /&gt;
entry by one. For our function that could be&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
#define HID_FUNC_MYFUNC             (HID_SC_FUNC_DUMMY+(ID_FUNCTION_GRP_MATH*ID_FUNCTION_OFFSET)+56)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== sc/inc/helpids.h ===&lt;br /&gt;
Since DEV300m91.&lt;br /&gt;
&lt;br /&gt;
With {{bug|111874}} (not issue 111784 as in comment in CWS changehid) the helpid system has been changed from numerical to byte string. The help ids are no longer defined in file &amp;lt;tt&amp;gt;scfuncs.hrc&amp;lt;/tt&amp;gt; but in file &amp;lt;tt&amp;gt;helpids.h&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For our function that could be&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
#define HID_FUNC_MYFUNC             &amp;quot;SC_HID_FUNC_MYFUNC&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice the prefix &amp;lt;tt&amp;gt;SC_&amp;lt;/tt&amp;gt;. Use a position that is similar to the position of the new function in the other files like &amp;lt;tt&amp;gt;compiler.hrc&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;core_resource.src&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== sc/source/ui/src/scfuncs.src ===&lt;br /&gt;
&lt;br /&gt;
This large resource file contains all elements necessary to display functions&lt;br /&gt;
in the Function Wizard. It defines the function&amp;#039;s short description, the number&lt;br /&gt;
of parameters, whether they are optional, and the description of each&lt;br /&gt;
parameter. For a detailed description of fields see the comment on top of the&lt;br /&gt;
file.&lt;br /&gt;
&lt;br /&gt;
Add the new function to the end of one of the two resource blocks&lt;br /&gt;
RID_SC_FUNCTION_DESCRIPTIONS1 or RID_SC_FUNCTION_DESCRIPTIONS2. Which one&lt;br /&gt;
doesn&amp;#039;t really matter, but functions should be more or less equally distributed&lt;br /&gt;
over the two blocks. There are two blocks because one resource block couldn&amp;#039;t&lt;br /&gt;
have more than 64k data, just another legacy from Win16 times.. looked up again&lt;br /&gt;
right now (2008-08-23) in the meantime this restriction seems to have been&lt;br /&gt;
obsoleted, which would have to be verified by a test build using one resource&lt;br /&gt;
block only though.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    Resource SC_OPCODE_MYFUNC&lt;br /&gt;
    {&lt;br /&gt;
        String 1 // Description&lt;br /&gt;
        {&lt;br /&gt;
            Text [ en-US ] = &amp;quot;Calculates foo, optionally using bar.&amp;quot; ;&lt;br /&gt;
        };&lt;br /&gt;
        ExtraData =&lt;br /&gt;
        {&lt;br /&gt;
            0;&lt;br /&gt;
            ID_FUNCTION_GRP_MATH;&lt;br /&gt;
            U2S( HID_FUNC_MYFUNC );&lt;br /&gt;
            2;  0;  1;&lt;br /&gt;
            0;&lt;br /&gt;
        };&lt;br /&gt;
        String 2 // Name of Parameter 1&lt;br /&gt;
        {&lt;br /&gt;
            Text [ en-US ] = &amp;quot;Number&amp;quot; ;&lt;br /&gt;
        };&lt;br /&gt;
        String 3 // Description of Parameter 1&lt;br /&gt;
        {&lt;br /&gt;
            Text [ en-US ] = &amp;quot;A value for which foo is to be calculated.&amp;quot; ;&lt;br /&gt;
        };&lt;br /&gt;
        String 4 // Name of Parameter 2&lt;br /&gt;
        {&lt;br /&gt;
            Text [ en-US ] = &amp;quot;Number&amp;quot; ;&lt;br /&gt;
        };&lt;br /&gt;
        String 5 // Description of Parameter 2&lt;br /&gt;
        {&lt;br /&gt;
            Text [ en-US ] = &amp;quot;The bar value.&amp;quot; ;&lt;br /&gt;
        };&lt;br /&gt;
    };&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some comments on the ExtraData block, for more details see scfuncs.src:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ExtraData =&lt;br /&gt;
{&lt;br /&gt;
    0;                      // The function is not suppressed and available in UI.&lt;br /&gt;
    ID_FUNCTION_GRP_MATH;   // The category in which the function is displayed.&lt;br /&gt;
    U2S( HID_FUNC_MYFUNC ); // The HelpID of this function.&lt;br /&gt;
    2;  0;  1;              // 2 parameters, of which the 2nd is optional.&lt;br /&gt;
    0;                      // None of the parameters are suppressed in the UI.&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sc/util/hidother.src ===&lt;br /&gt;
&lt;br /&gt;
Here the HelpIDs to be used within the Function Wizard are propagated to the&lt;br /&gt;
help system. Go to the end of the section containing HID_FUNC_... and append an&lt;br /&gt;
entry,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
hidspecial HID_FUNC_MYFUNC          { HelpID = HID_FUNC_MYFUNC; };&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== The Function Wizard knows the function ===&lt;br /&gt;
&lt;br /&gt;
Now the Function Wizard can display the function and its parameters, and&lt;br /&gt;
online-help may be authored.&lt;br /&gt;
&lt;br /&gt;
== Let the interpreter handle the function ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sc/source/core/inc/interpre.hxx ===&lt;br /&gt;
&lt;br /&gt;
Add a member method to &amp;lt;tt&amp;gt;class ScInterpreter&amp;lt;/tt&amp;gt; that will handle the new&lt;br /&gt;
function. Here this would be&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
void ScMyFunc();&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take care that the new member function doesn&amp;#039;t resemble the name of some&lt;br /&gt;
already existing class, for example the method for the ADDRESS() function is&lt;br /&gt;
named ScAddressFunc() because ScAddress(), if called without&lt;br /&gt;
&amp;lt;tt&amp;gt;this-&amp;amp;gt;&amp;lt;/tt&amp;gt; prefix, would be the ctor of class ScAddress instead. If in&lt;br /&gt;
doubt, add ...Func() to the name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sc/source/core/tool/interpr4.cxx ===&lt;br /&gt;
&lt;br /&gt;
In method ScInterpreter::Interpret() add to &amp;lt;code&amp;gt;switch ( eOp )&amp;lt;/code&amp;gt; the&lt;br /&gt;
call to the member function for the OpCode:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
                case ocMyFunc           : ScMyFunc();                   break;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sc/source/core/tool/interpr?.cxx ===&lt;br /&gt;
&lt;br /&gt;
Pick one of the interpr?.cxx source files where the new method may fit. There&lt;br /&gt;
is no general advice which file exactly that might be, be sensible. As a guide line&lt;br /&gt;
&lt;br /&gt;
; interpr1.cxx : Basic math functions and informational functions.&lt;br /&gt;
; interpr2.cxx : Date functions and financial functions.&lt;br /&gt;
; interpr3.cxx : Statistical functions.&lt;br /&gt;
; interpr4.cxx : Interpreter managing and stack related functions, you shouldn&amp;#039;t need to add anything there.&lt;br /&gt;
; interpr5.cxx : Matrix functions.&lt;br /&gt;
; interpr6.cxx : Some number crunching that in the past had to be compiled without optimizations, though in the mean time code changed and this probably is not necessary anymore.&lt;br /&gt;
&lt;br /&gt;
For our function, since that expects two, one optional, numerical scalar&lt;br /&gt;
arguments, this would be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
void ScInterpreter::ScMyFunc()&lt;br /&gt;
{&lt;br /&gt;
    BYTE nParamCount = GetByte();&lt;br /&gt;
    // The MustHaveParamCount...() functions check the number of parameters and&lt;br /&gt;
    // if they do not fit push an error on the stack, if the method fails&lt;br /&gt;
    // (returns false) we return immediately.&lt;br /&gt;
    if ( !MustHaveParamCount( nParamCount, 1, 2 ) )&lt;br /&gt;
        return;&lt;br /&gt;
&lt;br /&gt;
    // Arguments are popped from the stack from right to left.&lt;br /&gt;
    double fParam2;&lt;br /&gt;
    if (nParamCount == 2)&lt;br /&gt;
        fParam2 = GetDouble();&lt;br /&gt;
    else&lt;br /&gt;
        fParam2 = 0.0;&lt;br /&gt;
&lt;br /&gt;
    double fVal = GetDouble();&lt;br /&gt;
    if ( /* does fVal meet all constraints */ )&lt;br /&gt;
    {&lt;br /&gt;
        double fResult = /* calculate foo */ ;&lt;br /&gt;
        PushDouble( fResult );&lt;br /&gt;
    }&lt;br /&gt;
    else&lt;br /&gt;
        PushIllegalArgument();&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== The not so easy case of non-scalar arguments ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;tt&amp;gt;StackVar&amp;lt;/tt&amp;gt; argument types ====&lt;br /&gt;
&lt;br /&gt;
If the new function would handle parameters that are not scalar values, for&lt;br /&gt;
example a NumberSequence or matrix/array, they would have to be treated&lt;br /&gt;
explicitly, checking and reacting on the type of each argument. Lookout for&lt;br /&gt;
functions that use the &amp;lt;code&amp;gt;GetType()&amp;lt;/code&amp;gt; call and handle &amp;lt;tt&amp;gt;StackVar&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;svDoubleRef&amp;lt;/code&amp;gt; or similar. Ask on the dev@sc mailing list if in&lt;br /&gt;
doubt.&lt;br /&gt;
&lt;br /&gt;
The most common &amp;lt;tt&amp;gt;StackVar&amp;lt;/tt&amp;gt; types obtainable with &amp;lt;code&amp;gt;GetStackType()&amp;lt;/code&amp;gt;are:&lt;br /&gt;
&lt;br /&gt;
; svDouble : A double value.&lt;br /&gt;
; svString : A literal string text.&lt;br /&gt;
; svSingleRef : A single cell reference.&lt;br /&gt;
; svDoubleRef : A cell range reference.&lt;br /&gt;
; svRefList : A list of cell range references.&lt;br /&gt;
; svMatrix : A matrix/array.&lt;br /&gt;
&lt;br /&gt;
There are a few other types available with &amp;lt;code&amp;gt;GetRawStackType()&amp;lt;/code&amp;gt; for&lt;br /&gt;
specific situations, these are converted to &amp;#039;&amp;#039;svDouble&amp;#039;&amp;#039; in&lt;br /&gt;
&amp;lt;code&amp;gt;GetStackType()&amp;lt;/code&amp;gt; and returned as 0.0 by &amp;lt;code&amp;gt;PopDouble()&amp;lt;/code&amp;gt; and&lt;br /&gt;
&amp;lt;code&amp;gt;GetDouble()&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
; svMissing : An empty parameter without value, if that should not be converted to 0.0 use &amp;lt;code&amp;gt;GetDoubleWithDefault(double)&amp;lt;/code&amp;gt;.&lt;br /&gt;
; svEmptyCell : A previous expression returned an empty cell, it may depend on context whether that is to be interpreted as double or string.&lt;br /&gt;
&lt;br /&gt;
The general template to act on each parameter in sequence from right to left is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    // Note: use short instead of BYTE when doing the (nParamCount-- &amp;gt; 0) loop below.&lt;br /&gt;
    short nParamCount = GetByte();&lt;br /&gt;
    if (MustHaveParamCountMin( nParamCount, 1))     // In case your function needs at least one parameter.&lt;br /&gt;
    {&lt;br /&gt;
        size_t nRefInList = 0;&lt;br /&gt;
        while(nParamCount-- &amp;gt; 0)&lt;br /&gt;
        {&lt;br /&gt;
            if (nGlobalError)&lt;br /&gt;
                Pop();&lt;br /&gt;
            else&lt;br /&gt;
            {&lt;br /&gt;
                switch (GetStackType())&lt;br /&gt;
                {&lt;br /&gt;
                    case svDouble :&lt;br /&gt;
                        {&lt;br /&gt;
                            double fVal = PopDouble();&lt;br /&gt;
                            if (!nGlobalError)&lt;br /&gt;
                            {&lt;br /&gt;
                                ...&lt;br /&gt;
                            }&lt;br /&gt;
                        }&lt;br /&gt;
                    break;&lt;br /&gt;
                    case svString :&lt;br /&gt;
                        {&lt;br /&gt;
                            String aStr( PopString());&lt;br /&gt;
                            if (!nGlobalError)&lt;br /&gt;
                            {&lt;br /&gt;
                                ...&lt;br /&gt;
                            }&lt;br /&gt;
                        }&lt;br /&gt;
                    break;&lt;br /&gt;
                    case svSingleRef :&lt;br /&gt;
                        {&lt;br /&gt;
                            ScAddress aAdr;&lt;br /&gt;
                            PopSingleRef( aAdr);&lt;br /&gt;
                            if (!nGlobalError)&lt;br /&gt;
                            {&lt;br /&gt;
                                ScBaseCell* pCell = GetCell( aAdr);&lt;br /&gt;
                                if (HasCellValueData( pCell))&lt;br /&gt;
                                {&lt;br /&gt;
                                    double fVal = GetCellValue( aAdr, pCell);&lt;br /&gt;
                                    if (!nGlobalError)&lt;br /&gt;
                                    {&lt;br /&gt;
                                        ...&lt;br /&gt;
                                    }&lt;br /&gt;
                                }&lt;br /&gt;
                                else&lt;br /&gt;
                                {&lt;br /&gt;
                                    String aStr;&lt;br /&gt;
                                    GetCellString( aStr, pCell);&lt;br /&gt;
                                    if (!nGlobalError)&lt;br /&gt;
                                    {&lt;br /&gt;
                                        ...&lt;br /&gt;
                                    }&lt;br /&gt;
                                }&lt;br /&gt;
                            }&lt;br /&gt;
                        }&lt;br /&gt;
                    break;&lt;br /&gt;
                    case svDoubleRef:&lt;br /&gt;
                    case svRefList:&lt;br /&gt;
                        {&lt;br /&gt;
                            ScRange aRange;&lt;br /&gt;
                            PopDoubleRef( aRange, nParamCount, nRefInList);&lt;br /&gt;
                            if (!nGlobalError)&lt;br /&gt;
                            {&lt;br /&gt;
                                double fVal;&lt;br /&gt;
                                USHORT nErr = 0;&lt;br /&gt;
                                ScValueIterator aValIter( pDok, aRange );&lt;br /&gt;
                                if (aValIter.GetFirst( fVal, nErr))&lt;br /&gt;
                                {&lt;br /&gt;
                                    do&lt;br /&gt;
                                    {&lt;br /&gt;
                                        if (nErr)&lt;br /&gt;
                                            break;&lt;br /&gt;
                                        ...&lt;br /&gt;
                                    } while (aValIter.GetNext( fVal, nErr));&lt;br /&gt;
                                }&lt;br /&gt;
                                SetError( nErr);&lt;br /&gt;
                            }&lt;br /&gt;
                        }&lt;br /&gt;
                    break;&lt;br /&gt;
                    case svMatrix:&lt;br /&gt;
                        {&lt;br /&gt;
                            ScMatrixRef pMat = GetMatrix();&lt;br /&gt;
                            if (pMat)&lt;br /&gt;
                            {&lt;br /&gt;
                                ...&lt;br /&gt;
                            }&lt;br /&gt;
                            // else: GetMatrix did set errIllegalParameter&lt;br /&gt;
                        }&lt;br /&gt;
                    break;&lt;br /&gt;
                    default:&lt;br /&gt;
                        PopError();&lt;br /&gt;
                        SetError( errIllegalParameter);&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        Push...(...);  // Don&amp;#039;t forget to push a result ;-)&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Of course your function may require specific treatment of parameters depending&lt;br /&gt;
on parameter types of other parameters, or bail out if a parameter type does&lt;br /&gt;
not match an expected type, this template is meant as guidance only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== sc/source/core/tool/parclass.cxx ====&lt;br /&gt;
&lt;br /&gt;
Describes how parameters are to be treated if the function is used in an array&lt;br /&gt;
context expression, AKA array formula, where cell range references may be&lt;br /&gt;
treated differently from non-array context. If the function does not accept&lt;br /&gt;
other than scalar arguments, nothing has to be done here and the function does&lt;br /&gt;
not need an entry. Else the type of each parameter has to be set to one of:&lt;br /&gt;
&lt;br /&gt;
; Value : Function expects a single scalar value.&lt;br /&gt;
; Reference : A cell range reference is passed as reference and not converted to array.&lt;br /&gt;
; Array : In array context a cell range reference is converted to array.&lt;br /&gt;
; ForceArray : A cell range reference is always converted to an array and the ForceArray context is propagated to all functions and operators in this parameter&amp;#039;s expression.&lt;br /&gt;
; ReferenceOrForceArray : A cell range reference is not converted to an array, but a ForceArray context is propagated to all functions and operators in this parameter&amp;#039;s expression. Only a small number of functions, whose parameter(s) the ODF standard defines as &amp;quot;ForceArray Reference|Array&amp;quot;, use this type. As of ODF 1.3, that list of functions is only HLOOKUP, LOOKUP, MATCH, and VLOOKUP. Other functions should not need it.&lt;br /&gt;
&lt;br /&gt;
For a more detailed description of these types please read the comments for&lt;br /&gt;
&amp;lt;tt&amp;gt;ScParameterClassification::Type&amp;lt;/tt&amp;gt; in&lt;br /&gt;
&amp;lt;tt&amp;gt;sc/source/core/inc/parclass.hxx&amp;lt;/tt&amp;gt;. Ask on the dev@sc mailing list if in&lt;br /&gt;
doubt.&lt;br /&gt;
&lt;br /&gt;
Set the &amp;lt;tt&amp;gt;ScParameterClassification::CommonData.bRepeatLast&amp;lt;/tt&amp;gt; member&lt;br /&gt;
variable to &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if the function accepts multiple parameters that&lt;br /&gt;
are of the same type as the last one specified, e.g. for SUM() that accepts&lt;br /&gt;
multiple &amp;#039;&amp;#039;Reference&amp;#039;&amp;#039; parameters. If the function does not accept multiple&lt;br /&gt;
parameters of the same type, set the value to &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Microsoft Excel&amp;lt;sup&amp;gt;&amp;amp;reg;&amp;lt;/sup&amp;gt; import and export ==&lt;br /&gt;
&lt;br /&gt;
If the new function is also supported by Microsoft Excel&amp;lt;sup&amp;gt;&amp;amp;reg;&amp;lt;/sup&amp;gt;, for import/export it has to be added to the filter code as well. OpenOffice.org supports various versions of the file format used by Excel.&lt;br /&gt;
&lt;br /&gt;
* Currently, import and export of the old binary formats (file extension &amp;quot;.xls&amp;quot;, internal names &amp;quot;BIFF2&amp;quot; for Excel 2.x, &amp;quot;BIFF3&amp;quot; for Excel 3.0, &amp;quot;BIFF4&amp;quot; for Excel 4.0, &amp;quot;BIFF5&amp;quot; for Excel 5.0 and Excel 95, and &amp;quot;BIFF8&amp;quot; for Excel 97-2003) are implemented in the &amp;lt;tt&amp;gt;sc&amp;lt;/tt&amp;gt; code module in the directory &amp;lt;tt&amp;gt;sc/source/filter/excel&amp;lt;/tt&amp;gt;. While the import filters support all BIFF versions, there are export filters for BIFF5 and BIFF8 only.&lt;br /&gt;
&lt;br /&gt;
* Import of the new Office Open XML formats (file extensions &amp;quot;.xlsx&amp;quot; and &amp;quot;.xlsm&amp;quot; used by Excel 2007 and later, internal name &amp;quot;OOXML&amp;quot;) and the new binary format (file extension &amp;quot;.xlsb&amp;quot; used by Excel 2007 and later, internal name &amp;quot;BIFF12&amp;quot;) are implemented in the &amp;lt;tt&amp;gt;oox&amp;lt;/tt&amp;gt; code module in the directory &amp;lt;tt&amp;gt;oox/source/xls&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In the future, it is planned to move the old BIFF2-BIFF8 filters to the &amp;lt;tt&amp;gt;oox&amp;lt;/tt&amp;gt; code module too, to be able to share more source code for all filters. The import of functions and formulas will take benefit from that too.&lt;br /&gt;
&lt;br /&gt;
=== Old binary file formats (BIFF2-BIFF8) ===&lt;br /&gt;
&lt;br /&gt;
==== Overview ====&lt;br /&gt;
&lt;br /&gt;
Import and export of BIFF formulas is spread over a number of files in the &amp;lt;tt&amp;gt;sc&amp;lt;/tt&amp;gt; code module.&lt;br /&gt;
&lt;br /&gt;
* Source code used by the import and export filters is located in the files &amp;lt;tt&amp;gt;sc/source/filter/inc/xlformula.hxx&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;sc/source/filter/excel/xlformula.cxx&amp;lt;/tt&amp;gt;. The cxx file contains the most important detail for functions: the &amp;#039;&amp;#039;function tables&amp;#039;&amp;#039;, which will be described in detail below.&lt;br /&gt;
&lt;br /&gt;
* The source code to read formulas from BIFF is located in &amp;lt;tt&amp;gt;sc/source/filter/inc/excform.hxx&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;sc/source/filter/excel/excform.cxx&amp;lt;/tt&amp;gt; (for BIFF2-BIFF5), and &amp;lt;tt&amp;gt;sc/source/filter/excel/excform8.cxx&amp;lt;/tt&amp;gt; (additional code for BIFF8). Note that these source files have not been touched seriously for more than a decade, so the code quality might not be very high.&lt;br /&gt;
&lt;br /&gt;
* The source code to write formulas to BIFF is located in &amp;lt;tt&amp;gt;sc/source/filter/inc/xeformula.hxx&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;sc/source/filter/excel/xeformula.cxx&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
It is important to know the BIFF version the function has been added to. Some functions are not supported by very old versions of Excel, and some functions even change the number of supported parameters between BIFF versions.&lt;br /&gt;
&lt;br /&gt;
==== Basics - function tables ====&lt;br /&gt;
&lt;br /&gt;
The file &amp;lt;tt&amp;gt;sc/source/filter/excel/xlformula.cxx&amp;lt;/tt&amp;gt; contains a function table for each BIFF version, and an additional table for functions unknown to Excel. Every line in these tables is basically a structure of type &amp;lt;tt&amp;gt;XclFunctionInfo&amp;lt;/tt&amp;gt; as defined in &amp;lt;tt&amp;gt;sc/source/filter/inc/xlformula.hxx&amp;lt;/tt&amp;gt; and describes a single spreadsheet function. If a function description is added in a table for a specific BIFF version, it will be used for all newer BIFF versions too, there is no need to repeat the function description in the following tables (unless the function changes somehow in a newer BIFF version, this will be discussed in the next chapter).&lt;br /&gt;
&lt;br /&gt;
We will continue to take a look at our example function &amp;#039;&amp;#039;&amp;#039;MYFUNC&amp;#039;&amp;#039;&amp;#039;. We will assume that this function has been introduced in BIFF3. Furthermore, we will assume that the function is built-in in Excel and has the &amp;#039;&amp;#039;&amp;#039;BIFF function index&amp;#039;&amp;#039;&amp;#039; 200. The BIFF function index is the counterpart of Calc&amp;#039;s function op-code used to identify the function in the binary file format. Later on this page, handling of add-in functions (which do not have a specific function index) will be described too.&lt;br /&gt;
&lt;br /&gt;
First, we have to add a new line in the function table for BIFF3, called &amp;lt;tt&amp;gt;saFuncTable_3&amp;lt;/tt&amp;gt;. By convention, the tables are sorted by BIFF function index (second column in the tables), here we should use the appropriate position for our index 200.&lt;br /&gt;
&lt;br /&gt;
; Op-code&lt;br /&gt;
The first entry in the function description is Calc&amp;#039;s op-code of the function, which is &amp;lt;tt&amp;gt;ocMyFunc&amp;lt;/tt&amp;gt; here:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { ocMyFunc,&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; BIFF function index&lt;br /&gt;
The second entry in the function description is the BIFF function index:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { ocMyFunc, 200,&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Minimum parameter count&lt;br /&gt;
The third entry in the function description is the minimum parameter count of the function. &amp;#039;&amp;#039;&amp;#039;MYFUNC&amp;#039;&amp;#039;&amp;#039; expects at least one parameter:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { ocMyFunc, 200, 1,&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Maximum parameter count&lt;br /&gt;
The fourth entry in the function description is the maximum parameter count of the function. &amp;#039;&amp;#039;&amp;#039;MYFUNC&amp;#039;&amp;#039;&amp;#039; expects at most two parameters:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { ocMyFunc, 200, 1, 2,&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Return type&lt;br /&gt;
The fifth entry in the function description is the type of the value the function returns. Usually, a function returns a single value (scalar), which might be a number or a string. But a few functions return an array of values (e.g. the function &amp;#039;&amp;#039;&amp;#039;MTRANS&amp;#039;&amp;#039;&amp;#039; that transposes a matrix), or a cell range address (e.g. the function &amp;#039;&amp;#039;&amp;#039;INDIRECT&amp;#039;&amp;#039;&amp;#039; that converts a string to a range address). Allowed values for this entry are &amp;lt;tt&amp;gt;V&amp;lt;/tt&amp;gt; for scalar values, &amp;lt;tt&amp;gt;A&amp;lt;/tt&amp;gt; for arrays, and &amp;lt;tt&amp;gt;R&amp;lt;/tt&amp;gt; for range addresses (references). &amp;#039;&amp;#039;&amp;#039;MYFUNC&amp;#039;&amp;#039;&amp;#039; returns a scalar value, thus we have to add the &amp;lt;tt&amp;gt;V&amp;lt;/tt&amp;gt; type:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { ocMyFunc, 200, 1, 2, V,&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Parameter types&lt;br /&gt;
The sixth entry in the function description is a &amp;#039;&amp;#039;C array&amp;#039;&amp;#039; describing the type of all function parameters. This is the most complicated part of the function description, as sometimes the parameter type is not obvious. Simple functions taking scalar values usually will have parameters of type &amp;lt;tt&amp;gt;VR&amp;lt;/tt&amp;gt; which is short for &amp;quot;value/repeated&amp;quot;. See the inline documentation of the structure &amp;lt;tt&amp;gt;XclFuncParamInfo&amp;lt;/tt&amp;gt; in the file &amp;lt;tt&amp;gt;sc/source/filter/inc/xlformula.hxx&amp;lt;/tt&amp;gt; for more details. Our function takes two scalar value parameter:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { ocMyFunc, 200, 1, 2, V, { VR, VR },&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Additional flags&lt;br /&gt;
The seventh entry in the function description contains additional flags that control the behaviour of the formula filters. Later on, these flags will be described. Our function does not need any special behaviour:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { ocMyFunc, 200, 1, 2, V, { VR, VR }, 0,&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Alternative name&lt;br /&gt;
The eighth entry in the function description is a &amp;#039;&amp;#039;C string&amp;#039;&amp;#039; specifying an alternative function name to be used in BIFF for add-in functions. If not used, it can be set to null:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { ocMyFunc, 200, 1, 2, V, { VR, VR }, 0, 0 },&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That&amp;#039;s it. The function will now be imported correctly from BIFF3-BIFF8 files and exported to BIFF5 and BIFF8 files. As an optimization or simplification, it is allowed to leave out the parameter type of trailing parameters, if they are equal to the type of their predecessor. In our case, we can write the parameter list as &amp;lt;tt&amp;gt;{ VR }&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { ocMyFunc, 200, 1, 2, V, { VR }, 0, 0 },&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is especially useful for functions that take more arguments, e.g. the function &amp;#039;&amp;#039;&amp;#039;REPLACE&amp;#039;&amp;#039;&amp;#039; that takes 4 parameters of type &amp;lt;tt&amp;gt;VR&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { ocReplace, 119, 4, 4, V, { VR }, 0, 0 },&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Advanced - function tables and filter source code extensions ====&lt;br /&gt;
&lt;br /&gt;
There are a number of special cases to be aware of. The following section describes them in detail and gives examples of related existing functions. If they do not apply to your new function, just go ahead to the next chapter &amp;#039;&amp;#039;New file formats (OOXML and BIFF12)&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
; Maximum parameter count&lt;br /&gt;
A few functions allow to pass the maximum number of supported parameters, which is 30 in the BIFF2-BIFF8 file formats. There is a placeholder &amp;lt;tt&amp;gt;MX&amp;lt;/tt&amp;gt; that can be used for the &amp;#039;&amp;#039;maximum parameter count&amp;#039;&amp;#039; entry, e.g. for the &amp;#039;&amp;#039;&amp;#039;SUM&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;CHOOSE&amp;#039;&amp;#039;&amp;#039; function. Note the short parameter type lists. The entry &amp;lt;tt&amp;gt;{ RX }&amp;lt;/tt&amp;gt; means that all 30 parameters are of type &amp;lt;tt&amp;gt;RX&amp;lt;/tt&amp;gt;, the entry &amp;lt;tt&amp;gt;{ VO, RO }&amp;lt;/tt&amp;gt; means that the first parameter is of type &amp;lt;tt&amp;gt;VO&amp;lt;/tt&amp;gt;, and that &amp;#039;&amp;#039;all&amp;#039;&amp;#039; following parameters starting from second are of type &amp;lt;tt&amp;gt;RO&amp;lt;/tt&amp;gt;. The &amp;lt;tt&amp;gt;MX&amp;lt;/tt&amp;gt; placeholder becomes more important in the OOXML function tables (described below) where the maximum parameter count is not fixed to 30 anymore, but changes to 255 in OOXML and BIFF12 files.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { ocSum,     4, 0, MX, V, { RX },     0, 0 },&lt;br /&gt;
    { ocChose, 100, 2, MX, R, { VO, RO }, 0, 0 },&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Functions without parameters&lt;br /&gt;
A few functions do not expect any parameters, e.g. the functions &amp;#039;&amp;#039;&amp;#039;TRUE&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;FALSE&amp;#039;&amp;#039;&amp;#039;, and &amp;#039;&amp;#039;&amp;#039;PI&amp;#039;&amp;#039;&amp;#039;. In this case, the parameter type list can be left empty.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { ocPi, 19, 0, 0, V, {}, 0, 0 },&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Volatile functions&lt;br /&gt;
If the result of a function may change on every evaluation of the function, the function has to be marked as &amp;#039;&amp;#039;volatile&amp;#039;&amp;#039;. For example, the functions &amp;#039;&amp;#039;&amp;#039;NOW&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;TODAY&amp;#039;&amp;#039;&amp;#039;, and &amp;#039;&amp;#039;&amp;#039;RANDOM&amp;#039;&amp;#039;&amp;#039; are volatile. To mark a volatile function, the flag &amp;lt;tt&amp;gt;EXC_FUNCFLAG_VOLATILE&amp;lt;/tt&amp;gt; has to be passed in the seventh entry.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { ocRandom, 63, 0, 0, V, {}, EXC_FUNCFLAG_VOLATILE, 0 },&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Restrict to import&lt;br /&gt;
Sometimes it is needed to restrict a function description to the import filter (hide it from the export filter). For that, the flag &amp;lt;tt&amp;gt;EXC_FUNCFLAG_IMPORTONLY&amp;lt;/tt&amp;gt; can be used. For example, in Excel there exist the functions &amp;#039;&amp;#039;&amp;#039;DOLLAR&amp;#039;&amp;#039;&amp;#039; (BIFF index 13) and &amp;#039;&amp;#039;&amp;#039;USDOLLAR&amp;#039;&amp;#039;&amp;#039; (BIFF index 204). These functions behave equally (as far as we know) and are both mapped to the ODF function &amp;#039;&amp;#039;&amp;#039;DOLLAR&amp;#039;&amp;#039;&amp;#039; with the op-code &amp;lt;tt&amp;gt;ocCurrency&amp;lt;/tt&amp;gt;. To prevent confusion in the export filter, the entry for the function &amp;#039;&amp;#039;&amp;#039;DOLLAR&amp;#039;&amp;#039;&amp;#039; is not marked (visible in import and export filters), but the entry for the function &amp;#039;&amp;#039;&amp;#039;USDOLLAR&amp;#039;&amp;#039;&amp;#039; is marked as import-only. This way, the export filter will always write the op-code &amp;lt;tt&amp;gt;ocCurrency&amp;lt;/tt&amp;gt; as BIFF function &amp;#039;&amp;#039;&amp;#039;DOLLAR&amp;#039;&amp;#039;&amp;#039; with function index 13.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { ocCurrency,  13, 1, 2, V, { VR }, 0, 0 },&lt;br /&gt;
    { ocCurrency, 204, 1, 2, V, { VR }, EXC_FUNCFLAG_IMPORTONLY, 0 },&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Restrict to export&lt;br /&gt;
It is also possible to restrict a function description to the export filter (hide it from the import filter) by using the flag &amp;lt;tt&amp;gt;EXC_FUNCFLAG_EXPORTONLY&amp;lt;/tt&amp;gt;. Examples will be discussed below.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { ocExternal, 255, 1, MX, R, { RO_E, RO }, EXC_FUNCFLAG_EXPORTONLY, 0 },&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Calc-only function parameters&lt;br /&gt;
A few functions accept more parameters in Calc than in Excel. For example, the functions &amp;#039;&amp;#039;&amp;#039;FLOOR&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;CEILING&amp;#039;&amp;#039;&amp;#039; (introduced in BIFF4) are restricted to two parameters in Excel, but Calc supports a third parameters. These parameters have to be marked with the parameter type &amp;lt;tt&amp;gt;C&amp;lt;/tt&amp;gt;. The import filter may react on this parameter type and add a default value for the parameter (e.g. for &amp;#039;&amp;#039;&amp;#039;FLOOR&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;CEILING&amp;#039;&amp;#039;&amp;#039; it is needed to add the value 1 to get the same behaviour as in Excel, see &amp;lt;tt&amp;gt;ExcelToSc::DoMulArgs()&amp;lt;/tt&amp;gt; in &amp;lt;tt&amp;gt;sc/source/filter/excel/excform.cxx&amp;lt;/tt&amp;gt;). The export filter will skip the parameter instead of producing an error for the entire function (e.g. the formula &amp;lt;tt&amp;gt;=FLOOR(1;1;1)&amp;lt;/tt&amp;gt; will be exported as &amp;lt;tt&amp;gt;=FLOOR(1;1)&amp;lt;/tt&amp;gt;).&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { ocFloor, 285, 2, 2, V, { VR, VR, C }, 0, 0 },&lt;br /&gt;
    { ocCeil,  288, 2, 2, V, { VR, VR, C }, 0, 0 },&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Changed parameter count in later BIFF version&lt;br /&gt;
If a BIFF version extends a function of a former BIFF version with new parameters, the respective function table needs to repeat the function description with the changed settings. For example, the function &amp;#039;&amp;#039;&amp;#039;WEEKDAY&amp;#039;&amp;#039;&amp;#039; (op-code &amp;lt;tt&amp;gt;ocGetDayOfWeek&amp;lt;/tt&amp;gt;) has been introduced in BIFF2 with only one parameter. In BIFF5, a second optional parameter has been added, which is supported by Calc too. In consequence, the BIFF2 function table contains a function description for this function with a maximum parameter count of 1, which will be used in the following BIFF versions too. The second parameter is marked as &amp;#039;&amp;#039;Calc-only&amp;#039;&amp;#039;. The BIFF5 function table will contain a new function description with the new maximum parameter count of 2.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    // BIFF2 function table:&lt;br /&gt;
    { ocGetDayOfWeek, 70, 1, 1, V, { VR, C }, 0, 0 },&lt;br /&gt;
&lt;br /&gt;
    // BIFF5 function table, second optional parameter with type &amp;#039;VR&amp;#039; added&lt;br /&gt;
    { ocGetDayOfWeek, 70, 1, 2, V, { VR }, 0, 0 },&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Excel-only function parameters&lt;br /&gt;
A few functions accept more parameters in Excel than in Calc. For example, the function &amp;#039;&amp;#039;&amp;#039;PERCENTRANK&amp;#039;&amp;#039;&amp;#039; accepts an optional third parameter in Excel, and the function &amp;#039;&amp;#039;&amp;#039;EXTERN.CALL&amp;#039;&amp;#039;&amp;#039; used internally by Excel for add-in function calls needs a hidden leading parameter containing the actual function name (more details below). These parameters have to be marked by appending &amp;lt;tt&amp;gt;_E&amp;lt;/tt&amp;gt; to the actual parameter type, e.g. &amp;lt;tt&amp;gt;VR_E&amp;lt;/tt&amp;gt;. On import, these parameters will be ignored, or (in case of the function &amp;#039;&amp;#039;&amp;#039;EXTERN.CALL&amp;#039;&amp;#039;&amp;#039;) evaluated internally. On export, the filter has to insert an appropriate value for the parameter if required, see &amp;lt;tt&amp;gt;XclExpFmlaCompImpl::AppendDefaultParam()&amp;lt;/tt&amp;gt; in &amp;lt;tt&amp;gt;sc/source/filter/excel/xeformula.cxx&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { ocPercentrank, 329, 2,  3, V, { RX, VR, VR_E }, 0, 0 },&lt;br /&gt;
    { ocExternal,    255, 1, MX, R, { RO_E, RO }, EXC_FUNCFLAG_EXPORTONLY, 0 },&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Simulate Calc-only functions&lt;br /&gt;
A few functions are not supported by Excel, but the export filter may simulate them easily by using a similar functions. For example, the cotangent functions &amp;#039;&amp;#039;&amp;#039;COT&amp;#039;&amp;#039;&amp;#039; (cotangent), &amp;#039;&amp;#039;&amp;#039;ACOT&amp;#039;&amp;#039;&amp;#039; (arcos cotangent), &amp;#039;&amp;#039;&amp;#039;COTH&amp;#039;&amp;#039;&amp;#039; (cotangent hyperbolicus), and &amp;#039;&amp;#039;&amp;#039;ACOTH&amp;#039;&amp;#039;&amp;#039; (arcus cotangent hyperbolicus) do not exist in Excel, but &amp;lt;tt&amp;gt;COT(x)&amp;lt;/tt&amp;gt; can be written as &amp;lt;tt&amp;gt;1/TAN(x)&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;ACOT(x)&amp;lt;/tt&amp;gt; can be written as &amp;lt;tt&amp;gt;PI/2-ATAN(x)&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;COTH(x)&amp;lt;/tt&amp;gt; can be written as &amp;lt;tt&amp;gt;1/TANH(x)&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;ACOTH(x)&amp;lt;/tt&amp;gt; can be written as &amp;lt;tt&amp;gt;ATANH(1/x)&amp;lt;/tt&amp;gt;. To do that, some more work has to be done in the export filter in addition to the function description. In the following, handling of the functions &amp;#039;&amp;#039;&amp;#039;COT&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;ACOTH&amp;#039;&amp;#039;&amp;#039; will be discussed. First, we add function descriptions to the function table, containing the BIFF funtion index of the function used to simulate our new function (&amp;#039;&amp;#039;&amp;#039;TAN&amp;#039;&amp;#039;&amp;#039; with BIFF index 17 for &amp;#039;&amp;#039;&amp;#039;COT&amp;#039;&amp;#039;&amp;#039;, and &amp;#039;&amp;#039;&amp;#039;ATANH&amp;#039;&amp;#039;&amp;#039; with BIFF index 234 for &amp;#039;&amp;#039;&amp;#039;ACOTH&amp;#039;&amp;#039;&amp;#039;). The function will be marked as &amp;#039;&amp;#039;export-only&amp;#039;&amp;#039;, so that the import filter will ignore these function descriptions:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { ocTan,        17, 1, 1, V, { VR }, 0, 0 },&lt;br /&gt;
    { ocCot,        17, 1, 1, V, { VR }, EXC_FUNCFLAG_EXPORTONLY, 0 },&lt;br /&gt;
    { ocArcTanHyp, 234, 1, 1,  V, { VR }, 0, 0 },&lt;br /&gt;
    { ocArcCotHyp, 234, 1, 1,  V, { VR }, EXC_FUNCFLAG_EXPORTONLY, 0 },&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Next, the export filter has to be extended to add the new tokens needed to simulate our function. To be sure to not change the meaning of the entire formula, parentheses have to be inserted appropriately.&lt;br /&gt;
* The term &amp;lt;tt&amp;gt;COT(x)&amp;lt;/tt&amp;gt; has to be replaced with &amp;lt;tt&amp;gt;(1/TAN(x))&amp;lt;/tt&amp;gt;, otherwise e.g. the formula &amp;lt;tt&amp;gt;=2^COT(x)&amp;lt;/tt&amp;gt; will not be evaluated correctly as &amp;lt;tt&amp;gt;=2^(1/TAN(x))&amp;lt;/tt&amp;gt;, but as &amp;lt;tt&amp;gt;=(2^1)/TAN(x)&amp;lt;/tt&amp;gt;.&lt;br /&gt;
* The term &amp;lt;tt&amp;gt;ACOTH(x)&amp;lt;/tt&amp;gt; has to be replaced with &amp;lt;tt&amp;gt;ATANH(1/(x))&amp;lt;/tt&amp;gt;, otherwise e.g. the formula &amp;lt;tt&amp;gt;=ACOTH(1+1)&amp;lt;/tt&amp;gt; will not be evaluated correctly as &amp;lt;tt&amp;gt;=ATANH(1/(1+1))&amp;lt;/tt&amp;gt;, but as &amp;lt;tt&amp;gt;=ATANH((1/1)+1)&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Formulas are stored in &amp;#039;&amp;#039;reverse polish notation&amp;#039;&amp;#039; (RPN). The term &amp;lt;tt&amp;gt;(1/TAN(x))&amp;lt;/tt&amp;gt; will be stored as token sequence &amp;quot;&amp;lt;tt&amp;gt;1,x,TAN,DIV,()&amp;lt;/tt&amp;gt;&amp;quot; where &amp;lt;tt&amp;gt;x&amp;lt;/tt&amp;gt; can be an arbitrarily complex expression. The term &amp;lt;tt&amp;gt;ATANH(1/(x))&amp;lt;/tt&amp;gt; will be stored as &amp;quot;&amp;lt;tt&amp;gt;1,x,(),DIV,ATANH&amp;lt;/tt&amp;gt;&amp;quot; respectively. Currently, the export filter will already find the new function descriptions but would just write the specified BIFF function index (e.g. &amp;lt;tt&amp;gt;TAN(x)&amp;lt;/tt&amp;gt; for &amp;lt;tt&amp;gt;COT(x)&amp;lt;/tt&amp;gt;). The new tokens have to be added manually in the export filter code. All this is done in the file &amp;lt;tt&amp;gt;sc/source/filter/excel/xeformula.cxx&amp;lt;/tt&amp;gt;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;COT&amp;#039;&amp;#039;&amp;#039;: In the RPN array &amp;quot;&amp;lt;tt&amp;gt;1,x,TAN,DIV,()&amp;lt;/tt&amp;gt;&amp;quot; (representing the function &amp;lt;tt&amp;gt;COT(x)&amp;lt;/tt&amp;gt;), the token &amp;lt;tt&amp;gt;1&amp;lt;/tt&amp;gt; has to be inserted in front of the entire function (consisting of the tokens &amp;quot;&amp;lt;tt&amp;gt;x,TAN&amp;lt;/tt&amp;gt;&amp;quot;). To do this, a &amp;lt;tt&amp;gt;case&amp;lt;/tt&amp;gt; will be inserted in the method &amp;lt;tt&amp;gt;XclExpFmlaCompImpl::PrepareFunction()&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
void XclExpFmlaCompImpl::PrepareFunction( XclExpFuncData&amp;amp; rFuncData )&lt;br /&gt;
{&lt;br /&gt;
    switch( rFuncData.GetOpCode() )&lt;br /&gt;
    {&lt;br /&gt;
// ...&lt;br /&gt;
        case ocCot:&lt;br /&gt;
            AppendIntToken( 1 );&lt;br /&gt;
        break;&lt;br /&gt;
// ...&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* The division operator and the parentheses have to be appended to the entire function. This is done in the method &amp;lt;tt&amp;gt;XclExpFmlaCompImpl::FinishFunction()&amp;lt;/tt&amp;gt;. The boolean value &amp;lt;tt&amp;gt;true&amp;lt;/tt&amp;gt; in the call of &amp;lt;tt&amp;gt;AppendBinaryOperatorToken()&amp;lt;/tt&amp;gt; specifies that the operator works on scalar values (in difference to e.g. the range operator &amp;quot;:&amp;quot;).&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
void XclExpFmlaCompImpl::FinishFunction( XclExpFuncData&amp;amp; rFuncData, sal_uInt8 nCloseSpaces )&lt;br /&gt;
{&lt;br /&gt;
// ...&lt;br /&gt;
        switch( rFuncData.GetOpCode() )&lt;br /&gt;
        {&lt;br /&gt;
// ...&lt;br /&gt;
            case ocCot:&lt;br /&gt;
                AppendBinaryOperatorToken( EXC_TOKID_DIV, true );&lt;br /&gt;
                AppendParenToken();&lt;br /&gt;
            break;&lt;br /&gt;
// ...&lt;br /&gt;
        }&lt;br /&gt;
// ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ACOTH&amp;#039;&amp;#039;&amp;#039;: In the token array &amp;quot;&amp;lt;tt&amp;gt;1,x,(),DIV,ATANH&amp;lt;/tt&amp;gt;&amp;quot; (representing the function &amp;lt;tt&amp;gt;ACOTH(x)&amp;lt;/tt&amp;gt;), the token &amp;lt;tt&amp;gt;1&amp;lt;/tt&amp;gt; has to be inserted in front of the function parameter &amp;lt;tt&amp;gt;x&amp;lt;/tt&amp;gt; (but not in front of the entire function). This is done in the method &amp;lt;tt&amp;gt;XclExpFmlaCompImpl::PrepareParam()&amp;lt;/tt&amp;gt;. The variable &amp;lt;tt&amp;gt;nParamIdx&amp;lt;/tt&amp;gt; contains the zero-based index of the current parameter:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
void XclExpFmlaCompImpl::PrepareParam( XclExpFuncData&amp;amp; rFuncData )&lt;br /&gt;
{&lt;br /&gt;
    sal_uInt8 nParamIdx = rFuncData.GetParamCount();&lt;br /&gt;
    switch( rFuncData.GetOpCode() )&lt;br /&gt;
    {&lt;br /&gt;
// ...&lt;br /&gt;
        case ocArcCotHyp:&lt;br /&gt;
            if( nParamIdx == 0 )&lt;br /&gt;
                AppendIntToken( 1 );&lt;br /&gt;
        break;&lt;br /&gt;
// ...&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* The parentheses and the division operator have to be appended to the function parameter &amp;lt;tt&amp;gt;x&amp;lt;/tt&amp;gt;. This is done in the method &amp;lt;tt&amp;gt;XclExpFmlaCompImpl::FinishParam()&amp;lt;/tt&amp;gt;. Again, the variable &amp;lt;tt&amp;gt;nParamIdx&amp;lt;/tt&amp;gt; contains the zero-based index of the current parameter:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
void XclExpFmlaCompImpl::FinishParam( XclExpFuncData&amp;amp; rFuncData )&lt;br /&gt;
{&lt;br /&gt;
//...&lt;br /&gt;
    sal_uInt8 nParamIdx = rFuncData.GetParamCount() - 1;&lt;br /&gt;
    switch( rFuncData.GetOpCode() )&lt;br /&gt;
    {&lt;br /&gt;
// ...&lt;br /&gt;
        case ocArcCotHyp:&lt;br /&gt;
            if( nParamIdx == 0 )&lt;br /&gt;
            {&lt;br /&gt;
                AppendParenToken();&lt;br /&gt;
                AppendBinaryOperatorToken( EXC_TOKID_DIV, true );&lt;br /&gt;
            }&lt;br /&gt;
        break;&lt;br /&gt;
// ...&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Functions stored as call to an internal defined name&lt;br /&gt;
Functions appearing as built-in function in Excel might in fact be stored as a call to an &amp;#039;&amp;#039;internal defined name&amp;#039;&amp;#039;. For example, the function &amp;#039;&amp;#039;&amp;#039;BAHTTEXT&amp;#039;&amp;#039;&amp;#039; is not stored with a BIFF function index, but internally as &amp;lt;tt&amp;gt;EXTERN.CALL(&amp;quot;_xlfn.BAHTTEXT&amp;quot;,parameter)&amp;lt;/tt&amp;gt; where &amp;lt;tt&amp;gt;&amp;quot;_xlfn.BAHTTEXT&amp;quot;&amp;lt;/tt&amp;gt; is a hidden parameter and contains a reference to the internal &amp;#039;&amp;#039;defined name&amp;#039;&amp;#039; (also known as &amp;#039;&amp;#039;named range&amp;#039;&amp;#039;) named &amp;quot;_xlfn.BAHTTEXT&amp;quot;. This defined name is flagged to be a function call instead of a regular named range. If a formula calls a VBA macro, the function call is stored the same way using a dedicated defined name containing the name of the VBA macro. To add support for the &amp;#039;&amp;#039;&amp;#039;BAHTTEXT&amp;#039;&amp;#039;&amp;#039; function, the following function description can be used. It has to refer to the function &amp;#039;&amp;#039;&amp;#039;EXTERN.CALL&amp;#039;&amp;#039;&amp;#039; with the BIFF index 255, and has to specify the parameter type for the first hidden parameter explicitly (type &amp;lt;tt&amp;gt;RO_E&amp;lt;/tt&amp;gt;). Note that &amp;#039;&amp;#039;all&amp;#039;&amp;#039; parameters of the function &amp;#039;&amp;#039;&amp;#039;EXTERN.CALL&amp;#039;&amp;#039;&amp;#039; have to be of type &amp;lt;tt&amp;gt;RO&amp;lt;/tt&amp;gt;. The preprocessor macro &amp;lt;tt&amp;gt;EXC_FUNCNAME&amp;lt;/tt&amp;gt; adds the &amp;quot;_xlfn.&amp;quot; prefix to the function name:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { ocBahtText, 255, 2, 2, V, { RO_E, RO }, 0, EXC_FUNCNAME( &amp;quot;BAHTTEXT&amp;quot; ) },&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Actually, the function &amp;#039;&amp;#039;&amp;#039;BAHTTEXT&amp;#039;&amp;#039;&amp;#039; can also be stored as built-in function with the BIFF function index 368. To be able to handle this case too, the function descriptions can be changed to:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { ocBahtText, 368, 1, 1, V, { VR },       EXC_FUNCFLAG_IMPORTONLY, EXC_FUNCNAME( &amp;quot;BAHTTEXT&amp;quot; ) },&lt;br /&gt;
    { ocBahtText, 255, 2, 2, V, { RO_E, RO }, EXC_FUNCFLAG_EXPORTONLY, EXC_FUNCNAME( &amp;quot;BAHTTEXT&amp;quot; ) },&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The description for the export filter still has to refer to the function &amp;#039;&amp;#039;&amp;#039;EXTERN.CALL&amp;#039;&amp;#039;&amp;#039;. When loading a file with the &amp;#039;&amp;#039;&amp;#039;BAHTTEXT&amp;#039;&amp;#039;&amp;#039; function, internally the import filter will encounter the function &amp;#039;&amp;#039;&amp;#039;EXTERN.CALL&amp;#039;&amp;#039;&amp;#039; and will find the (already existing) function description&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { ocExternal, 255, 1, MX, R, { RO_E, RO }, EXC_FUNCFLAG_IMPORTONLY, 0 }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
After reading the first hidden parameter of the function, the filter will find the function name &amp;quot;_xlfn.BAHTTEXT&amp;quot;, will search the function table for a function description containing this name, will find our new description mentioned above, and will finally use the op-code &amp;lt;tt&amp;gt;ocBahttext&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
; Functions from external add-ins&lt;br /&gt;
In Excel, it is possible to call functions that are part of an external add-in. These add-ins are located in a special directory of the Excel installation, called the &amp;#039;&amp;#039;library directory&amp;#039;&amp;#039;. If such a function is built-in in Calc, some conversion has to be done. Currently, the only existing example is the function &amp;#039;&amp;#039;&amp;#039;EUROCONVERT&amp;#039;&amp;#039;&amp;#039; added to Excel with the add-in &amp;#039;&amp;#039;&amp;#039;EUROTOOL&amp;#039;&amp;#039;&amp;#039; (add-in library file &amp;lt;tt&amp;gt;eurotool.xla&amp;lt;/tt&amp;gt;). All add-in functions (also the functions from the &amp;#039;&amp;#039;Analysis&amp;#039;&amp;#039; add-in) are stored using the internal function &amp;#039;&amp;#039;&amp;#039;EXTERN.CALL&amp;#039;&amp;#039;&amp;#039; (see previous section) which will contain a description of the add-in name and function name in its first hidden parameter. Thus, the formula &amp;lt;tt&amp;gt;=EUROCONVERT(1;&amp;quot;DEM&amp;quot;;&amp;quot;EUR&amp;quot;)&amp;lt;/tt&amp;gt; will appear as &amp;lt;tt&amp;gt;=EXTERN.CALL(&amp;quot;EUROTOOL.XLA!EUROCONVERT&amp;quot;;1;&amp;quot;DEM&amp;quot;;&amp;quot;EUR&amp;quot;)&amp;lt;/tt&amp;gt; in the Excel file. First, we need a function description in the BIFF8 function table, using the function &amp;#039;&amp;#039;&amp;#039;EXTERN.CALL&amp;#039;&amp;#039;&amp;#039; again. Again, all parameters of this function have to be of type &amp;lt;tt&amp;gt;RO&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { ocEuroConvert, 255, 4, 6, V, { RO_E, RO }, EXC_FUNCFLAG_EXPORTONLY, &amp;quot;EUROCONVERT&amp;quot; }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The first hidden parameter is a reference to an &amp;#039;&amp;#039;external name&amp;#039;&amp;#039; being part of the description of the external workbook &amp;lt;tt&amp;gt;EUROTOOL.XLA&amp;lt;/tt&amp;gt;. A detailed description would go beyond the scope here. To get an idea, grep the files &amp;lt;tt&amp;gt;sc/source/filter/excel/xilink.cxx&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;sc/source/filter/excel/excform8.cxx&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;sc/source/filter/excel/xelink.cxx&amp;lt;/tt&amp;gt; for &amp;lt;tt&amp;gt;xlExtEuroConvert&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;EXC_SBTYPE_EUROTOOL&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
; Functions not supported by Excel&lt;br /&gt;
The export filter can write functions to the Excel file format even if Excel does not know them. The import filter will restore these functions when loading the file. The function table &amp;lt;tt&amp;gt;saFuncTable_Odf&amp;lt;/tt&amp;gt; contains all functions that will be handled this way. For example, the function &amp;#039;&amp;#039;&amp;#039;BASE&amp;#039;&amp;#039;&amp;#039; will be inserted as following:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    EXC_FUNCENTRY_ODF( ocBase, 2, 3, 0, &amp;quot;BASE&amp;quot; ),&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The preprocessor macro &amp;lt;tt&amp;gt;EXC_FUNCENTRY_ODF&amp;lt;/tt&amp;gt; converts this entry to the appropriate function descriptions (see the definition of the macro above the table). The first entry is the Calc op-code, the second entry is the minimum parameter count, the third entry is the maximum parameter count, the fourth entry will be used for additional flags, and the last entry is the ODF function name.&lt;br /&gt;
&lt;br /&gt;
=== New file formats (OOXML and BIFF12) ===&lt;br /&gt;
&lt;br /&gt;
==== Overview ====&lt;br /&gt;
&lt;br /&gt;
As if that wasn&amp;#039;t enough, nearly the same changes have to be done in the &amp;lt;tt&amp;gt;oox&amp;lt;/tt&amp;gt; code module implementing filters for the [[WikiPedia:Office_Open_XML|Microsoft Office Open XML (OOXML)]] file format and the binary BIFF12 format. As already mentioned, in the future this filter will handle import and export of all Excel file formats including the old BIFF2-BIFF8 formats. Therefore, the function tables have been prepared to contain all information needed to import and export BIFF2-BIFF12 and OOXML files. The following files contain the source code for formula handling:&lt;br /&gt;
* Source code used by the import and export filters is located in the files &amp;lt;tt&amp;gt;oox/inc/oox/xls/formulabase.hxx&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;oox/source/xls/formulabase.cxx&amp;lt;/tt&amp;gt;. The cxx file contains all function tables.&lt;br /&gt;
* The source code for formula import is located in the files &amp;lt;tt&amp;gt;oox/inc/oox/xls/formulaparser.hxx&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;oox/source/xls/formulaparser.cxx&amp;lt;/tt&amp;gt;.&lt;br /&gt;
* Currently, there is no source code for formula export.&lt;br /&gt;
&lt;br /&gt;
==== Function tables ====&lt;br /&gt;
&lt;br /&gt;
The structure of the function tables is similar to the structure of the old function tables in module &amp;lt;tt&amp;gt;sc&amp;lt;/tt&amp;gt; described above. The main difference is, that the filter implementation is based completely on the OpenOffice.org API and therefore does not have access to Calc internals such as the function op-codes. Following a short overview of the entries in a function description. The function descriptions are structures of type &amp;lt;tt&amp;gt;::oox::xls::FunctionData&amp;lt;/tt&amp;gt; defined locally above the tables. But first, an example description for the function &amp;#039;&amp;#039;&amp;#039;SUM&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { &amp;quot;SUM&amp;quot;, &amp;quot;SUM&amp;quot;, 4, 4, 0, MX, V, { RX }, 0 },&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; ODF function name&lt;br /&gt;
The first entry is the function name as defined in OpenFormula. May be null, if not available (functions available in Excel only).&lt;br /&gt;
&lt;br /&gt;
; OOXML function name&lt;br /&gt;
The second entry is the function name as it appears in the OOXML file format. May be null, if not available (functions available in Calc only).&lt;br /&gt;
&lt;br /&gt;
; BIFF12 function index&lt;br /&gt;
The third entry is the function index used in BIFF12 files (file extension &amp;quot;.xlsb&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
; BIFF2-BIFF8 function index&lt;br /&gt;
The fourth entry is the function index used in BIFF2-BIFF8 files (file extension &amp;quot;.xls&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
; Minimum parameter count&lt;br /&gt;
The fifth entry is the minimum number of parameters required by Excel.&lt;br /&gt;
&lt;br /&gt;
; Maximum parameter count&lt;br /&gt;
The sixth entry is the maximum number of parameters allowed in Excel. The constant &amp;lt;tt&amp;gt;MX&amp;lt;/tt&amp;gt; can be used to specify the maximum number allowed by the current file format, which is 30 in BIFF2-BIFF8 and 255 in BIFF12 and OOXML. The filters will find and use the correct maximum value internally.&lt;br /&gt;
&lt;br /&gt;
; Return type&lt;br /&gt;
The seventh entry is the type of the return value. As before, can be &amp;lt;tt&amp;gt;V&amp;lt;/tt&amp;gt; for scalar values, &amp;lt;tt&amp;gt;A&amp;lt;/tt&amp;gt; for arrays of values, or &amp;lt;tt&amp;gt;R&amp;lt;/tt&amp;gt; for cell range addresses (references).&lt;br /&gt;
&lt;br /&gt;
; Parameter types&lt;br /&gt;
The eighth entry is a &amp;#039;&amp;#039;C array&amp;#039;&amp;#039; describing the type of all function parameters. This entry is equal to the arrays from the old BIFF filters described above.&lt;br /&gt;
&lt;br /&gt;
; Additional flags&lt;br /&gt;
The ninth and last entry contains additional flags controlling the behaviour of the filters. The three flags known from the old BIFF filters are available as well as some new flags:&lt;br /&gt;
* &amp;lt;tt&amp;gt;FUNCFLAG_VOLATILE&amp;lt;/tt&amp;gt;: The function result is volatile.&lt;br /&gt;
* &amp;lt;tt&amp;gt;FUNCFLAG_IMPORTONLY&amp;lt;/tt&amp;gt;: The function description is available for the import filters only.&lt;br /&gt;
* &amp;lt;tt&amp;gt;FUNCFLAG_EXPORTONLY&amp;lt;/tt&amp;gt;: The function description is available for the export filters only.&lt;br /&gt;
* &amp;lt;tt&amp;gt;FUNCFLAG_MACROCALL&amp;lt;/tt&amp;gt;: The BIFF filters will handle the function as call to a &amp;#039;&amp;#039;defined name&amp;#039;&amp;#039; (see previous chapter for details; the OOXML name will be prefixed with &amp;quot;_xlfn.&amp;quot;). Has no effect on the OOXML filter.&lt;br /&gt;
* &amp;lt;tt&amp;gt;FUNCFLAG_MACROCALLODF&amp;lt;/tt&amp;gt;: Used to mark functions not available in Excel but in Calc only, to be able to preserve them in a roundtrip scenario.&lt;br /&gt;
* &amp;lt;tt&amp;gt;FUNCFLAG_EXTERNAL&amp;lt;/tt&amp;gt;: Used to mark functions that are stored externally in Calc (with op-code &amp;lt;tt&amp;gt;ocExternal&amp;lt;/tt&amp;gt;). Currently, all functions from the Analysis add-in are marked with this flag.&lt;br /&gt;
* &amp;lt;tt&amp;gt;FUNCFLAG_MACROFUNC&amp;lt;/tt&amp;gt;: The function is a macrosheet function. This kind of functions is not supported in Calc, and is available in Excel macrosheets only (not in regular worksheets).&lt;br /&gt;
* &amp;lt;tt&amp;gt;FUNCFLAG_MACROCMD&amp;lt;/tt&amp;gt;: The function is a macrosheet command. This kind of functions is not supported in Calc, and is available in Excel macrosheets only (not in regular worksheets).&lt;br /&gt;
* &amp;lt;tt&amp;gt;FUNCFLAG_ALWAYSVAR&amp;lt;/tt&amp;gt;: The function is always handled as function with variable number of parameters, even if minimum and maximum number of parameters are equal.&lt;br /&gt;
* &amp;lt;tt&amp;gt;FUNCFLAG_PARAMPAIRS&amp;lt;/tt&amp;gt;: The function repeats the last two parameter types instead of only the last type for additional parameters. This is used e.g. for the function &amp;#039;&amp;#039;&amp;#039;COUNTIFS&amp;#039;&amp;#039;&amp;#039; (added in OOXML/BIFF12) that supports up to 255 parameters and always expects pairs of parameter with types &amp;lt;tt&amp;gt;RO, VR&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== Advanced ====&lt;br /&gt;
&lt;br /&gt;
; Calc-only function parameters&lt;br /&gt;
Parameters marked with the &amp;lt;tt&amp;gt;C&amp;lt;/tt&amp;gt; parameter type are only available in Calc (e.g. the third parameter of the functions &amp;#039;&amp;#039;&amp;#039;FLOOR&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;CEILING&amp;#039;&amp;#039;&amp;#039;). Everytime the import filter encounters such a parameter, it calls the method &amp;lt;tt&amp;gt;FormulaFinalizer::appendCalcOnlyParameter()&amp;lt;/tt&amp;gt; in &amp;lt;tt&amp;gt;oox/source/xls/formulaparser.cxx&amp;lt;/tt&amp;gt; allowing to set a default value for the parameter.&lt;br /&gt;
&lt;br /&gt;
; Add values for optional parameters&lt;br /&gt;
After a function has been imported completely, the method &amp;lt;tt&amp;gt;FormulaFinalizer::appendRequiredParameters()&amp;lt;/tt&amp;gt; will be called allowing to extend the parameter list. This is useful for functions with parameters optional in Excel but required in Calc, e.g. the second parameter of the function &amp;#039;&amp;#039;&amp;#039;WEEKNUM&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
; Add values for empty parameters&lt;br /&gt;
If the import filter encounters an empty parameter, it calls the method &amp;lt;tt&amp;gt;FormulaFinalizer::appendEmptyParameter()&amp;lt;/tt&amp;gt;. The implementation may add a value in case Calc does not support an empty parameter here. Currently, this is used for the function &amp;#039;&amp;#039;&amp;#039;IF&amp;#039;&amp;#039;&amp;#039;. For example, the import filter replaces &amp;lt;tt&amp;gt;=IF(cond;)&amp;lt;/tt&amp;gt; with &amp;lt;tt&amp;gt;=IF(cond;0)&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;=IF(cond;;)&amp;lt;/tt&amp;gt; with &amp;lt;tt&amp;gt;=IF(cond;0;0)&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
; Functions stored as call to an internal defined name &lt;br /&gt;
The function flag &amp;lt;tt&amp;gt;FUNCFLAG_MACROCALL&amp;lt;/tt&amp;gt; is used to mark functions that are stored as call to an internal &amp;#039;&amp;#039;defined name&amp;#039;&amp;#039; (see previous chapter for details). It is still possible to specify an alternative BIFF function index.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { &amp;quot;COM.MICROSOFT.BAHTTEXT&amp;quot;, &amp;quot;BAHTTEXT&amp;quot;, 368, 368, 1, 1, V, { VR }, FUNCFLAG_MACROCALL },&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Functions from the Analysis add-in&lt;br /&gt;
In the old BIFF2-BIFF8 filters, these functions are handled internally and do not need descriptions in the function tables at all. In BIFF12 and OOXML, these functions are stored as internal functions (there is no Analysis add-in anymore in Excel 2007 and later), and therefore get their own BIFF12 function index. Following an example for the description of the Analysis add-in function &amp;#039;&amp;#039;&amp;#039;COMPLEX&amp;#039;&amp;#039;&amp;#039;. Note the constant &amp;lt;tt&amp;gt;NOID&amp;lt;/tt&amp;gt; used for the BIFF2-BIFF8 function index to specify that these formats do not support a BIFF index here. The import filter will find the syntax using the function &amp;#039;&amp;#039;&amp;#039;EXTERN.CALL&amp;#039;&amp;#039;&amp;#039;, and will resolve the function by the specified OOXML function name.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { &amp;quot;COMPLEX&amp;quot;, &amp;quot;COMPLEX&amp;quot;, 411, NOID, 2, 3, V, { RR }, FUNCFLAG_EXTERNAL },&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Functions from external add-ins&lt;br /&gt;
It is possible to call functions that are part of an external add-in. These add-ins are located in a special directory of the Excel installation, called the &amp;#039;&amp;#039;library directory&amp;#039;&amp;#039;. The following function description is for the function &amp;#039;&amp;#039;&amp;#039;EUROCONVERT&amp;#039;&amp;#039;&amp;#039; from the external add-in &amp;#039;&amp;#039;&amp;#039;EUROTOOL&amp;#039;&amp;#039;&amp;#039; which is located either in the file &amp;lt;tt&amp;gt;eurotool.xla&amp;lt;/tt&amp;gt; (Excel 2003 and earlier) or in the file &amp;lt;tt&amp;gt;eurotool.xlam&amp;lt;/tt&amp;gt; (Excel 2007 and later). Every add-in has a corresponding value in the enumeration &amp;lt;tt&amp;gt;FunctionLibraryType&amp;lt;/tt&amp;gt; defined in &amp;lt;tt&amp;gt;oox/inc/oox/xls/formulabase.hxx&amp;lt;/tt&amp;gt;. The macro &amp;lt;tt&amp;gt;FUNCLIB_TO_FUNCFLAGS&amp;lt;/tt&amp;gt; converts this value to the appropriate function flags:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { &amp;quot;EUROCONVERT&amp;quot;, &amp;quot;EUROCONVERT&amp;quot;, NOID, NOID, 3, 5, V, { VR }, FUNCLIB_TO_FUNCFLAGS( FUNCLIB_EUROTOOL ) },&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The function library flag triggers internal code that resolves a reference to the add-in file name. Adding a new add-in is quite easy compared to the old BIFF filters. Assuming the new add-in is called &amp;#039;&amp;#039;&amp;#039;MYADDIN&amp;#039;&amp;#039;&amp;#039; (file name &amp;lt;tt&amp;gt;myaddin.xla&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;myaddin.xlam&amp;lt;/tt&amp;gt;) and contains the function &amp;#039;&amp;#039;&amp;#039;MYADDINFUNC&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* In &amp;lt;tt&amp;gt;oox/inc/oox/xls/formulabase.hxx&amp;lt;/tt&amp;gt;, add a new value to the enumeration &amp;lt;tt&amp;gt;FunctionLibraryType&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
enum FunctionLibraryType&lt;br /&gt;
{&lt;br /&gt;
    FUNCLIB_UNKNOWN,&lt;br /&gt;
    FUNCLIB_EUROTOOL,&lt;br /&gt;
    FUNCLIB_MYADDIN          // &amp;lt;== new enum value&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* In &amp;lt;tt&amp;gt;oox/source/xls/formulabase.cxx&amp;lt;/tt&amp;gt;, add an entry in the method &amp;lt;tt&amp;gt;FunctionProvider::getFuncLibTypeFromLibraryName()&amp;lt;/tt&amp;gt; that converts the passed library file name to a value of the enumeration &amp;lt;tt&amp;gt;FunctionLibraryType&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
FunctionLibraryType FunctionProvider::getFuncLibTypeFromLibraryName( const OUString&amp;amp; rLibraryName ) const&lt;br /&gt;
{&lt;br /&gt;
// ...&lt;br /&gt;
    if( OOX_XLS_IS_LIBNAME( rLibraryName, &amp;quot;EUROTOOL&amp;quot; ) )&lt;br /&gt;
        return FUNCLIB_EUROTOOL;&lt;br /&gt;
    if( OOX_XLS_IS_LIBNAME( rLibraryName, &amp;quot;MYADDIN&amp;quot; ) )    // &amp;lt;== new entry&lt;br /&gt;
        return FUNCLIB_MYADDIN;                            // &amp;lt;==&lt;br /&gt;
// ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* Add a new function description for each function in the add-in. We have only one function:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    { &amp;quot;MYADDINFUNC&amp;quot;, &amp;quot;MYADDINFUNC&amp;quot;, NOID, NOID, 2, 4, V, { VR }, FUNCLIB_TO_FUNCFLAGS( FUNCLIB_MYADDIN ) },&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
That&amp;#039;s all.&lt;br /&gt;
&lt;br /&gt;
; Functions not supported by Excel&lt;br /&gt;
The function table &amp;lt;tt&amp;gt;saFuncTableOdf&amp;lt;/tt&amp;gt; contains all functions that are not supported by Excel. For example, the function &amp;#039;&amp;#039;&amp;#039;BASE&amp;#039;&amp;#039;&amp;#039; will be inserted as following:&lt;br /&gt;
&amp;lt;source lang=cpp&amp;gt;&lt;br /&gt;
    { &amp;quot;BASE&amp;quot;, 0, NOID, NOID, 2, 3, V, { VR }, FUNCFLAG_MACROCALLODF },&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_DCOUNTA_function&amp;diff=258671</id>
		<title>Documentation/How Tos/Calc: DCOUNTA function</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_DCOUNTA_function&amp;diff=258671"/>
		<updated>2024-01-22T16:44:23Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Update DCOUNTA documentation regarding the &amp;quot;field&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/MasterTOC&lt;br /&gt;
|bookid=1234&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|booktitle=&amp;lt;div style=&amp;quot;padding: 8px; font-size: 140%; font-weight: bold; background-color: #9BC0F5;&amp;quot;&amp;gt;CALC FUNCTIONS&amp;lt;/div&amp;gt;&lt;br /&gt;
|ShowParttitle=block&lt;br /&gt;
|parttitle=[[Documentation/How_Tos/Calc:_Database_functions|&amp;lt;div  style=&amp;quot;font-size: 140%;&amp;quot;&amp;gt;Database Functions]]&lt;br /&gt;
|ShowNextPage=block&lt;br /&gt;
|NextPage= Documentation/How_Tos/Calc:_DGET_function&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage= Documentation/How_Tos/Calc:_DCOUNT_function&lt;br /&gt;
|ShowPrevPart=block&lt;br /&gt;
|PrevPart= Documentation/How_Tos/Calc:_Complex_Number_functions&lt;br /&gt;
|ShowNextPart=block&lt;br /&gt;
|NextPart= Documentation/How_Tos/Calc:_Date_%26_Time_functions&lt;br /&gt;
|toccontent= &amp;lt;div style=&amp;quot;padding: 4px; font-size: 130%; font-weight: hidden; background-color:#DCE9FC;&amp;quot;&amp;gt;FUNCTIONS&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[Documentation/How_Tos/Calc:_DCOUNT_function|&amp;lt;div style=&amp;quot;font-size: 120%;&amp;quot;&amp;gt;Dcount]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc:_DCOUNTA_function|&amp;lt;div style=&amp;quot;font-size: 120%; border-style: double; border-color:#778899;&amp;quot;&amp;gt;Dcounta]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc:_DGET_function|&amp;lt;div style=&amp;quot;font-size: 120%;&amp;quot;&amp;gt;Dget]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc:_DMAX_function|&amp;lt;div style=&amp;quot;font-size: 120%;&amp;quot;&amp;gt;Dmax]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc:_DMIN_function|&amp;lt;div style=&amp;quot;font-size: 120%;&amp;quot;&amp;gt;Dmin]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc:_DAVERAGE_function|&amp;lt;div style=&amp;quot;font-size: 120%;&amp;quot;&amp;gt;Daverage]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc:_DPRODUCT_function|&amp;lt;div style=&amp;quot;font-size: 120%;&amp;quot;&amp;gt;Dproduct]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc:_DSTDEV_function|&amp;lt;div style=&amp;quot;font-size: 120%;&amp;quot;&amp;gt;Dstdev]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc:_DSUM_function|&amp;lt;div style=&amp;quot;font-size: 120%;&amp;quot;&amp;gt;Dsum]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc:_DVAR_function|&amp;lt;div style=&amp;quot;font-size: 120%;&amp;quot;&amp;gt;Dvar]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc:_DVARP_function|&amp;lt;div style=&amp;quot;font-size: 120%;&amp;quot;&amp;gt;Dvarp]]&lt;br /&gt;
}}__TOC__&lt;br /&gt;
&lt;br /&gt;
== DCOUNTA  ==&lt;br /&gt;
Counts the non-empty cells in a column of a Calc &amp;#039;database&amp;#039; table, in rows which meet specified criteria.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Syntax: ===&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;DCOUNTA(database_table; field; criteria_table)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;database_table&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is a range defining the data to be processed.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;field&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is an optional column, whose alphanumeric (ie. non-empty) cells are counted if their row matches the criteria. It may be a column number (1 is the first column of the database table, 2 is the second ...), or a column header (enclosed in quotation marks ””), or a cell referring to a column header. If absent or 0, then the cell contents are ignored, and all rows matching the criteria are counted.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;criteria_table&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is a range containing criteria, to select which rows of the &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;database_table&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; to count.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The * [[Documentation/How_Tos/Calc: Database functions#Overview|Database functions overview]] fully describes the use of these parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;DCOUNTA&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; counts non-empty cells, that is those cells containing numbers, text, TRUE/FALSE or errors.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Example: ===&lt;br /&gt;
&lt;br /&gt;
In this spreadsheet:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; &lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&amp;amp;nbsp;||A&amp;#039;&amp;#039;&amp;#039;||B&amp;#039;&amp;#039;&amp;#039;||C&amp;#039;&amp;#039;&amp;#039;||D&amp;#039;&amp;#039;&amp;#039;||E&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|1&amp;#039;&amp;#039;&amp;#039;||Name||Grade||Age||Distance to School||Weight&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|2&amp;#039;&amp;#039;&amp;#039;||Andy||3||9||150||40&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|3&amp;#039;&amp;#039;&amp;#039;||Betty||4||10||1000||&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|4&amp;#039;&amp;#039;&amp;#039;||Charles||3||10||300||no&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|5&amp;#039;&amp;#039;&amp;#039;||Daniel||5||11||1200||48&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|6&amp;#039;&amp;#039;&amp;#039;||Eva||2||8||650||33&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|7&amp;#039;&amp;#039;&amp;#039;||Frank||2||7||300||&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|8&amp;#039;&amp;#039;&amp;#039;||Greta||1||7||200||36&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|9&amp;#039;&amp;#039;&amp;#039;||Harry||3||9||1200||44&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|10&amp;#039;&amp;#039;&amp;#039;||Irene||2||8||1000||no&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|11&amp;#039;&amp;#039;&amp;#039;||&amp;amp;nbsp;||&amp;amp;nbsp;||&amp;amp;nbsp;||&amp;amp;nbsp;||&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|12&amp;#039;&amp;#039;&amp;#039;||&amp;amp;nbsp;||&amp;amp;nbsp;||&amp;amp;nbsp;||&amp;amp;nbsp;||&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|13&amp;#039;&amp;#039;&amp;#039;||Name||Grade||Age||Distance to School||Weight&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|14&amp;#039;&amp;#039;&amp;#039;||&amp;amp;nbsp;||2||&amp;amp;nbsp;||&amp;amp;nbsp;||&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;DCOUNTA(A1:E10; 0; A13:E14)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: returns the number of children who are in the second grade (3).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;DCOUNTA(A1:E10; 5; A13:E14)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: returns the number of children who are in the second grade, whose weight has either been measured or marked as &amp;quot;no&amp;quot; (1). Frank is not included, because his weight is blank. Irene is included, because her weight is marked as &amp;quot;no&amp;quot;, which is text.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;DCOUNTA(A1:E10; E1; A13:E14)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: also returns the number of children in the second grade whose weight has either been measured or marked as &amp;quot;no&amp;quot; (1).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{SeeAlso|EN|&lt;br /&gt;
* [[Documentation/How_Tos/Calc: DCOUNT function|DCOUNT]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: DSUM function|DSUM]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: DPRODUCT function|DPRODUCT]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: DMAX function|DMAX]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: DMIN function|DMIN]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: DAVERAGE function|DAVERAGE]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: DSTDEV function|DSTDEV]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: DSTDEVP function|DSTDEVP]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: DVAR function|DVAR]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: DVARP function|DVARP]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: DGET function|DGET]]&lt;br /&gt;
&lt;br /&gt;
* [[Documentation/How_Tos/Calc: COUNT function|COUNT]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: COUNTA function|COUNTA]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: COUNTIF function|COUNTIF]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: COUNTBLANK function|COUNTBLANK]]&lt;br /&gt;
&lt;br /&gt;
* [[Documentation/How_Tos/Conditional Counting and Summation|Conditional Counting and Summation]]&lt;br /&gt;
&lt;br /&gt;
* [[Documentation/How_Tos/Calc: Database functions#Overview|Database functions overview]]&lt;br /&gt;
&lt;br /&gt;
* [[Documentation/How_Tos/Calc: Database functions|Database functions]]&lt;br /&gt;
&lt;br /&gt;
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}&lt;br /&gt;
[[Category: Documentation/Reference/Calc/Database functions]]&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_DCOUNT_function&amp;diff=258670</id>
		<title>Documentation/How Tos/Calc: DCOUNT function</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_DCOUNT_function&amp;diff=258670"/>
		<updated>2024-01-22T16:41:59Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Update DCOUNT documentation regarding the &amp;quot;field&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/MasterTOC&lt;br /&gt;
|bookid=1234&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|booktitle=&amp;lt;div style=&amp;quot;padding: 8px; font-size: 140%; font-weight: bold; background-color: #9BC0F5;&amp;quot;&amp;gt;CALC FUNCTIONS&amp;lt;/div&amp;gt;&lt;br /&gt;
|ShowParttitle=block&lt;br /&gt;
|parttitle=[[Documentation/How_Tos/Calc:_Database_functions|&amp;lt;div  style=&amp;quot;font-size: 140%;&amp;quot;&amp;gt;Database Functions]]&lt;br /&gt;
|ShowNextPage=block&lt;br /&gt;
|NextPage= Documentation/How_Tos/Calc:_DCOUNTA_function&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage= Documentation/How_Tos/Calc:_Database_functions&lt;br /&gt;
|ShowPrevPart=block&lt;br /&gt;
&lt;br /&gt;
|PrevPart= Documentation/How_Tos/Calc:_Complex_Number_functions&lt;br /&gt;
|ShowNextPart=block&lt;br /&gt;
|NextPart= Documentation/How_Tos/Calc:_Date_%26_Time_functions&lt;br /&gt;
|toccontent= &amp;lt;div style=&amp;quot;padding: 4px; font-size: 130%; font-weight: hidden; background-color:#DCE9FC;&amp;quot;&amp;gt;FUNCTIONS&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[Documentation/How_Tos/Calc:_DCOUNT_function|&amp;lt;div style=&amp;quot;font-size: 120%; border-style: double; border-color:#778899;&amp;quot;&amp;gt;Dcount]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc:_DCOUNTA_function|&amp;lt;div style=&amp;quot;font-size: 120%;&amp;quot;&amp;gt;Dcounta]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc:_DGET_function|&amp;lt;div style=&amp;quot;font-size: 120%;&amp;quot;&amp;gt;Dget]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc:_DMAX_function|&amp;lt;div style=&amp;quot;font-size: 120%;&amp;quot;&amp;gt;Dmax]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc:_DMIN_function|&amp;lt;div style=&amp;quot;font-size: 120%;&amp;quot;&amp;gt;Dmin]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc:_DAVERAGE_function|&amp;lt;div style=&amp;quot;font-size: 120%;&amp;quot;&amp;gt;Daverage]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc:_DPRODUCT_function|&amp;lt;div style=&amp;quot;font-size: 120%;&amp;quot;&amp;gt;Dproduct]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc:_DSTDEV_function|&amp;lt;div style=&amp;quot;font-size: 120%;&amp;quot;&amp;gt;Dstdev]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc:_DSUM_function|&amp;lt;div style=&amp;quot;font-size: 120%;&amp;quot;&amp;gt;Dsum]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc:_DVAR_function|&amp;lt;div style=&amp;quot;font-size: 120%;&amp;quot;&amp;gt;Dvar]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc:_DVARP_function|&amp;lt;div style=&amp;quot;font-size: 120%;&amp;quot;&amp;gt;Dvarp]]&lt;br /&gt;
}}__TOC__&lt;br /&gt;
&lt;br /&gt;
== DCOUNT  ==&lt;br /&gt;
Counts the cells containing numbers in a column of a Calc &amp;#039;database&amp;#039; table, in rows which meet specified criteria.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Syntax: ===&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;DCOUNT(database_table; field; criteria_table)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;database_table&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is a range defining the data to be processed.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;field&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is an optional column, whose cells containing numerical values are counted if their row matches the criteria. If present, it may be a column number (1 is the first column of the database table, 2 is the second ...), or a column header (enclosed in quotation marks ””), or a cell referring to a column header. If absent or 0, then the cell contents are ignored, and all rows matching the criteria are counted.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;criteria_table&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is a range containing criteria, to select which rows of the &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;database_table&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; to count.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The * [[Documentation/How_Tos/Calc: Database functions#Overview|Database functions overview]] fully describes the use of these parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Example: ===&lt;br /&gt;
&lt;br /&gt;
In this spreadsheet:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; &lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&amp;amp;nbsp;||&amp;#039;&amp;#039;&amp;#039;A&amp;#039;&amp;#039;&amp;#039;||&amp;#039;&amp;#039;&amp;#039;B&amp;#039;&amp;#039;&amp;#039;||&amp;#039;&amp;#039;&amp;#039;C&amp;#039;&amp;#039;&amp;#039;||&amp;#039;&amp;#039;&amp;#039;D&amp;#039;&amp;#039;&amp;#039;||&amp;#039;&amp;#039;&amp;#039;E&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039;||Name||Grade||Age||Distance to School||Weight&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;2&amp;#039;&amp;#039;&amp;#039;||Andy||3||9||150||40&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;3&amp;#039;&amp;#039;&amp;#039;||Betty||4||10||1000||&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;4&amp;#039;&amp;#039;&amp;#039;||Charles||3||10||300||&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;5&amp;#039;&amp;#039;&amp;#039;||Daniel||5||11||1200||48&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;6&amp;#039;&amp;#039;&amp;#039;||Eva||2||8||650||33&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;7&amp;#039;&amp;#039;&amp;#039;||Frank||2||7||300||&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039;||Greta||1||7||200||36&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;9&amp;#039;&amp;#039;&amp;#039;||Harry||3||9||1200||44&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;10&amp;#039;&amp;#039;&amp;#039;||Irene||2||8||1000||42&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;11&amp;#039;&amp;#039;&amp;#039;||&amp;amp;nbsp;||&amp;amp;nbsp;||&amp;amp;nbsp;||&amp;amp;nbsp;||&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;12&amp;#039;&amp;#039;&amp;#039;||&amp;amp;nbsp;||&amp;amp;nbsp;||&amp;amp;nbsp;||&amp;amp;nbsp;||&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;13&amp;#039;&amp;#039;&amp;#039;||Name||Grade||Age||Distance to School||Weight&lt;br /&gt;
&lt;br /&gt;
|-align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;14&amp;#039;&amp;#039;&amp;#039;||&amp;amp;nbsp;||2||&amp;amp;nbsp;||&amp;amp;nbsp;||&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;DCOUNT(A1:E10; 0; A13:E14)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: returns the number of children who are in the second grade (3).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;DCOUNT(A1:E10; 5; A13:E14)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: returns the number of children in the second grade whose weight has been measured (2). Frank is not included, because his weight is blank (not a number).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;DCOUNT(A1:E10; E1; A13:E14)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: also returns the number of children in the second grade whose weight has been measured (2).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{SeeAlso|EN|&lt;br /&gt;
* [[Documentation/How_Tos/Calc: DCOUNTA function|DCOUNTA]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: DSUM function|DSUM]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: DPRODUCT function|DPRODUCT]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: DMAX function|DMAX]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: DMIN function|DMIN]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: DAVERAGE function|DAVERAGE]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: DSTDEV function|DSTDEV]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: DSTDEVP function|DSTDEVP]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: DVAR function|DVAR]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: DVARP function|DVARP]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: DGET function|DGET]]&lt;br /&gt;
&lt;br /&gt;
* [[Documentation/How_Tos/Calc: COUNT function|COUNT]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: COUNTIF function|COUNTIF]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: COUNTBLANK function|COUNTBLANK]]&lt;br /&gt;
&lt;br /&gt;
* [[Documentation/How_Tos/Conditional Counting and Summation|Conditional Counting and Summation]]&lt;br /&gt;
&lt;br /&gt;
* [[Documentation/How_Tos/Calc: Database functions#Overview|Database functions overview]]&lt;br /&gt;
&lt;br /&gt;
* [[Documentation/How_Tos/Calc: Database functions|Database functions]]&lt;br /&gt;
&lt;br /&gt;
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}&lt;br /&gt;
[[Category: Documentation/Reference/Calc/Database functions]]&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=258600</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=258600"/>
		<updated>2024-01-01T12:16:40Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Fix typo/&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in the same order as given below, (ie. top to bottom, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&lt;br /&gt;
If a patch doesn&amp;#039;t apply, you have to make the equivalent code changes yourself.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date&lt;br /&gt;
! Git commit&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2fb14843010286ad9430e029e940242d039c9bf4 2fb14843010286ad9430e029e940242d039c9bf4]&lt;br /&gt;
| All: obsolete and remove the emulation of hash_map&amp;#039;s data_type typedef &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/60db4cd41876498d413568ed5a829ba6386245f9 60db4cd41876498d413568ed5a829ba6386245f9]&lt;br /&gt;
| Java: upgrade to the first version of commons-logging that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/21f06b298926b5eac098ed9c306560dd458d3a1e 21f06b298926b5eac098ed9c306560dd458d3a1e]&lt;br /&gt;
| Java: upgrade to the first version of commons-logging that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/47d3be6bd7cbd0f5aa101006532916676c4ceede 47d3be6bd7cbd0f5aa101006532916676c4ceede]&lt;br /&gt;
| Java: upgrade to the first version of commons-codec that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/bcff05d666ac35a4ddc41f4176bdf0038fd9cb02 bcff05d666ac35a4ddc41f4176bdf0038fd9cb02]&lt;br /&gt;
| Java: upgrade to the first version of commons-lang that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f0339755da5abc74646151d092c4739dd9e5ee54 f0339755da5abc74646151d092c4739dd9e5ee54]&lt;br /&gt;
| Java: related change to version upgrades code, logging &lt;br /&gt;
|-&lt;br /&gt;
| 2014-04-30&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/22076bf181e8f43a1d012a1c50cab412d09ed2b0 22076bf181e8f43a1d012a1c50cab412d09ed2b0]&lt;br /&gt;
| All: remove obsoleted sal-module-internal custom STL allocator &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5766e80935d60fd1804ed950d1972ff5e88fda76 5766e80935d60fd1804ed950d1972ff5e88fda76]&lt;br /&gt;
| All: fix default arguments in friend declarations &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49 ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49]&lt;br /&gt;
| All: remove custom allocator support in stlport-replacement headers &lt;br /&gt;
|-&lt;br /&gt;
| 2014-06-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e]&lt;br /&gt;
| FreeBSD: Fix the regression in 892b8f20ca40cc85f427d5bbef706b21ecd460e6. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-07-06&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76cf606939c261af2f957ef904a0384a3b6169da 76cf606939c261af2f957ef904a0384a3b6169da]&lt;br /&gt;
| FreeBSD: Add initial support for FreeBSD PPC using gcc.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-08-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/1b8c19f4d7f427d50c5ed0f65f07d814d9decf09 1b8c19f4d7f427d50c5ed0f65f07d814d9decf09]&lt;br /&gt;
| OS/2: build fixes for enabling Category B&lt;br /&gt;
|-&lt;br /&gt;
| 2014-11-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/55c23f91915c517b95be9f74fad73851a384fa05 55c23f91915c517b95be9f74fad73851a384fa05]&lt;br /&gt;
| OS/2: build fixes for enabling Category B also in OS/2 port.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-11-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&lt;br /&gt;
NOTE: needed for later patches, not just on OS/2. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-12-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/0fdc0ac7221c318421259c4834dce6b0be377a8b 0fdc0ac7221c318421259c4834dce6b0be377a8b]&lt;br /&gt;
| macOS: fix autodetection of the OSX 10.10 SDK&lt;br /&gt;
|-&lt;br /&gt;
| 2015-01-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/483bf1cb99a9fae931d407012ae00ce38c31b940 483bf1cb99a9fae931d407012ae00ce38c31b940]&lt;br /&gt;
| All: Fix build breaker introduced in revision 1651396&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
| FreeBSD: build structure changes &lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
| NSS build fixes. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
| FreeBSD: system jpeg build fix. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
| FreeBSD: better GCC/Clang support &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a84fbf33bbab2f93304ad5b1d232610ec9a69c27 a84fbf33bbab2f93304ad5b1d232610ec9a69c27]&lt;br /&gt;
| FreeBSD: Work around clang-3.4 issues.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-29&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-02&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/58303369294a39db2c0a54066360efff909daa9a 58303369294a39db2c0a54066360efff909daa9a]&lt;br /&gt;
| All: fix inlining options passed to Clang.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76decbbc67da8c86b617e1a4414d0f5ea6db5ff1 76decbbc67da8c86b617e1a4414d0f5ea6db5ff1]&lt;br /&gt;
| FreeBSD: FreeBSD-10 fixes&lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-13&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply). &lt;br /&gt;
|-&lt;br /&gt;
| 2015-10-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-12&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c4b07b4b14a3bb46b6e96fc7a31d099df09d5413 c4b07b4b14a3bb46b6e96fc7a31d099df09d5413]&lt;br /&gt;
| macOS: Add support for MacOSX El Capitan&lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/28633775241ee602b4a2e63aa263cce06685e4c0 28633775241ee602b4a2e63aa263cce06685e4c0]&lt;br /&gt;
| FreeBSD/Solaris: use $GREP, $EGREP in configure.ac&lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ceb6c4440c3fb3efdb611054a51caa1e35fd152e ceb6c4440c3fb3efdb611054a51caa1e35fd152e]&lt;br /&gt;
| FreeBSD: Allow build of Open Office on FreeBSD Mac PowerPCG5&lt;br /&gt;
|-&lt;br /&gt;
| 2016-01-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&lt;br /&gt;
NOTE: Only a portion of this patch matters, use:&lt;br /&gt;
git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx | patch -p1 &lt;br /&gt;
|-&lt;br /&gt;
| 2016-02-11&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu &lt;br /&gt;
|-&lt;br /&gt;
| 2016-06-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round(). &lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/b63233d868a9af170b0457a7aa0c5809011cc2c1 b63233d868a9af170b0457a7aa0c5809011cc2c1]&lt;br /&gt;
| All: Merge branches/gbuild-reintegration to trunk. (Only main/source_soenv.sh)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d1de9d7f8e018ffc301c2ceb9e5f62e3ca186daa d1de9d7f8e018ffc301c2ceb9e5f62e3ca186daa]&lt;br /&gt;
| All: part of the “Merge branches/gbuild-reintegration to trunk.” branch&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c74c5bb92a8f815eea63d1036b0ae27319568c98 c74c5bb92a8f815eea63d1036b0ae27319568c98]&lt;br /&gt;
| Windows: new way to set the gbuild console/ui subsystem flag.&lt;br /&gt;
(Needs to be customized a lot to apply.)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/78b0b3bf9bbc90d2acc64339b8de1a40d7438b4e 78b0b3bf9bbc90d2acc64339b8de1a40d7438b4e]&lt;br /&gt;
| Windows: fix flag to determine whether the C runtime library is linked statically/dynamically and single/multithreaded. (Only main/solenv part needed.)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f78a4bb8ff5d512c1dab2e128edb7d5fba78b03b f78a4bb8ff5d512c1dab2e128edb7d5fba78b03b]&lt;br /&gt;
| All: Upgrade bundled raptor from raptor-1.4.18 to raptor2-2.0.15&lt;br /&gt;
|-&lt;br /&gt;
| 2016-12-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e15a45347c4af89b363e7d092ae18e347f2f052f e15a45347c4af89b363e7d092ae18e347f2f052f]&lt;br /&gt;
| FreeBSD: Update endianness detection on FreeBSD.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7a46fbe49ba6c420f01922f987a00bf586522653 7a46fbe49ba6c420f01922f987a00bf586522653]&lt;br /&gt;
| FreeBSD: Initial support for the FreeBSD ARM platform.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-13&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5a81235241b51fcd40950a7973a436401218ec88 5a81235241b51fcd40950a7973a436401218ec88]&lt;br /&gt;
| FreeBSD: PPC: Cleanup makefile include mess.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/81e6fec9aa5d40eea94d1c86f72a7b55900dc816 81e6fec9aa5d40eea94d1c86f72a7b55900dc816]&lt;br /&gt;
| All: libstdc++ removal&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
| All: Clang 4 issues. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a]&lt;br /&gt;
| All: nullptr -&amp;gt; NULL. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8]&lt;br /&gt;
| All: Clang 4 fix. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
| *nix: remove unused header from hunspell. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8f07f855b27ed7bcc010af365ebc4fea86de7182 8f07f855b27ed7bcc010af365ebc4fea86de7182]&lt;br /&gt;
| FreeBSD: fix gb_CPUDEFS regression.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9e1b801e35d1189c57bceab0e99f961ae72a2b3f 9e1b801e35d1189c57bceab0e99f961ae72a2b3f]&lt;br /&gt;
| All: debug symbol fixes for gbuild&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/6e4dc73d13071947dbd3f9139aca1e3b58c81103 6e4dc73d13071947dbd3f9139aca1e3b58c81103]&lt;br /&gt;
| Linux: Reinstate part of the LinuxPPC64 support removed by error.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-02-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/bcc22a4c08e1268a4f06e54fb146f88ef49f2cdc bcc22a4c08e1268a4f06e54fb146f88ef49f2cdc]&lt;br /&gt;
| All: Add initial support for building AOO with Clang on Linux.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f669900deea0b6f978ffaf80c4471c274b89aeda f669900deea0b6f978ffaf80c4471c274b89aeda]&lt;br /&gt;
| macOS: macOS fixes, Xcode8&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/87bf159baa3ed610953f1e9d9714ca462a7efc20 87bf159baa3ed610953f1e9d9714ca462a7efc20]&lt;br /&gt;
| macOS: Get macOS compiling again&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16daaedff86cb7f882d39e13c4bd90a89187fddc 16daaedff86cb7f882d39e13c4bd90a89187fddc]&lt;br /&gt;
| MacOS: 10.9&lt;br /&gt;
|-&lt;br /&gt;
| 2017-10-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9e1bc29152c52d82ff2070c9282143da61a4a507 9e1bc29152c52d82ff2070c9282143da61a4a507]&lt;br /&gt;
| macOS: Get macOS compiling again&lt;br /&gt;
|-&lt;br /&gt;
| 2017-10-10&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5532af069966acd59346782985cd865067d2cdb1 5532af069966acd59346782985cd865067d2cdb1]&lt;br /&gt;
| macOS: C++ fixes&lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-01-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/78ecfec34f3bb6578b4663d63ae245594c795fe3 78ecfec34f3bb6578b4663d63ae245594c795fe3]&lt;br /&gt;
| All: delete GXX_INCLUDE_PATH&lt;br /&gt;
|-&lt;br /&gt;
| 2018-01-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/deb9523b63f459edd793c45f6e7ac6d1130b1e9f deb9523b63f459edd793c45f6e7ac6d1130b1e9f]&lt;br /&gt;
| All: build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9 &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8d23410d6e3d8728779a0bca516f274ab5ec01c4 8d23410d6e3d8728779a0bca516f274ab5ec01c4]&lt;br /&gt;
| All: Fix indentation.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| All: fix building lucene with Java 1.9 &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/386ca8668004b012c6f9f4525bfcb30dea9d960d 386ca8668004b012c6f9f4525bfcb30dea9d960d]&lt;br /&gt;
| All: build changes&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-12&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/edd74ba5165751c51050786f638af262ec502968 edd74ba5165751c51050786f638af262ec502968]&lt;br /&gt;
| Windows: preliminary support for 64 bit Windows&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8cb913c41397e529ead8b9128c8888b324408e46 8cb913c41397e529ead8b9128c8888b324408e46]&lt;br /&gt;
| All: Fix the gbuild platform CPUDEFS to conform to what modules expect. (Only main/solenv/gbuild part needed.)&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
| *nix: target the gnu++98 C++ standard. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
(A critical patch, but impossibly difficult to apply...) &lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2bf1cfb0fb5470896af21c2c584f53f556e1551b 2bf1cfb0fb5470896af21c2c584f53f556e1551b]&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE. &lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2019-11-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers. &lt;br /&gt;
|-&lt;br /&gt;
| 2020-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
| *nix: fix linking with system Python 3 &lt;br /&gt;
|-&lt;br /&gt;
| 2020-05-19&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
| All: fix issue with GNU make 4.3 &lt;br /&gt;
|-&lt;br /&gt;
| 2020-10-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found. &lt;br /&gt;
|-&lt;br /&gt;
| 2022-04-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2022-08-22&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x. &lt;br /&gt;
|-&lt;br /&gt;
| 2023-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Other ==&lt;br /&gt;
&lt;br /&gt;
Prefer internal dependencies, as transitive dependencies on system dependencies are difficult to get working, eg. old serf&amp;#039;s use of new system OpenSSL would need serf patched.&lt;br /&gt;
&lt;br /&gt;
Some old versions put the include path for system headers ahead of the include path to project headers, which can break the build if a dependency is installed system-wide but we want to use a local copy. For example, vcl wants boost, but if you have system boost installed yet are using internal boost, it will try including the system boost headers and break. The easiest way to fix this is to uninstall or hide/rename the system dependency so it&amp;#039;s hidden to the build, forcing only the internal version to be used.&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=258599</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=258599"/>
		<updated>2024-01-01T12:15:54Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Add more patches, change order.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in the same order as given below, (ie. top to bottom, which is newest to oldest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&lt;br /&gt;
If a patch doesn&amp;#039;t apply, you have to make the equivalent code changes yourself.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date&lt;br /&gt;
! Git commit&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2fb14843010286ad9430e029e940242d039c9bf4 2fb14843010286ad9430e029e940242d039c9bf4]&lt;br /&gt;
| All: obsolete and remove the emulation of hash_map&amp;#039;s data_type typedef &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/60db4cd41876498d413568ed5a829ba6386245f9 60db4cd41876498d413568ed5a829ba6386245f9]&lt;br /&gt;
| Java: upgrade to the first version of commons-logging that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/21f06b298926b5eac098ed9c306560dd458d3a1e 21f06b298926b5eac098ed9c306560dd458d3a1e]&lt;br /&gt;
| Java: upgrade to the first version of commons-logging that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/47d3be6bd7cbd0f5aa101006532916676c4ceede 47d3be6bd7cbd0f5aa101006532916676c4ceede]&lt;br /&gt;
| Java: upgrade to the first version of commons-codec that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/bcff05d666ac35a4ddc41f4176bdf0038fd9cb02 bcff05d666ac35a4ddc41f4176bdf0038fd9cb02]&lt;br /&gt;
| Java: upgrade to the first version of commons-lang that compile on modern Java. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f0339755da5abc74646151d092c4739dd9e5ee54 f0339755da5abc74646151d092c4739dd9e5ee54]&lt;br /&gt;
| Java: related change to version upgrades code, logging &lt;br /&gt;
|-&lt;br /&gt;
| 2014-04-30&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/22076bf181e8f43a1d012a1c50cab412d09ed2b0 22076bf181e8f43a1d012a1c50cab412d09ed2b0]&lt;br /&gt;
| All: remove obsoleted sal-module-internal custom STL allocator &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5766e80935d60fd1804ed950d1972ff5e88fda76 5766e80935d60fd1804ed950d1972ff5e88fda76]&lt;br /&gt;
| All: fix default arguments in friend declarations &lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49 ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49]&lt;br /&gt;
| All: remove custom allocator support in stlport-replacement headers &lt;br /&gt;
|-&lt;br /&gt;
| 2014-06-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e]&lt;br /&gt;
| FreeBSD: Fix the regression in 892b8f20ca40cc85f427d5bbef706b21ecd460e6. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-07-06&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76cf606939c261af2f957ef904a0384a3b6169da 76cf606939c261af2f957ef904a0384a3b6169da]&lt;br /&gt;
| FreeBSD: Add initial support for FreeBSD PPC using gcc.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-08-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/1b8c19f4d7f427d50c5ed0f65f07d814d9decf09 1b8c19f4d7f427d50c5ed0f65f07d814d9decf09]&lt;br /&gt;
| OS/2: build fixes for enabling Category B&lt;br /&gt;
|-&lt;br /&gt;
| 2014-11-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/55c23f91915c517b95be9f74fad73851a384fa05 55c23f91915c517b95be9f74fad73851a384fa05]&lt;br /&gt;
| OS/2: build fixes for enabling Category B also in OS/2 port.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-11-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&lt;br /&gt;
NOTE: needed for later patches, not just on OS/2. &lt;br /&gt;
|-&lt;br /&gt;
| 2014-12-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/0fdc0ac7221c318421259c4834dce6b0be377a8b 0fdc0ac7221c318421259c4834dce6b0be377a8b]&lt;br /&gt;
| macOS: fix autodetection of the OSX 10.10 SDK&lt;br /&gt;
|-&lt;br /&gt;
| 2015-01-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/483bf1cb99a9fae931d407012ae00ce38c31b940 483bf1cb99a9fae931d407012ae00ce38c31b940]&lt;br /&gt;
| All: Fix build breaker introduced in revision 1651396&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
| FreeBSD: build structure changes &lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
| NSS build fixes. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
| FreeBSD: system jpeg build fix. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
| FreeBSD: better GCC/Clang support &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a84fbf33bbab2f93304ad5b1d232610ec9a69c27 a84fbf33bbab2f93304ad5b1d232610ec9a69c27]&lt;br /&gt;
| FreeBSD: Work around clang-3.4 issues.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-29&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-02&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/58303369294a39db2c0a54066360efff909daa9a 58303369294a39db2c0a54066360efff909daa9a]&lt;br /&gt;
| All: fix inlining options passed to Clang.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76decbbc67da8c86b617e1a4414d0f5ea6db5ff1 76decbbc67da8c86b617e1a4414d0f5ea6db5ff1]&lt;br /&gt;
| FreeBSD: FreeBSD-10 fixes&lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-13&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply). &lt;br /&gt;
|-&lt;br /&gt;
| 2015-10-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build. &lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-12&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c4b07b4b14a3bb46b6e96fc7a31d099df09d5413 c4b07b4b14a3bb46b6e96fc7a31d099df09d5413]&lt;br /&gt;
| macOS: Add support for MacOSX El Capitan&lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/28633775241ee602b4a2e63aa263cce06685e4c0 28633775241ee602b4a2e63aa263cce06685e4c0]&lt;br /&gt;
| FreeBSD/Solaris: use $GREP, $EGREP in configure.ac&lt;br /&gt;
|-&lt;br /&gt;
| 2015-11-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ceb6c4440c3fb3efdb611054a51caa1e35fd152e ceb6c4440c3fb3efdb611054a51caa1e35fd152e]&lt;br /&gt;
| FreeBSD: Allow build of Open Office on FreeBSD Mac PowerPCG5&lt;br /&gt;
|-&lt;br /&gt;
| 2016-01-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&lt;br /&gt;
NOTE: Only a portion of this patch matters, use:&lt;br /&gt;
git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx | patch -p1 &lt;br /&gt;
|-&lt;br /&gt;
| 2016-02-11&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu &lt;br /&gt;
|-&lt;br /&gt;
| 2016-06-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round(). &lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/b63233d868a9af170b0457a7aa0c5809011cc2c1 b63233d868a9af170b0457a7aa0c5809011cc2c1]&lt;br /&gt;
| All: Merge branches/gbuild-reintegration to trunk. (Only main/source_soenv.sh)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d1de9d7f8e018ffc301c2ceb9e5f62e3ca186daa d1de9d7f8e018ffc301c2ceb9e5f62e3ca186daa]&lt;br /&gt;
| All: part of the “Merge branches/gbuild-reintegration to trunk.” branch&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c74c5bb92a8f815eea63d1036b0ae27319568c98 c74c5bb92a8f815eea63d1036b0ae27319568c98]&lt;br /&gt;
| Windows: new way to set the gbuild console/ui subsystem flag.&lt;br /&gt;
(Needs to be customized a lot to apply.)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/78b0b3bf9bbc90d2acc64339b8de1a40d7438b4e 78b0b3bf9bbc90d2acc64339b8de1a40d7438b4e]&lt;br /&gt;
| Windows: fix flag to determine whether the C runtime library is linked statically/dynamically and single/multithreaded. (Only main/solenv part needed.)&lt;br /&gt;
|-&lt;br /&gt;
| 2016-08-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f78a4bb8ff5d512c1dab2e128edb7d5fba78b03b f78a4bb8ff5d512c1dab2e128edb7d5fba78b03b]&lt;br /&gt;
| All: Upgrade bundled raptor from raptor-1.4.18 to raptor2-2.0.15&lt;br /&gt;
|-&lt;br /&gt;
| 2016-12-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e15a45347c4af89b363e7d092ae18e347f2f052f e15a45347c4af89b363e7d092ae18e347f2f052f]&lt;br /&gt;
| FreeBSD: Update endianness detection on FreeBSD.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7a46fbe49ba6c420f01922f987a00bf586522653 7a46fbe49ba6c420f01922f987a00bf586522653]&lt;br /&gt;
| FreeBSD: Initial support for the FreeBSD ARM platform.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-13&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5a81235241b51fcd40950a7973a436401218ec88 5a81235241b51fcd40950a7973a436401218ec88]&lt;br /&gt;
| FreeBSD: PPC: Cleanup makefile include mess.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/81e6fec9aa5d40eea94d1c86f72a7b55900dc816 81e6fec9aa5d40eea94d1c86f72a7b55900dc816]&lt;br /&gt;
| All: libstdc++ removal&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
| All: Clang 4 issues. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a]&lt;br /&gt;
| All: nullptr -&amp;gt; NULL. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8]&lt;br /&gt;
| All: Clang 4 fix. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
| *nix: remove unused header from hunspell. &lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8f07f855b27ed7bcc010af365ebc4fea86de7182 8f07f855b27ed7bcc010af365ebc4fea86de7182]&lt;br /&gt;
| FreeBSD: fix gb_CPUDEFS regression.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9e1b801e35d1189c57bceab0e99f961ae72a2b3f 9e1b801e35d1189c57bceab0e99f961ae72a2b3f]&lt;br /&gt;
| All: debug symbol fixes for gbuild&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/6e4dc73d13071947dbd3f9139aca1e3b58c81103 6e4dc73d13071947dbd3f9139aca1e3b58c81103]&lt;br /&gt;
| Linux: Reinstate part of the LinuxPPC64 support removed by error.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-02-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/bcc22a4c08e1268a4f06e54fb146f88ef49f2cdc bcc22a4c08e1268a4f06e54fb146f88ef49f2cdc]&lt;br /&gt;
| All: Add initial support for building AOO with Clang on Linux.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f669900deea0b6f978ffaf80c4471c274b89aeda f669900deea0b6f978ffaf80c4471c274b89aeda]&lt;br /&gt;
| macOS: macOS fixes, Xcode8&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/87bf159baa3ed610953f1e9d9714ca462a7efc20 87bf159baa3ed610953f1e9d9714ca462a7efc20]&lt;br /&gt;
| macOS: Get macOS compiling again&lt;br /&gt;
|-&lt;br /&gt;
| 2017-08-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16daaedff86cb7f882d39e13c4bd90a89187fddc 16daaedff86cb7f882d39e13c4bd90a89187fddc]&lt;br /&gt;
| MacOS: 10.9&lt;br /&gt;
|-&lt;br /&gt;
| 2017-10-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9e1bc29152c52d82ff2070c9282143da61a4a507 9e1bc29152c52d82ff2070c9282143da61a4a507]&lt;br /&gt;
| macOS: Get macOS compiling again&lt;br /&gt;
|-&lt;br /&gt;
| 2017-10-10&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5532af069966acd59346782985cd865067d2cdb1 5532af069966acd59346782985cd865067d2cdb1]&lt;br /&gt;
| macOS: C++ fixes&lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-01-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/78ecfec34f3bb6578b4663d63ae245594c795fe3 78ecfec34f3bb6578b4663d63ae245594c795fe3]&lt;br /&gt;
| All: delete GXX_INCLUDE_PATH&lt;br /&gt;
|-&lt;br /&gt;
| 2018-01-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/deb9523b63f459edd793c45f6e7ac6d1130b1e9f deb9523b63f459edd793c45f6e7ac6d1130b1e9f]&lt;br /&gt;
| All: build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9 &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8d23410d6e3d8728779a0bca516f274ab5ec01c4 8d23410d6e3d8728779a0bca516f274ab5ec01c4]&lt;br /&gt;
| All: Fix indentation.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| All: fix building lucene with Java 1.9 &lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/386ca8668004b012c6f9f4525bfcb30dea9d960d 386ca8668004b012c6f9f4525bfcb30dea9d960d]&lt;br /&gt;
| All: build changes&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-12&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/edd74ba5165751c51050786f638af262ec502968 edd74ba5165751c51050786f638af262ec502968]&lt;br /&gt;
| Windows: preliminary support for 64 bit Windows&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8cb913c41397e529ead8b9128c8888b324408e46 8cb913c41397e529ead8b9128c8888b324408e46]&lt;br /&gt;
| All: Fix the gbuild platform CPUDEFS to conform to what modules expect. (Only main/solenv/gbuild part needed.)&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
| *nix: target the gnu++98 C++ standard. &lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
(A critical patch, but impossibly difficult to apply...) &lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2bf1cfb0fb5470896af21c2c584f53f556e1551b 2bf1cfb0fb5470896af21c2c584f53f556e1551b]&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE. &lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2019-11-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers. &lt;br /&gt;
|-&lt;br /&gt;
| 2020-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
| *nix: fix linking with system Python 3 &lt;br /&gt;
|-&lt;br /&gt;
| 2020-05-19&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
| All: fix issue with GNU make 4.3 &lt;br /&gt;
|-&lt;br /&gt;
| 2020-10-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found. &lt;br /&gt;
|-&lt;br /&gt;
| 2022-04-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8 &lt;br /&gt;
|-&lt;br /&gt;
| 2022-08-22&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x. &lt;br /&gt;
|-&lt;br /&gt;
| 2023-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Other ==&lt;br /&gt;
&lt;br /&gt;
Prefer internal dependencies, as transitive dependencies on system dependencies are difficult to get working, eg. old serf&amp;#039;s use of new system OpenSSL would need serf patched.&lt;br /&gt;
&lt;br /&gt;
Some old versions put the include path for system headers ahead of the include path to project headers, which can break the build if a dependency is installed system-wide but we want to use a local copy. For example, vcl wants boost, but if you have system boost installed yet are using internal boost, it will try including the system boost headers and break. The easiest way to fix this is to uninstall or hide/rename the system dependency so it&amp;#039;s hidden to the build, forcing only the internal version to be used.&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=258598</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=258598"/>
		<updated>2023-12-27T09:20:02Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Fix a bad date order. Use the right commit for the AdoptOpenJDK patch.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&lt;br /&gt;
If a patch doesn&amp;#039;t apply, you have to make the equivalent code changes yourself.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date&lt;br /&gt;
! Git commit&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| 2023-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| 2022-08-22&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| 2022-04-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| 2020-10-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| 2020-05-19&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| 2020-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| 2019-11-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2bf1cfb0fb5470896af21c2c584f53f556e1551b 2bf1cfb0fb5470896af21c2c584f53f556e1551b]&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&amp;lt;br&amp;gt;(A critical patch, but impossibly difficult to apply...)&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8]&lt;br /&gt;
| All: Clang 4 fix.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a]&lt;br /&gt;
| All: nullptr -&amp;gt; NULL.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
| All: Clang 4 issues.&lt;br /&gt;
|-&lt;br /&gt;
| 2016-06-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| 2016-02-11&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| 2016-01-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| 2015-10-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-13&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-29&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
| FreeBSD: better GCC/Clang support&lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
| FreeBSD: system jpeg build fix.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
| NSS build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
| FreeBSD: build structure changes&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-11-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&amp;lt;br/&amp;gt;NOTE: needed for later patches, not just on OS/2.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-07-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e]&lt;br /&gt;
| FreeBSD: Fix the regression in 892b8f20ca40cc85f427d5bbef706b21ecd460e6.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49 ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49]&lt;br /&gt;
| All: remove custom allocator support in stlport-replacement headers&lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5766e80935d60fd1804ed950d1972ff5e88fda76 5766e80935d60fd1804ed950d1972ff5e88fda76]&lt;br /&gt;
| All: fix default arguments in friend declarations&lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/22076bf181e8f43a1d012a1c50cab412d09ed2b0 22076bf181e8f43a1d012a1c50cab412d09ed2b0]&lt;br /&gt;
| All: remove obsoleted sal-module-internal custom STL allocator&lt;br /&gt;
|-&lt;br /&gt;
| 2014-04-30&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f0339755da5abc74646151d092c4739dd9e5ee54 f0339755da5abc74646151d092c4739dd9e5ee54]&lt;br /&gt;
| Java: related change to version upgrades code, logging&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/bcff05d666ac35a4ddc41f4176bdf0038fd9cb02 bcff05d666ac35a4ddc41f4176bdf0038fd9cb02]&lt;br /&gt;
| Java: upgrade to the first version of commons-lang that compile on modern Java.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/47d3be6bd7cbd0f5aa101006532916676c4ceede 47d3be6bd7cbd0f5aa101006532916676c4ceede]&lt;br /&gt;
| Java: upgrade to the first version of commons-codec that compile on modern Java.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/21f06b298926b5eac098ed9c306560dd458d3a1e 21f06b298926b5eac098ed9c306560dd458d3a1e]&lt;br /&gt;
| Java: upgrade to the first version of commons-logging that compile on modern Java.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/60db4cd41876498d413568ed5a829ba6386245f9 60db4cd41876498d413568ed5a829ba6386245f9]&lt;br /&gt;
| Java: upgrade to the first version of commons-logging that compile on modern Java.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2fb14843010286ad9430e029e940242d039c9bf4 2fb14843010286ad9430e029e940242d039c9bf4]&lt;br /&gt;
| All: obsolete and remove the emulation of hash_map&amp;#039;s data_type typedef&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Other ==&lt;br /&gt;
&lt;br /&gt;
Prefer internal dependencies, as transitive dependencies on system dependencies are difficult to get working, eg. old serf&amp;#039;s use of new system OpenSSL would need serf patched.&lt;br /&gt;
&lt;br /&gt;
Some old versions put the include path for system headers ahead of the include path to project headers, which can break the build if a dependency is installed system-wide but we want to use a local copy. For example, vcl wants boost, but if you have system boost installed yet are using internal boost, it will try including the system boost headers and break. The easiest way to fix this is to uninstall or hide/rename the system dependency so it&amp;#039;s hidden to the build, forcing only the internal version to be used.&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=258597</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=258597"/>
		<updated>2023-12-27T09:07:36Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Reformat table so there is only one commit per row.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&lt;br /&gt;
If a patch doesn&amp;#039;t apply, you have to make the equivalent code changes yourself.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date&lt;br /&gt;
! Git commit&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| 2023-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| 2022-08-22&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| 2022-04-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| 2020-10-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| 2020-05-19&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| 2020-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| 2019-11-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&amp;lt;br&amp;gt;(A critical patch, but impossibly difficult to apply...)&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8]&lt;br /&gt;
| All: Clang 4 fix.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a]&lt;br /&gt;
| All: nullptr -&amp;gt; NULL.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
| All: Clang 4 issues.&lt;br /&gt;
|-&lt;br /&gt;
| 2016-06-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| 2016-02-11&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| 2016-01-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| 2015-10-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-13&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-29&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
| FreeBSD: better GCC/Clang support&lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
| FreeBSD: system jpeg build fix.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
| NSS build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
| FreeBSD: build structure changes&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-11-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&amp;lt;br/&amp;gt;NOTE: needed for later patches, not just on OS/2.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-07-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e]&lt;br /&gt;
| FreeBSD: Fix the regression in 892b8f20ca40cc85f427d5bbef706b21ecd460e6.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49 ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49]&lt;br /&gt;
| All: remove custom allocator support in stlport-replacement headers&lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5766e80935d60fd1804ed950d1972ff5e88fda76 5766e80935d60fd1804ed950d1972ff5e88fda76]&lt;br /&gt;
| All: fix default arguments in friend declarations&lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/22076bf181e8f43a1d012a1c50cab412d09ed2b0 22076bf181e8f43a1d012a1c50cab412d09ed2b0]&lt;br /&gt;
| All: remove obsoleted sal-module-internal custom STL allocator&lt;br /&gt;
|-&lt;br /&gt;
| 2014-04-30&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f0339755da5abc74646151d092c4739dd9e5ee54 f0339755da5abc74646151d092c4739dd9e5ee54]&lt;br /&gt;
| Java: related change to version upgrades code, logging&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/bcff05d666ac35a4ddc41f4176bdf0038fd9cb02 bcff05d666ac35a4ddc41f4176bdf0038fd9cb02]&lt;br /&gt;
| Java: upgrade to the first version of commons-lang that compile on modern Java.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/47d3be6bd7cbd0f5aa101006532916676c4ceede 47d3be6bd7cbd0f5aa101006532916676c4ceede]&lt;br /&gt;
| Java: upgrade to the first version of commons-codec that compile on modern Java.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/21f06b298926b5eac098ed9c306560dd458d3a1e 21f06b298926b5eac098ed9c306560dd458d3a1e]&lt;br /&gt;
| Java: upgrade to the first version of commons-logging that compile on modern Java.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/60db4cd41876498d413568ed5a829ba6386245f9 60db4cd41876498d413568ed5a829ba6386245f9]&lt;br /&gt;
| Java: upgrade to the first version of commons-logging that compile on modern Java.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2fb14843010286ad9430e029e940242d039c9bf4 2fb14843010286ad9430e029e940242d039c9bf4]&lt;br /&gt;
| All: obsolete and remove the emulation of hash_map&amp;#039;s data_type typedef&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Other ==&lt;br /&gt;
&lt;br /&gt;
Prefer internal dependencies, as transitive dependencies on system dependencies are difficult to get working, eg. old serf&amp;#039;s use of new system OpenSSL would need serf patched.&lt;br /&gt;
&lt;br /&gt;
Some old versions put the include path for system headers ahead of the include path to project headers, which can break the build if a dependency is installed system-wide but we want to use a local copy. For example, vcl wants boost, but if you have system boost installed yet are using internal boost, it will try including the system boost headers and break. The easiest way to fix this is to uninstall or hide/rename the system dependency so it&amp;#039;s hidden to the build, forcing only the internal version to be used.&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=258404</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=258404"/>
		<updated>2023-10-02T18:00:44Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Revisit the patches around 787e11305af165407f2c520f206d71868383ca89&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&lt;br /&gt;
If a patch doesn&amp;#039;t apply, you have to make the equivalent code changes yourself.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date&lt;br /&gt;
! Git commit&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| 2023-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| 2022-08-22&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| 2022-04-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| 2020-10-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| 2020-05-19&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| 2020-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| 2019-11-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&amp;lt;br&amp;gt;(A critical patch, but impossibly difficult to apply...)&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04 &amp;lt;br/&amp;gt; 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21 &amp;lt;br/&amp;gt; 2017-01-21 &amp;lt;br/&amp;gt; 2017-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| 2016-06-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| 2016-02-11&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| 2016-01-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| 2015-10-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-13&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-29&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24 &amp;lt;br/&amp;gt; 2015-08-24 &amp;lt;br/&amp;gt; 2015-08-23 &amp;lt;br/&amp;gt; 2015-08-23 &amp;lt;br/&amp;gt; 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
| FreeBSD: better GCC/Clang support&lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
| FreeBSD: system jpeg build fix.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
| NSS build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
| FreeBSD: build structure changes&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-11-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&amp;lt;br/&amp;gt;NOTE: needed for later patches, not just on OS/2.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-07-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e]&lt;br /&gt;
| FreeBSD: Fix the regression in 892b8f20ca40cc85f427d5bbef706b21ecd460e6.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49 ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49]&lt;br /&gt;
| All: remove custom allocator support in stlport-replacement headers&lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5766e80935d60fd1804ed950d1972ff5e88fda76 5766e80935d60fd1804ed950d1972ff5e88fda76]&lt;br /&gt;
| All: fix default arguments in friend declarations&lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/22076bf181e8f43a1d012a1c50cab412d09ed2b0 22076bf181e8f43a1d012a1c50cab412d09ed2b0]&lt;br /&gt;
| All: remove obsoleted sal-module-internal custom STL allocator&lt;br /&gt;
|-&lt;br /&gt;
| 2014-04-30&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24 &amp;lt;br/&amp;gt; 2014-03-24 &amp;lt;br/&amp;gt; 2014-03-24 &amp;lt;br/&amp;gt; 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f0339755da5abc74646151d092c4739dd9e5ee54 f0339755da5abc74646151d092c4739dd9e5ee54] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/bcff05d666ac35a4ddc41f4176bdf0038fd9cb02 bcff05d666ac35a4ddc41f4176bdf0038fd9cb02] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/47d3be6bd7cbd0f5aa101006532916676c4ceede 47d3be6bd7cbd0f5aa101006532916676c4ceede] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/60db4cd41876498d413568ed5a829ba6386245f9 60db4cd41876498d413568ed5a829ba6386245f9]&lt;br /&gt;
| Java: upgrade to the first versions of apache-commons projects that compile on modern Java.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2fb14843010286ad9430e029e940242d039c9bf4 2fb14843010286ad9430e029e940242d039c9bf4]&lt;br /&gt;
| All: obsolete and remove the emulation of hash_map&amp;#039;s data_type typedef&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Other ==&lt;br /&gt;
&lt;br /&gt;
Prefer internal dependencies, as transitive dependencies on system dependencies are difficult to get working, eg. old serf&amp;#039;s use of new system OpenSSL would need serf patched.&lt;br /&gt;
&lt;br /&gt;
Some old versions put the include path for system headers ahead of the include path to project headers, which can break the build if a dependency is installed system-wide but we want to use a local copy. For example, vcl wants boost, but if you have system boost installed yet are using internal boost, it will try including the system boost headers and break. The easiest way to fix this is to uninstall or hide/rename the system dependency so it&amp;#039;s hidden to the build, forcing only the internal version to be used.&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=258394</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=258394"/>
		<updated>2023-10-02T06:13:31Z</updated>

		<summary type="html">&lt;p&gt;Damjan: /* How to */ Fix table structure.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&lt;br /&gt;
If a patch doesn&amp;#039;t apply, you have to make the equivalent code changes yourself.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date&lt;br /&gt;
! Git commit&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| 2023-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| 2022-08-22&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| 2022-04-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| 2020-10-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| 2020-05-19&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| 2020-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| 2019-11-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/386ca8668004b012c6f9f4525bfcb30dea9d960d 386ca8668004b012c6f9f4525bfcb30dea9d960d]&lt;br /&gt;
| #127664# $CCNUMVER from dmake to configure&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04 &amp;lt;br/&amp;gt; 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21 &amp;lt;br/&amp;gt; 2017-01-21 &amp;lt;br/&amp;gt; 2017-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| 2016-06-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| 2016-02-11&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| 2016-01-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| 2015-10-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-13&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-29&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24 &amp;lt;br/&amp;gt; 2015-08-24 &amp;lt;br/&amp;gt; 2015-08-23 &amp;lt;br/&amp;gt; 2015-08-23 &amp;lt;br/&amp;gt; 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
| FreeBSD: better GCC/Clang support&lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
| FreeBSD: system jpeg build fix.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
| NSS build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
| FreeBSD: build structure changes&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-11-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&amp;lt;br/&amp;gt;NOTE: needed for later patches, not just on OS/2.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-07-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e]&lt;br /&gt;
| FreeBSD: Fix the regression in 892b8f20ca40cc85f427d5bbef706b21ecd460e6.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49 ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49]&lt;br /&gt;
| All: remove custom allocator support in stlport-replacement headers&lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5766e80935d60fd1804ed950d1972ff5e88fda76 5766e80935d60fd1804ed950d1972ff5e88fda76]&lt;br /&gt;
| All: fix default arguments in friend declarations&lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/22076bf181e8f43a1d012a1c50cab412d09ed2b0 22076bf181e8f43a1d012a1c50cab412d09ed2b0]&lt;br /&gt;
| All: remove obsoleted sal-module-internal custom STL allocator&lt;br /&gt;
|-&lt;br /&gt;
| 2014-04-30&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24 &amp;lt;br/&amp;gt; 2014-03-24 &amp;lt;br/&amp;gt; 2014-03-24 &amp;lt;br/&amp;gt; 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f0339755da5abc74646151d092c4739dd9e5ee54 f0339755da5abc74646151d092c4739dd9e5ee54] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/bcff05d666ac35a4ddc41f4176bdf0038fd9cb02 bcff05d666ac35a4ddc41f4176bdf0038fd9cb02] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/47d3be6bd7cbd0f5aa101006532916676c4ceede 47d3be6bd7cbd0f5aa101006532916676c4ceede] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/60db4cd41876498d413568ed5a829ba6386245f9 60db4cd41876498d413568ed5a829ba6386245f9]&lt;br /&gt;
| Java: upgrade to the first versions of apache-commons projects that compile on modern Java.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2fb14843010286ad9430e029e940242d039c9bf4 2fb14843010286ad9430e029e940242d039c9bf4]&lt;br /&gt;
| All: obsolete and remove the emulation of hash_map&amp;#039;s data_type typedef&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Other ==&lt;br /&gt;
&lt;br /&gt;
Prefer internal dependencies, as transitive dependencies on system dependencies are difficult to get working, eg. old serf&amp;#039;s use of new system OpenSSL would need serf patched.&lt;br /&gt;
&lt;br /&gt;
Some old versions put the include path for system headers ahead of the include path to project headers, which can break the build if a dependency is installed system-wide but we want to use a local copy. For example, vcl wants boost, but if you have system boost installed yet are using internal boost, it will try including the system boost headers and break. The easiest way to fix this is to uninstall or hide/rename the system dependency so it&amp;#039;s hidden to the build, forcing only the internal version to be used.&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=258393</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=258393"/>
		<updated>2023-10-02T06:12:50Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Add 386ca8668004b012c6f9f4525bfcb30dea9d960d&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&lt;br /&gt;
If a patch doesn&amp;#039;t apply, you have to make the equivalent code changes yourself.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date&lt;br /&gt;
! Git commit&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| 2023-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| 2022-08-22&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| 2022-04-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| 2020-10-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| 2020-05-19&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| 2020-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| 2019-11-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
-&lt;br /&gt;
| 2018-03-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/386ca8668004b012c6f9f4525bfcb30dea9d960d 386ca8668004b012c6f9f4525bfcb30dea9d960d]&lt;br /&gt;
| #127664# $CCNUMVER from dmake to configure&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04 &amp;lt;br/&amp;gt; 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21 &amp;lt;br/&amp;gt; 2017-01-21 &amp;lt;br/&amp;gt; 2017-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| 2016-06-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| 2016-02-11&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| 2016-01-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| 2015-10-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-13&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-29&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24 &amp;lt;br/&amp;gt; 2015-08-24 &amp;lt;br/&amp;gt; 2015-08-23 &amp;lt;br/&amp;gt; 2015-08-23 &amp;lt;br/&amp;gt; 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
| FreeBSD: better GCC/Clang support&lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
| FreeBSD: system jpeg build fix.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
| NSS build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
| FreeBSD: build structure changes&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-11-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&amp;lt;br/&amp;gt;NOTE: needed for later patches, not just on OS/2.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-07-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e]&lt;br /&gt;
| FreeBSD: Fix the regression in 892b8f20ca40cc85f427d5bbef706b21ecd460e6.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49 ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49]&lt;br /&gt;
| All: remove custom allocator support in stlport-replacement headers&lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5766e80935d60fd1804ed950d1972ff5e88fda76 5766e80935d60fd1804ed950d1972ff5e88fda76]&lt;br /&gt;
| All: fix default arguments in friend declarations&lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/22076bf181e8f43a1d012a1c50cab412d09ed2b0 22076bf181e8f43a1d012a1c50cab412d09ed2b0]&lt;br /&gt;
| All: remove obsoleted sal-module-internal custom STL allocator&lt;br /&gt;
|-&lt;br /&gt;
| 2014-04-30&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24 &amp;lt;br/&amp;gt; 2014-03-24 &amp;lt;br/&amp;gt; 2014-03-24 &amp;lt;br/&amp;gt; 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f0339755da5abc74646151d092c4739dd9e5ee54 f0339755da5abc74646151d092c4739dd9e5ee54] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/bcff05d666ac35a4ddc41f4176bdf0038fd9cb02 bcff05d666ac35a4ddc41f4176bdf0038fd9cb02] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/47d3be6bd7cbd0f5aa101006532916676c4ceede 47d3be6bd7cbd0f5aa101006532916676c4ceede] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/60db4cd41876498d413568ed5a829ba6386245f9 60db4cd41876498d413568ed5a829ba6386245f9]&lt;br /&gt;
| Java: upgrade to the first versions of apache-commons projects that compile on modern Java.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2fb14843010286ad9430e029e940242d039c9bf4 2fb14843010286ad9430e029e940242d039c9bf4]&lt;br /&gt;
| All: obsolete and remove the emulation of hash_map&amp;#039;s data_type typedef&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Other ==&lt;br /&gt;
&lt;br /&gt;
Prefer internal dependencies, as transitive dependencies on system dependencies are difficult to get working, eg. old serf&amp;#039;s use of new system OpenSSL would need serf patched.&lt;br /&gt;
&lt;br /&gt;
Some old versions put the include path for system headers ahead of the include path to project headers, which can break the build if a dependency is installed system-wide but we want to use a local copy. For example, vcl wants boost, but if you have system boost installed yet are using internal boost, it will try including the system boost headers and break. The easiest way to fix this is to uninstall or hide/rename the system dependency so it&amp;#039;s hidden to the build, forcing only the internal version to be used.&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256690</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256690"/>
		<updated>2023-01-31T16:13:41Z</updated>

		<summary type="html">&lt;p&gt;Damjan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&lt;br /&gt;
If a patch doesn&amp;#039;t apply, you have to make the equivalent code changes yourself.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date&lt;br /&gt;
! Git commit&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| 2023-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| 2022-08-22&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| 2022-04-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| 2020-10-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| 2020-05-19&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| 2020-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| 2019-11-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04 &amp;lt;br/&amp;gt; 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21 &amp;lt;br/&amp;gt; 2017-01-21 &amp;lt;br/&amp;gt; 2017-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| 2016-06-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| 2016-02-11&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| 2016-01-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| 2015-10-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-13&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-29&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24 &amp;lt;br/&amp;gt; 2015-08-24 &amp;lt;br/&amp;gt; 2015-08-23 &amp;lt;br/&amp;gt; 2015-08-23 &amp;lt;br/&amp;gt; 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
| FreeBSD: better GCC/Clang support&lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
| FreeBSD: system jpeg build fix.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
| NSS build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
| FreeBSD: build structure changes&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-11-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&amp;lt;br/&amp;gt;NOTE: needed for later patches, not just on OS/2.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-07-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e]&lt;br /&gt;
| FreeBSD: Fix the regression in 892b8f20ca40cc85f427d5bbef706b21ecd460e6.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49 ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49]&lt;br /&gt;
| All: remove custom allocator support in stlport-replacement headers&lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5766e80935d60fd1804ed950d1972ff5e88fda76 5766e80935d60fd1804ed950d1972ff5e88fda76]&lt;br /&gt;
| All: fix default arguments in friend declarations&lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/22076bf181e8f43a1d012a1c50cab412d09ed2b0 22076bf181e8f43a1d012a1c50cab412d09ed2b0]&lt;br /&gt;
| All: remove obsoleted sal-module-internal custom STL allocator&lt;br /&gt;
|-&lt;br /&gt;
| 2014-04-30&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24 &amp;lt;br/&amp;gt; 2014-03-24 &amp;lt;br/&amp;gt; 2014-03-24 &amp;lt;br/&amp;gt; 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f0339755da5abc74646151d092c4739dd9e5ee54 f0339755da5abc74646151d092c4739dd9e5ee54] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/bcff05d666ac35a4ddc41f4176bdf0038fd9cb02 bcff05d666ac35a4ddc41f4176bdf0038fd9cb02] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/47d3be6bd7cbd0f5aa101006532916676c4ceede 47d3be6bd7cbd0f5aa101006532916676c4ceede] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/60db4cd41876498d413568ed5a829ba6386245f9 60db4cd41876498d413568ed5a829ba6386245f9]&lt;br /&gt;
| Java: upgrade to the first versions of apache-commons projects that compile on modern Java.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2fb14843010286ad9430e029e940242d039c9bf4 2fb14843010286ad9430e029e940242d039c9bf4]&lt;br /&gt;
| All: obsolete and remove the emulation of hash_map&amp;#039;s data_type typedef&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Other ==&lt;br /&gt;
&lt;br /&gt;
Prefer internal dependencies, as transitive dependencies on system dependencies are difficult to get working, eg. old serf&amp;#039;s use of new system OpenSSL would need serf patched.&lt;br /&gt;
&lt;br /&gt;
Some old versions put the include path for system headers ahead of the include path to project headers, which can break the build if a dependency is installed system-wide but we want to use a local copy. For example, vcl wants boost, but if you have system boost installed yet are using internal boost, it will try including the system boost headers and break. The easiest way to fix this is to uninstall or hide/rename the system dependency so it&amp;#039;s hidden to the build, forcing only the internal version to be used.&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256689</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256689"/>
		<updated>2023-01-31T16:07:21Z</updated>

		<summary type="html">&lt;p&gt;Damjan: SVN is dead, but dates are useful.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date&lt;br /&gt;
! Git commit&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| 2023-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| 2022-08-22&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| 2022-04-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| 2020-10-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| 2020-05-19&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| 2020-01-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| 2019-07-27&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| 2019-11-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-04-21&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-04 &amp;lt;br/&amp;gt; 2018-03-04&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| 2018-03-03&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-17&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-11-09&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| 2017-01-21 &amp;lt;br/&amp;gt; 2017-01-21 &amp;lt;br/&amp;gt; 2017-01-20&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| 2016-06-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| 2016-02-11&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| 2016-01-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| 2015-10-25&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-09-13&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-29&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-24 &amp;lt;br/&amp;gt; 2015-08-24 &amp;lt;br/&amp;gt; 2015-08-23 &amp;lt;br/&amp;gt; 2015-08-23 &amp;lt;br/&amp;gt; 2015-08-23&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-08-05&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
| FreeBSD: better GCC/Clang support&lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
| FreeBSD: system jpeg build fix.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-07-08&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
| NSS build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
| FreeBSD: build structure changes&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| 2015-03-26&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-11-28&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&amp;lt;br/&amp;gt;NOTE: needed for later patches, not just on OS/2.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-07-16&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e]&lt;br /&gt;
| FreeBSD: Fix the regression in 892b8f20ca40cc85f427d5bbef706b21ecd460e6.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49 ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49]&lt;br /&gt;
| All: remove custom allocator support in stlport-replacement headers&lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5766e80935d60fd1804ed950d1972ff5e88fda76 5766e80935d60fd1804ed950d1972ff5e88fda76]&lt;br /&gt;
| All: fix default arguments in friend declarations&lt;br /&gt;
|-&lt;br /&gt;
| 2014-05-15&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/22076bf181e8f43a1d012a1c50cab412d09ed2b0 22076bf181e8f43a1d012a1c50cab412d09ed2b0]&lt;br /&gt;
| All: remove obsoleted sal-module-internal custom STL allocator&lt;br /&gt;
|-&lt;br /&gt;
| 2014-04-30&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-24 &amp;lt;br/&amp;gt; 2014-03-24 &amp;lt;br/&amp;gt; 2014-03-24 &amp;lt;br/&amp;gt; 2014-03-24&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f0339755da5abc74646151d092c4739dd9e5ee54 f0339755da5abc74646151d092c4739dd9e5ee54] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/bcff05d666ac35a4ddc41f4176bdf0038fd9cb02 bcff05d666ac35a4ddc41f4176bdf0038fd9cb02] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/47d3be6bd7cbd0f5aa101006532916676c4ceede 47d3be6bd7cbd0f5aa101006532916676c4ceede] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/60db4cd41876498d413568ed5a829ba6386245f9 60db4cd41876498d413568ed5a829ba6386245f9]&lt;br /&gt;
| Java: upgrade to the first versions of apache-commons projects that compile on modern Java.&lt;br /&gt;
|-&lt;br /&gt;
| 2014-03-07&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2fb14843010286ad9430e029e940242d039c9bf4 2fb14843010286ad9430e029e940242d039c9bf4]&lt;br /&gt;
| All: obsolete and remove the emulation of hash_map&amp;#039;s data_type typedef&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256688</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256688"/>
		<updated>2023-01-31T15:51:11Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Add a patch that fixed default arguments in friend declarations.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| &lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
|&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
|&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
|&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
|&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
|&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
|&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
|&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
|&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: better GCC/Clang support&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: system jpeg build fix.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
|&lt;br /&gt;
| NSS build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: build structure changes&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
|&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&amp;lt;br/&amp;gt;NOTE: needed for later patches, not just on OS/2.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: Fix the regression in 892b8f20ca40cc85f427d5bbef706b21ecd460e6.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49 ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49]&lt;br /&gt;
|&lt;br /&gt;
| All: remove custom allocator support in stlport-replacement headers&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5766e80935d60fd1804ed950d1972ff5e88fda76 5766e80935d60fd1804ed950d1972ff5e88fda76]&lt;br /&gt;
|&lt;br /&gt;
| All: fix default arguments in friend declarations&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/22076bf181e8f43a1d012a1c50cab412d09ed2b0 22076bf181e8f43a1d012a1c50cab412d09ed2b0]&lt;br /&gt;
|&lt;br /&gt;
| All: remove obsoleted sal-module-internal custom STL allocator&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f0339755da5abc74646151d092c4739dd9e5ee54 f0339755da5abc74646151d092c4739dd9e5ee54] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/bcff05d666ac35a4ddc41f4176bdf0038fd9cb02 bcff05d666ac35a4ddc41f4176bdf0038fd9cb02] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/47d3be6bd7cbd0f5aa101006532916676c4ceede 47d3be6bd7cbd0f5aa101006532916676c4ceede] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/60db4cd41876498d413568ed5a829ba6386245f9 60db4cd41876498d413568ed5a829ba6386245f9]&lt;br /&gt;
|&lt;br /&gt;
| Java: upgrade to the first versions of apache-commons projects that compile on modern Java.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2fb14843010286ad9430e029e940242d039c9bf4 2fb14843010286ad9430e029e940242d039c9bf4]&lt;br /&gt;
|&lt;br /&gt;
| All: obsolete and remove the emulation of hash_map&amp;#039;s data_type typedef&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256687</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256687"/>
		<updated>2023-01-31T15:49:23Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Fix table structure.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| &lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
|&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
|&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
|&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
|&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
|&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
|&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
|&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
|&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: better GCC/Clang support&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: system jpeg build fix.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
|&lt;br /&gt;
| NSS build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: build structure changes&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
|&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&amp;lt;br/&amp;gt;NOTE: needed for later patches, not just on OS/2.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: Fix the regression in 892b8f20ca40cc85f427d5bbef706b21ecd460e6.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49 ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49]&lt;br /&gt;
|&lt;br /&gt;
| All: remove custom allocator support in stlport-replacement headers&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/22076bf181e8f43a1d012a1c50cab412d09ed2b0 22076bf181e8f43a1d012a1c50cab412d09ed2b0]&lt;br /&gt;
|&lt;br /&gt;
| All: remove obsoleted sal-module-internal custom STL allocator&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f0339755da5abc74646151d092c4739dd9e5ee54 f0339755da5abc74646151d092c4739dd9e5ee54] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/bcff05d666ac35a4ddc41f4176bdf0038fd9cb02 bcff05d666ac35a4ddc41f4176bdf0038fd9cb02] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/47d3be6bd7cbd0f5aa101006532916676c4ceede 47d3be6bd7cbd0f5aa101006532916676c4ceede] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/60db4cd41876498d413568ed5a829ba6386245f9 60db4cd41876498d413568ed5a829ba6386245f9]&lt;br /&gt;
|&lt;br /&gt;
| Java: upgrade to the first versions of apache-commons projects that compile on modern Java.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2fb14843010286ad9430e029e940242d039c9bf4 2fb14843010286ad9430e029e940242d039c9bf4]&lt;br /&gt;
|&lt;br /&gt;
| All: obsolete and remove the emulation of hash_map&amp;#039;s data_type typedef&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256686</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256686"/>
		<updated>2023-01-31T15:49:00Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Add an stlport patch.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| &lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
|&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
|&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
|&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
|&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
|&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
|&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
|&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
|&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: better GCC/Clang support&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: system jpeg build fix.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
|&lt;br /&gt;
| NSS build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: build structure changes&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
|&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&amp;lt;br/&amp;gt;NOTE: needed for later patches, not just on OS/2.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: Fix the regression in 892b8f20ca40cc85f427d5bbef706b21ecd460e6.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49 ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49]&lt;br /&gt;
|&lt;br /&gt;
| All: remove custom allocator support in stlport-replacement headers&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/22076bf181e8f43a1d012a1c50cab412d09ed2b0 22076bf181e8f43a1d012a1c50cab412d09ed2b0]&lt;br /&gt;
|&lt;br /&gt;
| All: remove obsoleted sal-module-internal custom STL allocator&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f0339755da5abc74646151d092c4739dd9e5ee54 f0339755da5abc74646151d092c4739dd9e5ee54] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/bcff05d666ac35a4ddc41f4176bdf0038fd9cb02 bcff05d666ac35a4ddc41f4176bdf0038fd9cb02] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/47d3be6bd7cbd0f5aa101006532916676c4ceede 47d3be6bd7cbd0f5aa101006532916676c4ceede] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/60db4cd41876498d413568ed5a829ba6386245f9 60db4cd41876498d413568ed5a829ba6386245f9]&lt;br /&gt;
|&lt;br /&gt;
| Java: upgrade to the first versions of apache-commons projects that compile on modern Java.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2fb14843010286ad9430e029e940242d039c9bf4 2fb14843010286ad9430e029e940242d039c9bf4]&lt;br /&gt;
|&lt;br /&gt;
| All: obsolete and remove the emulation of hash_map&amp;#039;s data_type typedef&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256685</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256685"/>
		<updated>2023-01-31T15:46:31Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Add another customer allocator support patch.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| &lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
|&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
|&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
|&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
|&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
|&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
|&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
|&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
|&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: better GCC/Clang support&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: system jpeg build fix.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
|&lt;br /&gt;
| NSS build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: build structure changes&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
|&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&amp;lt;br/&amp;gt;NOTE: needed for later patches, not just on OS/2.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: Fix the regression in 892b8f20ca40cc85f427d5bbef706b21ecd460e6.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49 ae5c9b6c8d5cd9fec60d7f0cd4cd2b1d775bcb49]&lt;br /&gt;
|&lt;br /&gt;
| All: remove custom allocator support in stlport-replacement headers&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/22076bf181e8f43a1d012a1c50cab412d09ed2b0 22076bf181e8f43a1d012a1c50cab412d09ed2b0]&lt;br /&gt;
|&lt;br /&gt;
| All: remove obsoleted sal-module-internal custom STL allocator&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f0339755da5abc74646151d092c4739dd9e5ee54 f0339755da5abc74646151d092c4739dd9e5ee54] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/bcff05d666ac35a4ddc41f4176bdf0038fd9cb02 bcff05d666ac35a4ddc41f4176bdf0038fd9cb02] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/47d3be6bd7cbd0f5aa101006532916676c4ceede 47d3be6bd7cbd0f5aa101006532916676c4ceede] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/60db4cd41876498d413568ed5a829ba6386245f9 60db4cd41876498d413568ed5a829ba6386245f9]&lt;br /&gt;
|&lt;br /&gt;
| Java: upgrade to the first versions of apache-commons projects that compile on modern Java.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256684</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256684"/>
		<updated>2023-01-30T17:34:29Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Fix comments.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| &lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
|&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
|&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
|&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
|&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
|&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
|&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
|&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
|&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: better GCC/Clang support&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: system jpeg build fix.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
|&lt;br /&gt;
| NSS build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: build structure changes&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
|&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&amp;lt;br/&amp;gt;NOTE: needed for later patches, not just on OS/2.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: Fix the regression in 892b8f20ca40cc85f427d5bbef706b21ecd460e6.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/22076bf181e8f43a1d012a1c50cab412d09ed2b0 22076bf181e8f43a1d012a1c50cab412d09ed2b0]&lt;br /&gt;
|&lt;br /&gt;
| All: remove obsoleted sal-module-internal custom STL allocator&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f0339755da5abc74646151d092c4739dd9e5ee54 f0339755da5abc74646151d092c4739dd9e5ee54] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/bcff05d666ac35a4ddc41f4176bdf0038fd9cb02 bcff05d666ac35a4ddc41f4176bdf0038fd9cb02] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/47d3be6bd7cbd0f5aa101006532916676c4ceede 47d3be6bd7cbd0f5aa101006532916676c4ceede] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/60db4cd41876498d413568ed5a829ba6386245f9 60db4cd41876498d413568ed5a829ba6386245f9]&lt;br /&gt;
|&lt;br /&gt;
| Java: upgrade to the first versions of apache-commons projects that compile on modern Java.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256683</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256683"/>
		<updated>2023-01-30T17:32:45Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Reorder the patches in chronological order.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| &lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
|&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
|&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
|&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
|&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
|&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
|&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
|&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
|&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: better GCC/Clang support&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: system jpeg build fix.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
|&lt;br /&gt;
| NSS build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: build structure changes&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
|&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&amp;lt;br/&amp;gt;NOTE: needed for later patches, not just on OS/2.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/22076bf181e8f43a1d012a1c50cab412d09ed2b0 22076bf181e8f43a1d012a1c50cab412d09ed2b0]&lt;br /&gt;
|&lt;br /&gt;
| All: remove obsoleted sal-module-internal custom STL allocator&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: Fix the regression in ae90bea2f185550431df42a0216fdab56af1838e.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f0339755da5abc74646151d092c4739dd9e5ee54 f0339755da5abc74646151d092c4739dd9e5ee54] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/bcff05d666ac35a4ddc41f4176bdf0038fd9cb02 bcff05d666ac35a4ddc41f4176bdf0038fd9cb02] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/47d3be6bd7cbd0f5aa101006532916676c4ceede 47d3be6bd7cbd0f5aa101006532916676c4ceede] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/60db4cd41876498d413568ed5a829ba6386245f9 60db4cd41876498d413568ed5a829ba6386245f9]&lt;br /&gt;
|&lt;br /&gt;
| Java: upgrade to the first versions of apache-commons projects that compile on modern Java.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256682</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256682"/>
		<updated>2023-01-30T17:09:02Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Add apache-common patches needed to build old versions with new Java.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| &lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
|&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
|&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
|&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
|&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
|&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
|&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
|&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
|&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: better GCC/Clang support&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: system jpeg build fix.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
|&lt;br /&gt;
| NSS build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: build structure changes&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
|&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&amp;lt;br/&amp;gt;NOTE: needed for later patches, not just on OS/2.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: Fix the regression in ae90bea2f185550431df42a0216fdab56af1838e.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/22076bf181e8f43a1d012a1c50cab412d09ed2b0 22076bf181e8f43a1d012a1c50cab412d09ed2b0]&lt;br /&gt;
|&lt;br /&gt;
| All: remove obsoleted sal-module-internal custom STL allocator&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f0339755da5abc74646151d092c4739dd9e5ee54 f0339755da5abc74646151d092c4739dd9e5ee54] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/bcff05d666ac35a4ddc41f4176bdf0038fd9cb02 bcff05d666ac35a4ddc41f4176bdf0038fd9cb02] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/47d3be6bd7cbd0f5aa101006532916676c4ceede 47d3be6bd7cbd0f5aa101006532916676c4ceede] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/60db4cd41876498d413568ed5a829ba6386245f9 60db4cd41876498d413568ed5a829ba6386245f9]&lt;br /&gt;
|&lt;br /&gt;
| Java: upgrade to the first versions of apache-commons projects that compile on modern Java.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256681</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256681"/>
		<updated>2023-01-30T16:55:17Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Add the sal-module-internal custom STL allocator removal patch.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| &lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
|&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
|&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
|&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
|&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
|&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
|&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
|&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
|&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: better GCC/Clang support&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: system jpeg build fix.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
|&lt;br /&gt;
| NSS build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: build structure changes&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
|&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&amp;lt;br/&amp;gt;NOTE: needed for later patches, not just on OS/2.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: Fix the regression in ae90bea2f185550431df42a0216fdab56af1838e.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/22076bf181e8f43a1d012a1c50cab412d09ed2b0 22076bf181e8f43a1d012a1c50cab412d09ed2b0]&lt;br /&gt;
|&lt;br /&gt;
| All: remove obsoleted sal-module-internal custom STL allocator&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256680</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256680"/>
		<updated>2023-01-30T16:09:38Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Add the NSS patch for OS/2.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| &lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
|&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
|&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
|&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
|&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
|&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
|&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
|&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
|&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: better GCC/Clang support&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: system jpeg build fix.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
|&lt;br /&gt;
| NSS build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: build structure changes&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/66d4592e8cc7c8c33fc626074f9efcda13634c2c 66d4592e8cc7c8c33fc626074f9efcda13634c2c]&lt;br /&gt;
|&lt;br /&gt;
| Enable NSS modules also on OS/2 port.&amp;lt;br/&amp;gt;NOTE: needed for later patches, not just on OS/2.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256679</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256679"/>
		<updated>2023-01-30T16:03:49Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Add the patch that fixed the build with gcc on FreeBSD-i386.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| &lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
|&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
|&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
|&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
|&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
|&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
|&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
|&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
|&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: better GCC/Clang support&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: system jpeg build fix.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
|&lt;br /&gt;
| NSS build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: build structure changes&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/ae90bea2f185550431df42a0216fdab56af1838e ae90bea2f185550431df42a0216fdab56af1838e] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/892b8f20ca40cc85f427d5bbef706b21ecd460e6 892b8f20ca40cc85f427d5bbef706b21ecd460e6]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: fix build with gcc on FreeBSD-i386.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256678</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256678"/>
		<updated>2023-01-30T15:56:35Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Add the NSS build fixes patch.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| &lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
|&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
|&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
|&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
|&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
|&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
|&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
|&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
|&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: better GCC/Clang support&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: system jpeg build fix.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/5293ed5b27484fdcc6a4809ad82037db7a242152 5293ed5b27484fdcc6a4809ad82037db7a242152]&lt;br /&gt;
|&lt;br /&gt;
| NSS build fixes.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: build structure changes&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256677</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256677"/>
		<updated>2023-01-30T15:54:06Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Add the system jpeg fix for FreeBSD patch.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| &lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
|&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
|&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
|&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
|&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
|&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
|&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
|&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
|&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: better GCC/Clang support&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8510b05eb89ad86b6e9c283c055d80fe56e487bc 8510b05eb89ad86b6e9c283c055d80fe56e487bc]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: system jpeg build fix.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: build structure changes&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256676</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256676"/>
		<updated>2023-01-30T15:52:00Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Fix a typo.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| &lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
|&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
|&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
|&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
|&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
|&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
|&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
|&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
|&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: better GCC/Clang support&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: build structure changes&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256675</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256675"/>
		<updated>2023-01-30T15:51:43Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Add the patches for the FreeBSD &amp;gt;= 10 UNO bridges.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| &lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
|&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
|&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
|&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
|&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
|&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
|&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
|&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
|&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: better GCC/Clang support&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: build structure changes&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2e13fcb7adefbaae2598357d64e73f9b87cf8872 2e13fcb7adefbaae2598357d64e73f9b87cf8872]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: x86-64 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/baf6650df975f89e86ba1b26917c66286ee87ab0 baf6650df975f89e86ba1b26917c66286ee87ab0]&lt;br /&gt;
|&lt;br /&gt;
| FreBSD: x86 UNO bridge for FreeBSD &amp;gt;= 10.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256674</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256674"/>
		<updated>2023-01-30T15:40:30Z</updated>

		<summary type="html">&lt;p&gt;Damjan: FreeBSD: better GCC/Clang support patch&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| &lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
|&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
|&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
|&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
|&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
|&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
|&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
|&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
|&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c25219e083f121aac3c966a458945c1c37d22f15 c25219e083f121aac3c966a458945c1c37d22f15]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: better GCC/Clang support&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: build structure changes&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256673</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256673"/>
		<updated>2023-01-30T15:35:57Z</updated>

		<summary type="html">&lt;p&gt;Damjan: FreeBSD build structure changes patch&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| &lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
|&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
|&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
|&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
|&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
|&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
|&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
|&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
|&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/908225ed13eb08c341ec6cf0751aeed39dfd31a8 908225ed13eb08c341ec6cf0751aeed39dfd31a8]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: build structure changes&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256672</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256672"/>
		<updated>2023-01-29T15:12:48Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Fix a typo in the git command.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| &lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
|&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
|&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
|&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
|&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
|&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444 main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
|&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
|&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
|&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256671</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256671"/>
		<updated>2023-01-29T12:17:25Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Add another ordered comparison of pointer to zero patch.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| &lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
|&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
|&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
|&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
|&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e6348c9c91b938030ad5813dd009755d8b4b9444 e6348c9c91b938030ad5813dd009755d8b4b9444]&lt;br /&gt;
|&lt;br /&gt;
| All: fix ordered comparison between pointer and zero.&amp;lt;br/&amp;gt;NOTE: Only a portion of this patch matters, use:&amp;lt;br/&amp;gt;git show e6348c9c91b938030ad5813dd009755d8b4b9444: main/sal/qa/rtl/digest/rtl_digest.cxx &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; patch -p1&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
|&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
|&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
|&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256670</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256670"/>
		<updated>2023-01-29T11:26:04Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Another ordered comparison between pointer and zero patch.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| &lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
|&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
|&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
|&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
|&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8 59dbe8f652bdb9e1e5ecc11bebb8c62d23220ad8] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
|&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
|&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
|&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256669</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256669"/>
		<updated>2023-01-29T11:16:19Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Patches to desktop and sd to deal with ordered comparisons between pointers and zero.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| &lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
|&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
|&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
|&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
|&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/3fc1b11aed153658eed562e0563c5d002e06f83a 3fc1b11aed153658eed562e0563c5d002e06f83a] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/eec91efcfca2e12afd64039b8aa0f158a3d65ed7 eec91efcfca2e12afd64039b8aa0f158a3d65ed7]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issues with ordered comparisons between pointers and zero.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
|&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
|&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
|&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256668</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256668"/>
		<updated>2023-01-29T08:42:25Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Add the patch that removes missing but unused header from lingucomponent.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| &lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
|&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
|&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
|&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/98cd5c2a79e60996e7eea8a9ab5e47291e77d858 98cd5c2a79e60996e7eea8a9ab5e47291e77d858]&lt;br /&gt;
|&lt;br /&gt;
| *nix: remove unused header from hunspell.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
|&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
|&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
|&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256667</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256667"/>
		<updated>2023-01-29T08:35:16Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Add the VCL patch to avoid ambiguity with libc++&amp;#039;s round().&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| &lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
|&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
|&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
|&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a4e19be7f6f6069ba569aa50c7f757af9e497d27 a4e19be7f6f6069ba569aa50c7f757af9e497d27]&lt;br /&gt;
|&lt;br /&gt;
| FreeBSD: avoid ambiguity with libc++ round().&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
|&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
|&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
|&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256666</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256666"/>
		<updated>2023-01-29T08:17:39Z</updated>

		<summary type="html">&lt;p&gt;Damjan: Add the Javadoc &amp;gt;= 8 patches.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/8ef8ad062493ab86aa92fbefc05347f372e8d25c 8ef8ad062493ab86aa92fbefc05347f372e8d25c]&lt;br /&gt;
| &lt;br /&gt;
| *nix: get Boost building with Clang and -std=gnu++98.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f884850fece86ece56c7194bb1e746641f77c0a0 f884850fece86ece56c7194bb1e746641f77c0a0]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use functions and types compatible with both OpenSSL 1.0.x and 1.1.x.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f134535553051695dfbb71310003ab610fda2c83 f134535553051695dfbb71310003ab610fda2c83]&lt;br /&gt;
|&lt;br /&gt;
| *nix: Use the python-X.Y-embed package on system Python &amp;gt;= 3.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9b7130f9b6bdb7e9969615395186cb3b328a259d 9b7130f9b6bdb7e9969615395186cb3b328a259d]&lt;br /&gt;
|&lt;br /&gt;
| bison: define YYDEBUG so the yytname table can be found.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/7f3d5d1d1e5d0e51092276ddff205b8a31aab26f 7f3d5d1d1e5d0e51092276ddff205b8a31aab26f]&lt;br /&gt;
|&lt;br /&gt;
| All: fix issue with GNU make 4.3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/00503fad63e905b0ef1d175bb9780a358bc27263 00503fad63e905b0ef1d175bb9780a358bc27263]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix linking with system Python 3&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/f120c164ea44222b65c3fd8c31dc63804109d6a4 f120c164ea44222b65c3fd8c31dc63804109d6a4]&lt;br /&gt;
|&lt;br /&gt;
| All: remove unused basebmp code that breaks with newer compilers.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/787e11305af165407f2c520f206d71868383ca89 787e11305af165407f2c520f206d71868383ca89]&lt;br /&gt;
|&lt;br /&gt;
| *nix: fix potential memory alignment issues on X86_64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/e3393df0b128281faf562e0d0704b7b031c09194 e3393df0b128281faf562e0d0704b7b031c09194]&lt;br /&gt;
|&lt;br /&gt;
| *nix: target the gnu++98 C++ standard.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f 94125ed6f90993f06f9ee4e1d88bf2ce57e20a2f]&lt;br /&gt;
|&lt;br /&gt;
| *BSD: call unzip with just -u, instead of -o and -u which breaks the build.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cfc83b6cba931dcb75a6f071ffbe6124a7b88561 cfc83b6cba931dcb75a6f071ffbe6124a7b88561]&lt;br /&gt;
|&lt;br /&gt;
| Rename configure.in to configure.ac (so other patches to configure.ac can apply).&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/c86fe57eac59462145a2c4dcd104fb897de9196f c86fe57eac59462145a2c4dcd104fb897de9196f] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/cf2d5436d922671aec77ed61f7d162f74469e479 cf2d5436d922671aec77ed61f7d162f74469e479] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/7523a2c4cc93fa7a641641e68fe0d835e7794463 7523a2c4cc93fa7a641641e68fe0d835e7794463] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/e0f9f944356994beb91659a64d94cb4522cea965 e0f9f944356994beb91659a64d94cb4522cea965] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/2f57578e8e7e0ab07c12c28c88d12852edcc3a46 2f57578e8e7e0ab07c12c28c88d12852edcc3a46]&lt;br /&gt;
|&lt;br /&gt;
| Java: fix errors building Javadocs with Java &amp;gt;= 8.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Damjan</name></author>
	</entry>
</feed>