zpao / spidernode

A port of node.js using the SpiderMonkey JS engine instead of V8. [NO LONGER MAINTAINED]
Other
212 stars 12 forks source link

Build Error on 2.6.32-100.34.1.el6uek.x86_64 #6

Open nikescar opened 12 years ago

nikescar commented 12 years ago

Build Error on rhel x64

[nikescar@localhost spidernode]$ ./configure --js-engine=mozjs
Checking for program g++ or c++          : /usr/bin/g++
Checking for program cpp                 : /usr/bin/cpp
Checking for program ar                  : /usr/bin/ar
Checking for program ranlib              : /usr/bin/ranlib
Checking for g++                         : ok
Checking for program gcc or cc           : /usr/bin/gcc
Checking for gcc                         : ok
Checking for library dl                  : yes
Checking for openssl                     : yes
Checking for library util                : yes
Checking for library rt                  : yes
Checking for CLOCK_MONOTONIC             : yes
--- libeio ---
Checking for library pthread             : yes
Checking for function pthread_create     : yes
Checking for function pthread_atfork     : yes
Checking for futimes(2)                  : yes
Checking for readahead(2)                : yes
Checking for fdatasync(2)                : yes
Checking for pread(2) and pwrite(2)      : yes
Checking for sendfile(2)                 : yes
Checking for sync_file_range(2)          : yes
--- libev ---
Checking for header sys/inotify.h        : yes
Checking for function inotify_init       : yes
Checking for header sys/epoll.h          : yes
Checking for function epoll_ctl          : yes
Checking for header port.h               : not found
Checking for header poll.h               : yes
Checking for function poll               : yes
Checking for header sys/event.h          : not found
Checking for header sys/queue.h          : yes
Checking for function kqueue             : not found
Checking for header sys/select.h         : yes
Checking for function select             : yes
Checking for header sys/eventfd.h        : yes
Checking for function eventfd            : yes
Checking for SYS_clock_gettime           : yes
Checking for library rt                  : yes
Checking for function clock_gettime      : yes
Checking for function nanosleep          : yes
Checking for function ceil               : yes
Checking for fdatasync(2) with c++       : yes
'configure' finished successfully (1.663s)
[nikescar@localhost spidernode]$
[nikescar@localhost spidernode]$ make
Waf: Entering directory `/home/nikescar/nodejssrc/spidernode/build'
DEST_OS: linux
DEST_CPU: x64
Parallel Jobs: 1
Product type: program
[102/149] cxx: src/node_main.cc -> build/default/src/node_main_7.o
/usr/bin/g++ -pthread -g -O3 -DMOZILLA_JS=1 -DHAVE_OPENSSL=1 -DHAVE_MONOTONIC_CLOCK=1 -DEV_FORK_ENABLE=0 -DEV_EMBED_ENABLE=0 -DEV_MULTIPLICITY=0 -DX_STACKSIZE=65536 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DEV_MULTIPLICITY=0 -DHAVE_FDATASYNC=1 -DPLATFORM="linux" -D__POSIX__=1 -Wno-unused-parameter -D_FORTIFY_SOURCE=2 -DNDEBUG -Idefault/src -I../src -Idefault/deps/libeio -I../deps/libeio -Idefault/deps/http_parser -I../deps/http_parser -Idefault/deps/libev -I../deps/libev -Idefault/deps/c-ares -I../deps/c-ares -Idefault/deps/c-ares/linux-x64 -I../deps/c-ares/linux-x64 -I/home/nikescar/nodejssrc/spidernode/build/default/deps/moz_obj/dist/include -I/home/nikescar/nodejssrc/spidernode/build/default/deps/moz_obj/dist/include/ ../src/node_main.cc -c -o default/src/node_main_7.o
In file included from /home/nikescar/nodejssrc/spidernode/build/default/deps/moz_obj/dist/include/jsprvtd.h:61,
                 from /home/nikescar/nodejssrc/spidernode/build/default/deps/moz_obj/dist/include/jsxdrapi.h:65,
                 from /home/nikescar/nodejssrc/spidernode/build/default/deps/moz_obj/dist/include/v8.h:6,
                 from ../src/node.h:27,
                 from ../src/node_main.cc:22:
/home/nikescar/nodejssrc/spidernode/build/default/deps/moz_obj/dist/include/js/HashTable.h: In static member function ‘static void js::detail::HashTable<T, HashPolicy, AllocPolicy>::staticAsserts()’:
/home/nikescar/nodejssrc/spidernode/build/default/deps/moz_obj/dist/include/js/HashTable.h:321: error: ‘UINT32_MAX’ was not declared in this scope
Waf: Leaving directory `/home/nikescar/nodejssrc/spidernode/build'
Build failed:  -> task failed (err #1):
        {task: cxx node_main.cc -> node_main_7.o}
make: *** [program] Error 1
[nikescar@localhost spidernode]$
zpao commented 12 years ago

As far as I can tell, UINT32_MAX is defined in stdint.h so it should be there...