Date: Sat, 23 Aug 2014 21:27:02 -0500 From: Pedro Giffuni <pfg@freebsd.org> To: Don Lewis <truckman@FreeBSD.org> Cc: office@FreeBSD.org Subject: Re: OpenOffice 4.1 build persistently fails on my FreeBSD-10-stable/AMD64 Message-ID: <2366E5BA-9FD3-4243-9C47-F92B68F8C3A6@freebsd.org> In-Reply-To: <201408240132.s7O1WV1c053458@gw.catspoiler.org> References: <201408240132.s7O1WV1c053458@gw.catspoiler.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Il giorno 23/ago/2014, alle ore 20:32, Don Lewis <truckman@FreeBSD.org> = ha scritto: > On 23 Aug, Pedro Giffuni wrote: >>=20 >> On 08/23/14 13:51, Don Lewis wrote: >>> On 22 Aug, Pedro Giffuni wrote: >>>> FWIW, >>>>=20 >>>> AOO 4.1 is known to have bugs and AOO 4.1.1 will be released really = soon to address them. >>> The patch in PR 192545 unbreaks the AOO 4.1.0 build on FreeBSD 10 = and >>> 11: <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D192545> >>>=20 >>> The patch in PR 192557 upgrades openoffice-devel to 4.1.1-RC3: >>> <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D192557> >>>=20 >>=20 >> The patch in PR 181044 fixes Boost so that it can be used as >> an external dependency for OpenOffice: >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D181044 >=20 > Still no joy B-( >=20 > When I was first working on 4.1.0, I ran into the #include_next = problem > and tried to work around it by adding -DBOOST_TR1_DISABLE_INCLUDE_NEXT > to CFLAGS. The errors still occurred, but with different message = text. >=20 > With this patch applied, I see the same thing as in my earlier > experiments: >=20 > In file included from /usr/local/include/boost/tr1/tr1/vector:16:0, > from = /wrkdirs/usr/ports/editors/openoffice-devel/work/aoo-4.1.1/main/solver/411= /unxfbsdx.pro/inc/stl/vector:31, > from = /wrkdirs/usr/ports/editors/openoffice-devel/work/aoo-4.1.1/main/xml2cmp/so= urce/finder/dependy.hxx:28, > from = /wrkdirs/usr/ports/editors/openoffice-devel/work/aoo-4.1.1/main/xml2cmp/so= urce/finder/dependy.cxx:25: > /usr/local/include/boost/tr1/detail/config_all.hpp:163:41: fatal = error: ../4.7/utility: No such file or directory > compilation terminated. Ugh=85 this looks familiar :( The problem is really messy: the original OpenOffice was developed in = the dark ages of C++ libraries and used STLport as it=92s STL = implementation. STLport doesn=92t work with modern compilers (like in = MacOSX) so Boost is very handy because it has TR1 implementation which = can be very useful to complement older versions of libstdc++. With a = good native STL library, AOO makes very little use, if any, of boost. In order to be less disruptive, AOO has some wrappers for the STL = libraries in main/stlport/systemstl and for some reason this works fine = on for linux, Windows and MacOSX but it always gets those wrong on = FreeBSD. AOO appears to be the only package that exercises include_next because = the definition was wrong before my patch and no one had noticed. The = explanation is here: https://svn.boost.org/trac/boost/ticket/8944 Perhaps the path may need adjusting for gcc4.7. Extra eyes are certainly = welcome. Pedro.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2366E5BA-9FD3-4243-9C47-F92B68F8C3A6>