|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 packages||Assignee:||Gentoo Linux bug wranglers <bug-wranglers>|
|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: 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 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