Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#6094 closed task (fixed)

libreoffice-4.4.0

Reported by: Fernando de Oliveira Owned by: Fernando de Oliveira
Priority: normal Milestone: 7.7
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

http://download.documentfoundation.org/libreoffice/src/4.4.0/

https://www.libreoffice.org/download/release-notes/

This is the first stable release from the 4.4 branch of LibreOffice which
contains new features and program enhancements. As such, the version is
stable and is suitable for all users. This version may contain a few
annoying bugs which will be fixed in the next bugfix versions to come.

General notes on features and enhancements are contained in this release.
For a detailed list, please check our complete release notes here
<https://wiki.documentfoundation.org/ReleaseNotes/4.4>.

1 Writer

    Master Document Templates
    Shapes can have a TextBox
    Improvements to Track Changes
    Style dropdown
    Line numbering easier to apply for headers and footers
    Status bar improvements
    Toolbar improvements
    Navigator bookmarks
    AutoCorrect improvements

2 Calc
...

Attachments (1)

libreoffice_for_each-error.log (3.2 KB ) - added by Fernando de Oliveira 9 years ago.
‘for_each’ is not a member of ‘std’

Download all attachments as: .zip

Change History (14)

comment:1 by Fernando de Oliveira, 9 years ago

Type: enhancementtask

comment:2 by Fernando de Oliveira, 9 years ago

Have built in LFS-7.1-svn. Can't build in LFS-7.6-svn.

Both i686 with gcc updated to 4.9.2.

