Apache OpenOffice (AOO) Bugzilla – Issue 18063
FreeBSD-4.8: Fix the "i386" macro expansion problem
Last modified: 2004-02-07 07:04:04 UTC
To build stlport with GXX_INCLUDE_PATH set to (e.g.): /usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.3.1/include/c++ it is necessary to undefine the i386 macro before substituting the GXX_INCLUDE_PATH value. The i386 macro is not used in the stlport sources and no sane OS would use the version of this macro without leading underscores. I know that we don't patch Patches, but the following patch demonstrates what has to be done with stlport/STLport-4.5.patch: diff -u -r1.11.2.2 STLport-4.5.patch --- stlport/STLport-4.5.patch 4 Aug 2003 04:22:20 -0000 1.11.2.2 +++ stlport/STLport-4.5.patch 8 Aug 2003 15:05:21 -0000 @@ -254,11 +254,12 @@ # elif (__GNUC_MINOR__ < 8) ---- 244,253 ---- +--- 244,254 ---- # if (__GNUC__ >= 3) ! /* properly determine the STLP_NATIVE_INCLUDE_PATH */ +! #undef i386 ! # define _STLP_NATIVE_INCLUDE_PATH GXX_INCLUDE_PATH ! # define _STLP_NATIVE_OLD_STREAMS_INCLUDE_PATH \ ! GXX_INCLUDE_PATH/backward
Target OOo 1.1.1
Created attachment 8365 [details] patch for stlport
Patch approved.
Hm it doesn't help for 5-CURRENT...though.
Following patch is needed. @@ -274,7 +275,7 @@ # endif + #ifdef __FreeBSD__ -+ # include <../wchar.h> ++ # include <wchar.h> + #endif # include <stl/_cwchar.h> Volker, this issue might be solved, i think.
Maho, I approve your patch to also fix 5-CURRENT. This solves the build problems for stlport for FreeBSD. :-) But we need a branch to commit it to, before we can mark this issue fixed. Volker
Hi Volker, My former patch doesn't help for 5-CURRENT. This is my failure. Following patch is *much* safer. --- STLport-4.5.patch.orig Sun Aug 10 18:04:04 2003 +++ STLport-4.5.patch Sun Aug 10 18:34:18 2003 @@ -274,7 +275,7 @@ # endif + #ifdef __FreeBSD__ -+ # include <../wchar.h> ++ #include _STLP_NATIVE_C_HEADER(wchar.h) + #endif # include <stl/_cwchar.h>
Volker, which one is correct? I will test it, apply it then.
Argh, I see the problem, the last one, from maho: --- STLport-4.5.patch.orig Sun Aug 10 18:04:04 2003 +++ STLport-4.5.patch Sun Aug 10 18:34:18 2003 @@ -274,7 +275,7 @@ # endif + #ifdef __FreeBSD__ -+ # include <../wchar.h> ++ #include _STLP_NATIVE_C_HEADER(wchar.h) + #endif # include <stl/_cwchar.h> and my first patch also with +! #undef i386 See <http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/ports/editors/openoffice-devel/files/patch-stlport%3a%3aSTLport-4.5.patch?rev=1.4&content-type=text/plain> for the complete patch. Sorry, approved my me. Volker
Fixed in cws_srx645_ooo111fix1.
mark as verified.
close issue, feel free to reopen if there is a problem left.
close issue.