Closed Bug 510100 Opened 15 years ago Closed 11 years ago

Spidermonkey calls malloc in a header, breaks dehydra build

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: cjones, Unassigned)

References

Details

Tip is changeset 31336:606abb99b43a.

Configuring dehydra as

$ CXX=../installed/bin/g++ ./configure --js-libs=/home/cjones/mozilla/ff-opt/js/src/ --js-headers=/home/cjones/mozilla/mozilla-central/js/src/

then running

$ make

gives the error

cc -MD -g3 -Wall -fPIC -DXP_UNIX -DIN_GCC -DHAVE_CONFIG_H  -I/home/cjones/gcc-dehydra/gcc-build/gcc -I/home/cjones/gcc-dehydra/gcc-4.3.0/gcc -I/home/cjones/gcc-dehydra/gcc-4.3.0/gcc/. -I/home/cjones/gcc-dehydra/gcc-4.3.0/gcc/../include -I/home/cjones/gcc-dehydra/gcc-4.3.0/gcc/../libcpp/include -I/home/cjones/gcc-dehydra/gcc-4.3.0/gcc/../libdecnumber -I/home/cjones/gcc-dehydra/gcc-4.3.0/gcc/../libdecnumber/bid -I/home/cjones/gcc-dehydra/gcc-build/libdecnumber -I/home/cjones/gcc-dehydra/gcc-build -I/home/cjones/mozilla/mozilla-central/js/src/ -I/home/cjones/mozilla/ff-opt/js/src -I//home/cjones/local/include/js/   -c dehydra_plugin.c
In file included from /home/cjones/mozilla/mozilla-central/js/src/jsapi.h:50,
                 from cp-tree-jsapi-workaround.h:6,
                 from gcc_cp_headers.h:26,
                 from dehydra_plugin.c:3:
/home/cjones/mozilla/mozilla-central/js/src/jsutil.h:186:12: error: attempt to use poisoned "malloc"
/home/cjones/mozilla/mozilla-central/js/src/jsutil.h:192:12: error: attempt to use poisoned "calloc"
/home/cjones/mozilla/mozilla-central/js/src/jsutil.h:198:12: error: attempt to use poisoned "realloc"
Blocks: 437502
(No way this is relevant anymore.)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.