build fails on uClibc: error: 'malloc_usable_size' was not declared in this scope

UNCONFIRMED
Unassigned

Status

()

UNCONFIRMED
6 years ago
6 years ago

People

(Reporter: natanael.copa, Unassigned)

Tracking

20 Branch
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20130417 Firefox/20.0 (Nightly/Aurora)
Build ID: 20130417094959

Steps to reproduce:

Tried to build xulrunner on Alpine Linux, which uses uClibc instead of glibc


Actual results:

make[5]: Entering directory `/home/ncopa/aports/main/xulrunner/src/mozilla-release/obj-i686-pc-linux-gnu/memory/mozalloc'
ccache g++ -o mozalloc.o -c   -DXP_LINUX -DMOZ_GLUE_IN_PROGRAM -DNO_NSPR_10_SUPPORT -I../../xpcom -I/home/ncopa/aports/main/xulrunner/src/mozilla-release/memory/mozalloc -I. -I../../dist/include  -I/usr/include/nspr -I/usr/include/nss      -fPIC -Os -fomit-frame-pointer -pipe -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Wno-invalid-offsetof -Wcast-align -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -std=gnu++0x -pthread -pipe  -DNDEBUG -DTRIMMED -g -Os -freorder-blocks  -fomit-frame-pointer  -Os -fomit-frame-pointer -pipe -DMOZILLA_CLIENT -include ../../mozilla-config.h -MD -MF .deps/mozalloc.o.pp  /home/ncopa/aports/main/xulrunner/src/mozilla-release/memory/mozalloc/mozalloc.cpp
/home/ncopa/aports/main/xulrunner/src/mozilla-release/memory/mozalloc/mozalloc.cpp: In function 'size_t moz_malloc_usable_size(void*)':
/home/ncopa/aports/main/xulrunner/src/mozilla-release/memory/mozalloc/mozalloc.cpp:214:34: error: 'malloc_usable_size' was not declared in this scope
/home/ncopa/aports/main/xulrunner/src/mozilla-release/memory/mozalloc/mozalloc.cpp:220:1: error: control reaches end of non-void function [-Werror=return-type]
cc1plus: some warnings being treated as errors



Expected results:

build success
(Reporter)

Comment 1

6 years ago
Created attachment 759088 [details] [diff] [review]
uclibc-malloc_usable_size.patch

We have used the attached patch with success for various firefox generations now. (at least since firefox-14)

Updated

6 years ago
Component: Untriaged → General
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.