Error from log tail (also attached as a .txt:

In file included from /tmp/libreoffice-4.4.0.3/svl/source/misc/gridprinter.cxx:13:0:
/tmp/libreoffice-4.4.0.3/workdir/UnpackedTarball/mdds/include/mdds/multi_type_vector_types.hpp: In destructor ‘mdds::mtv::managed_element_block<_TypeId, _Data>::~managed_element_block()’:
/tmp/libreoffice-4.4.0.3/workdir/UnpackedTarball/mdds/include/mdds/multi_type_vector_types.hpp:530:9: error: ‘for_each’ is not a member of ‘std’
         std::for_each(m_array.begin(), m_array.end(), mdds::default_deleter<_Data>());
         ^
/tmp/libreoffice-4.4.0.3/workdir/UnpackedTarball/mdds/include/mdds/multi_type_vector_types.hpp: In static member function ‘static void mdds::mtv::managed_element_block<_TypeId, _Data>::overwrite_values(mdds::mtv::base_element_block&, size_t, size_t)’:
/tmp/libreoffice-4.4.0.3/workdir/UnpackedTarball/mdds/include/mdds/multi_type_vector_types.hpp:557:9: error: ‘for_each’ is not a member of ‘std’
         std::for_each(it, it_end, mdds::default_deleter<_Data>());
         ^
In file included from /tmp/libreoffice-4.4.0.3/svl/source/misc/gridprinter.cxx:13:0:
/tmp/libreoffice-4.4.0.3/workdir/UnpackedTarball/mdds/include/mdds/multi_type_vector_types.hpp: In destructor ‘mdds::mtv::noncopyable_managed_element_block<_TypeId, _Data>::~noncopyable_managed_element_block()’:
/tmp/libreoffice-4.4.0.3/workdir/UnpackedTarball/mdds/include/mdds/multi_type_vector_types.hpp:579:9: error: ‘for_each’ is not a member of ‘std’
         std::for_each(m_array.begin(), m_array.end(), mdds::default_deleter<_Data>());
         ^
/tmp/libreoffice-4.4.0.3/workdir/UnpackedTarball/mdds/include/mdds/multi_type_vector_types.hpp: In static member function ‘static void mdds::mtv::noncopyable_managed_element_block<_TypeId, _Data>::overwrite_values(mdds::mtv::base_element_block&, size_t, size_t)’:
/tmp/libreoffice-4.4.0.3/workdir/UnpackedTarball/mdds/include/mdds/multi_type_vector_types.hpp:606:9: error: ‘for_each’ is not a member of ‘std’
         std::for_each(it, it_end, mdds::default_deleter<_Data>());
         ^
[build CXX] svl/source/misc/ownlist.cxx
[build CXX] svl/source/misc/sharecontrolfile.cxx
/tmp/libreoffice-4.4.0.3/solenv/gbuild/LinkTarget.mk:189: recipe for target '/tmp/libreoffice-4.4.0.3/workdir/CxxObject/svl/source/misc/gridprinter.o' failed
make[1]: *** [/tmp/libreoffice-4.4.0.3/workdir/CxxObject/svl/source/misc/gridprinter.o] Error 1
make[1]: ** Esperando que outros processos terminem.
Makefile:237: recipe for target 'build' failed
make: *** [build] Error 2

by Fernando de Oliveira, 9 years ago

‘for_each’ is not a member of ‘std’

comment:3 by bdubbs@…, 9 years ago

Google says to add

#include <algorithm>

I'm guessing it should be added to mdds/include/mdds/multi_type_vector_types.hpp

I'll test and get back to you if that isn't it.

comment:4 by bdubbs@…, 9 years ago

Just checked. I don't have a decent system to check with gcc-4.9.2 right now.

However, I looked at the dependencies. What we have for required is only:

Archive::Zip-1.43, UnZip-6.0, Wget-1.16.1, Which-2.20, and Zip-3.0

although there are a ton or recommended dependencies, I don't see how LO could possibly be built without Xorg. Should MesaLib be promoted to required?

comment:5 by Fernando de Oliveira, 9 years ago

Thanks for the comments, Bruce.

I have installed and removed mdds_0.11.2, because hit the same error.

How did you add the header: between autogen.sh and make build?

The most significant difference between the systems is boost-1.56.0 in LFS-7.1-svn and boost-1.57.0 LFS-7.6.

I'm trying to build without system boost. As soon as it breaks or finidhes, I will try your suggestion.

I think there is a discussion and in the archives about Xorg: IIRC, LO can be used in servers to provide services, so, not sure what would be better. Will try to find that discussion.

comment:6 by Fernando de Oliveira, 9 years ago

grep -A20 gridprinter.cxx libreoffice-4.4.0.3-build-2015.01.31-19h43m01s.log

tells me that it has compiled gridprinter.cxx

I believe it will complete.

After, will try adding #include <algorithm> to multi_type_vector_types.hpp.

If at least one solution succeeds, we are done.

comment:7 by bdubbs@…, 9 years ago

I didn't actually make any changes. I just did a search. What I'd try is changing

include/mdds/multi_type_vector_types.hpp

It has:

#if defined(MDDS_UNIT_TEST) || defined (MDDS_MULTI_TYPE_VECTOR_DEBUG)
#include <algorithm>
#include <iostream>
#include <sstream>
using std::cout;
using std::cerr;
using std::endl;
#endif

I'd just move the #include <algorithm> line to above the #if line.

When the package build stops, just make the change and run 'make build' again.

If that fixes it, then we can try to figure out how to do that in the book. I'm not sure if the external downloads happen in the autogen or 'make build' instructions.

comment:8 by Fernando de Oliveira, 9 years ago

Right. I had seen it.

It is in make build, unfortunately. I think this would work:

make build

sed move #include <algorithm> && make build

Back to Mesa or no Mesa i required: http://www.linuxfromscratch.org/pipermail/blfs-dev/2014-January/026507.html

I seem to recall in a recent discussion, that it was stated that only
required is considered in the chain. So, after I discovered the
possibility of building [LO] without the X part, I included in optional. I
think there is better than in recommended, but as you know, dependency
is my "Achilles' heel".

This is the point: it can be built without X. The switch is

--with-x use the X Window System

So, I assumed I can use --without-x

I am just explaining why I modified it, but besides the possibility that I'm wrong, I wouldn't dispute, if you want to move it required, because LO in the book is intended for desktops, I think.

comment:9 by bdubbs@…, 9 years ago

Don't worry about the dependencies.

I'd rather do a manual download and change to the package and also change the Makefile if necessary. Is that possible?

comment:10 by Fernando de Oliveira, 9 years ago

Yes. Download as is now.

$ grep -A3 unpack-sources Makefile
	$(SRCDIR)/bin/unpack-sources $(SRCDIR) $(foreach i,$(subst helpcontent2,help,$(GIT_NEEDED_SUBMODULES)),\
		$(TARFILE_LOCATION)/libreoffice-$(i)-$(gb_LO_VER).tar.xz)
endif

so, we would have before make build, or even before autoge,sh:

sed -e "/TARFILE_LOCATION/a\	sed -e '/algorithm/d' -e '/defined(MDDS_UNIT_TEST)/ i#include <algorithm>' -i workdir/UnpackedTarball/mdds/include/mdds/multi_type_vector_types.hpp" \
    -i Makefile.in

Or just Makefile, if we do it after autogen.sh?

Don't know how to break this in one or more lines.

comment:11 by Fernando de Oliveira, 9 years ago

Forgot: same result for grep in Makefile.in.

comment:12 by Fernando de Oliveira, 9 years ago

Owner: changed from blfs-book@… to Fernando de Oliveira
Status: newassigned

comment:13 by Fernando de Oliveira, 9 years ago

Resolution: fixed
Status: assignedclosed

Thank you very much, Bruce, for many discussions and for solving the header problem.

Fixed at r15434.

Last edited 9 years ago by Fernando de Oliveira (previous) (diff)
Note: See TracTickets for help on using tickets.