Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 613430

Summary: www-client/firefox-52.0.1: #define malloc(size) HunspellAllocator::CountingMalloc(size) incompatible with musl
Product: Gentoo Linux Reporter: Aric Belsito <lluixhi>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: allows compilation with included hunspell and musl

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:


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

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 ***