Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 613430 - www-client/firefox-52.0.1: #define malloc(size) HunspellAllocator::CountingMalloc(size) incompatible with musl
Summary: www-client/firefox-52.0.1: #define malloc(size) HunspellAllocator::CountingMa...
Status: RESOLVED DUPLICATE of bug 607562
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-21 19:35 UTC by Aric Belsito
Modified: 2017-03-22 01:24 UTC (History)
0 users

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


Attachments
allows compilation with included hunspell and musl (hunspell-musl.patch,712 bytes, patch)
2017-03-21 19:36 UTC, Aric Belsito
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aric Belsito 2017-03-21 19:35:42 UTC
I am unable to build firefox-52 because the `system-hunspell` USE flag no longer exists. 

I run into a compilation error where definitions for memory allocation function are overridden by `hunspell_alloc_hooks.h` (which is only included when using the included version of hunspell) in the hunspell glue even though the functions:

HunspellAllocator::CountingMalloc
HunspellAllocator::CountingFree
HunspellAllocator::CountingCalloc

don't exist in the the appropriate Class header.
Comment 1 Aric Belsito 2017-03-21 19:36:49 UTC
Created attachment 467862 [details, diff]
allows compilation with included hunspell and musl

With the following patch I was able to fix the build, but there might be a better way of doing it.
Comment 2 Mike Gilbert gentoo-dev 2017-03-21 19:50:27 UTC
Please attach a build log and provide emerge --info.
Comment 3 Felix Janda 2017-03-21 22:32:23 UTC
This is duplicate of bug 607562 (which however lacks a patch).
Comment 4 Aric Belsito 2017-03-21 23:50:53 UTC
@floppym

Yeah, this is a duplicate of 607562
Comment 5 Aric Belsito 2017-03-22 01:24:33 UTC

*** This bug has been marked as a duplicate of bug 607562 ***