Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 637692 - app-text/libmwaw-0.3.13 - libmwaw_internal.hxx:1030:30: error: no matching function for call to ‘std::pair<MWAWVec2<float>, MWAWVec2<float> >::pair(const MWAWVec2<int>&, const MWAWVec2<int>&)’
Summary: app-text/libmwaw-0.3.13 - libmwaw_internal.hxx:1030:30: error: no matching fu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-16 16:38 UTC by Coacher
Modified: 2017-11-18 10:58 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,26.04 KB, text/plain)
2017-11-16 16:38 UTC, Coacher
Details
emerge --info (info,7.11 KB, text/plain)
2017-11-16 16:39 UTC, Coacher
Details
libmwaw-0.3.13-4bc8ec-fix-call-of-explicit-ctor.patch (libmwaw-0.3.13-4bc8ec-fix-call-of-explicit-ctor.patch,401 bytes, patch)
2017-11-18 09:44 UTC, Erich Seifert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Coacher 2017-11-16 16:38:27 UTC
Created attachment 504514 [details]
build.log

Hello.

Error:
libtool: compile:  x86_64-pc-linux-gnu-g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../.. -I../../inc -I/usr/include/librevenge-0.0 -DNDEBUG -O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe -frecord-gcc-switches -fvisibility=hidden -DLIBMWAW_VISIBILITY -Wall -Wextra -pedantic -Wshadow -Wunused-variable -Weffc++ -c ApplePictParser.cxx  -fPIC -DPIC -o .libs/ApplePictParser.o
In file included from MWAWFont.hxx:40:0,
                 from ApplePictParser.cxx:44:
libmwaw_internal.hxx: In instantiation of ‘MWAWBox2<T>::MWAWBox2(const MWAWBox2<U>&) [with U = int; T = float]’:
ApplePictParser.cxx:2389:38:   required from here
libmwaw_internal.hxx:1030:30: error: no matching function for call to ‘std::pair<MWAWVec2<float>, MWAWVec2<float> >::pair(const MWAWVec2<int>&, const MWAWVec2<int>&)’
     : m_data(p.min(), p.max())



$ emerge -pqv libmwaw
[ebuild     U ] app-text/libmwaw-0.3.13 [0.3.12] USE="-doc -static-libs -tools"
Comment 1 Coacher 2017-11-16 16:39:11 UTC
Created attachment 504516 [details]
emerge --info
Comment 2 Coacher 2017-11-16 17:59:24 UTC
libmwaw-0.3.12 builds fine on the same machine.
Comment 3 Shannon 2017-11-17 19:14:44 UTC
Upstream has a commit that fixed it for me:
https://sourceforge.net/p/libmwaw/libmwaw/ci/4bc8ec0481f89b989b0c34236c9d5d9b8038d4a9/
Comment 4 Ivan Iraci 2017-11-17 20:35:02 UTC
Same problem here.
Comment 5 Andreas Sturmlechner gentoo-dev 2017-11-18 09:22:26 UTC
Thanks for reporting the upstream fix, otherwise I haven't been able to reproduce it yet.
Comment 6 Erich Seifert 2017-11-18 09:44:12 UTC
Created attachment 504594 [details, diff]
libmwaw-0.3.13-4bc8ec-fix-call-of-explicit-ctor.patch

Here's the commit as patch file for easier testing.

For me app-text/libmwaw-0.3.13 builds fine after applying the patch.
Comment 7 Larry the Git Cow gentoo-dev 2017-11-18 10:58:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4f32f600bdc3834c3ec16b07f6989e75f74c6dc

commit f4f32f600bdc3834c3ec16b07f6989e75f74c6dc
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2017-11-18 10:51:53 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2017-11-18 10:51:53 +0000

    app-text/libmwaw: Add upstream buildfix
    
    Reported-by: Coacher <itumaykin+gentoo@gmail.com>
    Thanks-to: Shannon <roamingangel@gmail.com>
    Closes: https://bugs.gentoo.org/637692
    Package-Manager: Portage-2.3.14, Repoman-2.3.6

 app-text/libmwaw/files/libmwaw-0.3.13-buildfix.patch | 19 +++++++++++++++++++
 app-text/libmwaw/libmwaw-0.3.13.ebuild               |  2 ++
 2 files changed, 21 insertions(+)