Closed
Bug 556048
Opened 15 years ago
Closed 15 years ago
FreeBSD Firefox builds fail in mozilla/memory/mozalloc.cpp due to missing include
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 550666
People
(Reporter: leighton, Unassigned)
Details
Attachments
(1 file)
832 bytes,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10
Build Identifier: mozilla-central rev. e3de007bd5b9
In early March 2010 mozilla/memeory/mozalloc.cpp was introduced to the code base and since that time FreeBSD builds fail. mozalloc.cpp calls valloc, but doesn't include the unistd.h header file, which is required for valloc on FreeBSD.
Reproducible: Always
Steps to Reproduce:
1. Pull mozilla-central source from anytime after mozalloc.cpp was introduced (early March 2010)
2. Build Firefox on FreeBSD
3.
Actual Results:
c++ -o mozalloc.o -c -DOSTYPE=\"FreeBSD7\" -DOSARCH=FreeBSD
-I../../../memory/mozalloc -I. -I../../dist/include
-I../../dist/include/nsprpub
-I/home/leighton/development/firefox/source/sctp/trunk/mozilla/obj-ff-dbg-no-sctp/dist/include/nspr
-I/home/leighton/development/firefox/source/sctp/trunk/mozilla/obj-ff-dbg-no-sctp/dist/include/nss
-fPIC -I/usr/local/include -fno-rtti -fno-exceptions -Wall
-Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy
-Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros
-Werror=return-type -Wno-long-long -pedantic -fno-strict-aliasing -fshort-wchar
-pipe -DDEBUG -D_DEBUG -DDEBUG_leighton -DTRACING -g -I/usr/local/include
-DMOZILLA_CLIENT -include ../../mozilla-config.h -Wp,-MD,.deps/mozalloc.pp
../../../memory/mozalloc/mozalloc.cpp
../../../memory/mozalloc/mozalloc.cpp: In function 'void* moz_xvalloc(size_t)':
../../../memory/mozalloc/mozalloc.cpp:196: error: 'valloc' was not declared in
this scope
../../../memory/mozalloc/mozalloc.cpp: In function 'void* moz_valloc(size_t)':
../../../memory/mozalloc/mozalloc.cpp:206: error: 'valloc' was not declared in
this scope
Expected Results:
Successful build
See comments on bug 550692.
Reporter | ||
Comment 1•15 years ago
|
||
Duplicate of bug 550666?
Reporter | ||
Comment 3•15 years ago
|
||
Exactly the same - sorry I missed that one.
Updated•15 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•