So, I'm trying to get APE running on a DreamPlug with an ARM processor. I've installed the prereqs, and I have the linux headers (though I'm not sure where to put them) and I'm getting an error about spidermonkey not being able to find a file that I can see plain as day is right there in /deps/js/src. (jsapi.h)
Any help would be appreciated. Here's stuff you probably want to know:
make lib
make[1]: Entering directory `/root/APE-Source/APE-Project-APE_Server-7368a9c/modules/deps/mysac'
make[1]: Nothing to be done for `lib'.
make[1]: Leaving directory `/root/APE-Source/APE-Project-APE_Server-7368a9c/modules/deps/mysac'
rm -f udns_dn.o udns_dntosp.o udns_parse.o udns_resolver.o udns_init.o udns_misc.o udns_XtoX.o udns_rr_a.o udns_rr_ptr.o udns_rr_mx.o udns_rr_txt.o udns_bl.o udns_rr_srv.o udns_rr_naptr.o udns_codes.o
rm -f udns_dn.lo udns_dntosp.lo udns_parse.lo udns_resolver.lo udns_init.lo udns_misc.lo udns_XtoX.lo udns_rr_a.lo udns_rr_ptr.lo udns_rr_mx.lo udns_rr_txt.lo udns_bl.lo udns_rr_srv.lo udns_rr_naptr.lo udns_codes.lo
rm -f dnsget.o rblcheck.o ex-rdns.o
rm -f build-stamp config.log
configure... udns package
checking for C compiler... gcc
checking whenever C compiler (gcc) is GNU CC... yes
checking whenever the C compiler (gcc -Wall -W -O2 -pipe)
can produce executables... yes
checking for ranlib... ranlib
checking for getopt()... yes
checking for inet_pton() && inet_ntop()... yes
checking for socklen_t... yes
checking for libraries needed for socket and connect... ok (none needed)
checking for IPv6... yes
checking for poll()... yes
creating config.h... unchanged
creating Makefile... ok
creating config.status... ok
all done.
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_dn.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_dntosp.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_parse.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_resolver.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_init.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_misc.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_XtoX.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_rr_a.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_rr_ptr.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_rr_mx.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_rr_txt.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_bl.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_rr_srv.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_rr_naptr.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_codes.c
rm -f libudns.a
ar rv libudns.a udns_dn.o udns_dntosp.o udns_parse.o udns_resolver.o udns_init.o udns_misc.o udns_XtoX.o udns_rr_a.o udns_rr_ptr.o udns_rr_mx.o udns_rr_txt.o udns_bl.o udns_rr_srv.o udns_rr_naptr.o udns_codes.o
a - udns_dn.o
a - udns_dntosp.o
a - udns_parse.o
a - udns_resolver.o
a - udns_init.o
a - udns_misc.o
a - udns_XtoX.o
a - udns_rr_a.o
a - udns_rr_ptr.o
a - udns_rr_mx.o
a - udns_rr_txt.o
a - udns_bl.o
a - udns_rr_srv.o
a - udns_rr_naptr.o
a - udns_codes.o
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c dnsget.c
gcc -Wall -W -O2 -pipe -o dnsget dnsget.o -L. -ludns
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c rblcheck.c
gcc -Wall -W -O2 -pipe -o rblcheck rblcheck.o -L. -ludns
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c ex-rdns.c
gcc -Wall -W -O2 -pipe -o ex-rdns ex-rdns.o -L. -ludns
loading cache ./config.cache
checking host system type... armv5tel-unknown-linux-gnueabi
checking target system type... armv5tel-unknown-linux-gnueabi
checking build system type... armv5tel-unknown-linux-gnueabi
checking for mawk... (cached) mawk
checking for perl5... (cached) /usr/bin/perl
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for c++... (cached) c++
checking whether the C++ compiler (c++ ) works... yes
checking whether the C++ compiler (c++ ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking for as... (cached) /usr/bin/as
checking for ar... (cached) ar
checking for ld... (cached) ld
checking for strip... (cached) strip
checking for windres... no
checking whether gcc and cc understand -c and -o together... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking how to run the C++ preprocessor... (cached) c++ -E
checking for sb-conf... no
checking for ve... no
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln -s works... (cached) yes
checking for minimum required perl version >= 5.006... 5.010001
checking for full perl installation... yes
checking for python2.7... (cached) /usr/bin/python2.6
checking for doxygen... (cached) :
checking for autoconf... (cached) :
checking for unzip... (cached) /usr/bin/unzip
checking for zip... (cached) /usr/bin/zip
checking for makedepend... no
checking for xargs... (cached) /usr/bin/xargs
checking for gmake... (cached) /usr/bin/make
checking for X... (cached) no
checking whether the compiler supports -Wno-invalid-offsetof... yes
checking whether the compiler supports -Wno-variadic-macros... yes
checking whether the compiler supports -Werror=return-type... yes
checking whether ld has archive extraction flags... (cached) yes
checking that static assertion macros used in autoconf tests work... (cached) yes
checking for 64-bit OS... no
checking for Python version >= 2.5 but not 3.x... yes
checking for ANSI C header files... (cached) yes
checking for working const... (cached) yes
checking for mode_t... (cached) yes
checking for off_t... (cached) yes
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking for __stdcall... (cached) no
checking for ssize_t... (cached) yes
checking for st_blksize in struct stat... (cached) yes
>> NOTE: Somewhere in here it should check "C++ specification for temporary object <<
>> destruction order" which my setup fails. I commented that check out just to see what the <<
>> next sticking point would be. If you have any idea how I can fix that, it'd be great! :) <<
checking for siginfo_t... (cached) yes
checking for stdint.h... (cached) yes
checking for the size of void*... (cached) 4
checking for the alignment of void*... (cached) 4
checking for the size of double... (cached) 8
checking for int16_t... (cached) yes
checking for int32_t... (cached) yes
checking for int64_t... (cached) yes
checking for int64... (cached) no
checking for uint... (cached) yes
checking for uint_t... (cached) no
checking for uint16_t... (cached) no
checking for uname.domainname... (cached) yes
checking for uname.__domainname... (cached) no
checking for visibility(hidden) attribute... (cached) yes
checking for visibility(default) attribute... (cached) yes
checking for visibility pragma support... (cached) yes
checking For gcc visibility bug with class-level attributes (GCC bug 26905)... (cached) yes
checking For x86_64 gcc visibility bug with builtins (GCC bug 20297)... (cached) no
checking for __force_align_arg_pointer__ attribute... (cached) no
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking for sys/byteorder.h... (cached) no
checking for compat.h... (cached) no
checking for getopt.h... (cached) yes
checking for sys/bitypes.h... (cached) yes
checking for memory.h... (cached) yes
checking for unistd.h... (cached) yes
checking for gnu/libc-version.h... (cached) yes
checking for nl_types.h... (cached) yes
checking for malloc.h... (cached) yes
checking for X11/XKBlib.h... (cached) no
checking for io.h... (cached) no
checking for sys/statvfs.h... (cached) yes
checking for sys/statfs.h... (cached) yes
checking for sys/vfs.h... (cached) yes
checking for sys/mount.h... (cached) yes
checking for sys/quota.h... (cached) yes
checking for linux/quota.h... (cached) yes
checking for mmintrin.h... (cached) yes
checking for new... (cached) yes
checking for sys/cdefs.h... (cached) yes
checking for linux/perf_event.h... (cached) yes
checking for gethostbyname_r in -lc_r... (cached) no
checking for library containing dlopen... (cached) -ldl
checking for dlfcn.h... (cached) yes
checking for dladdr... (cached) yes
checking for socket in -lsocket... (cached) no
checking for ARM SIMD support in compiler... no
checking for ARM NEON support in compiler... yes
checking for pthread_create in -lpthreads... no
checking for pthread_create in -lpthread... yes
checking whether gcc accepts -pthread... yes
checking whether mmap() sees write()s... yes
checking whether gcc needs -traditional... (cached) no
checking for 8-bit clean memcmp... (cached) yes
checking for fchmod... (cached) yes
checking for flockfile... (cached) yes
checking for getc_unlocked... (cached) yes
checking for _getc_nolock... (cached) no
checking for getpagesize... (cached) yes
checking for lchown... (cached) yes
checking for localtime_r... (cached) yes
checking for lstat64... (cached) yes
checking for memmove... (cached) yes
checking for random... (cached) yes
checking for rint... (cached) no
checking for sbrk... (cached) yes
checking for snprintf... (cached) yes
checking for stat64... (cached) yes
checking for statvfs... (cached) yes
checking for statvfs64... (cached) yes
checking for strerror... (cached) yes
checking for strtok_r... (cached) yes
checking for truncate64... (cached) yes
checking for clock_gettime(CLOCK_MONOTONIC) and -lrt... (cached) yes
checking for wcrtomb... (cached) yes
checking for mbrtowc... (cached) yes
checking for res_ninit()... (cached) yes
checking for gnu_get_libc_version()... (cached) yes
checking for iconv in -lc... (cached) yes
checking for iconv()... (cached) yes
checking for iconv() with const input... (cached) no
checking for an implementation of va_copy()... (cached) yes
checking for an implementation of __va_copy()... (cached) yes
checking whether va_lists can be copied by value... (cached) yes
checking for ARM EABI... (cached) yes
checking for gcc 3.0 ABI... (cached) yes
checking for C++ "explicit" keyword... (cached) yes
checking for C++ "typename" keyword... (cached) yes
checking for modern C++ template specialization syntax support... (cached) yes
checking whether partial template specialization works... (cached) yes
checking whether operators must be re-defined for templates derived from templates... (cached) no
checking whether we need to cast a derived template to pass as its base class... (cached) no
checking whether the compiler can resolve const ambiguities for templates... (cached) yes
checking whether the C++ "using" keyword can change access... (cached) yes
checking whether the C++ "using" keyword resolves ambiguity... (cached) yes
checking for "std::" namespace... (cached) yes
checking whether standard template operator!=() is ambiguous... (cached) unambiguous
checking for C++ reinterpret_cast... (cached) yes
checking for C++ dynamic_cast to void*... (cached) yes
checking whether C++ requires implementation of unused virtual methods... (cached) yes
checking for trouble comparing to zero near std::operator!=()... (cached) no
checking for __thread keyword for TLS variables... (cached) yes
checking for malloc.h... (cached) yes
checking for strndup... (cached) yes
checking for posix_memalign... (cached) yes
checking for memalign... (cached) yes
checking for valloc... (cached) yes
checking for __attribute__((always_inline))... (cached) yes
checking for __attribute__((malloc))... (cached) yes
checking for __attribute__((warn_unused_result))... (cached) yes
checking for __attribute__((noreturn))... (cached) yes
checking for LC_MESSAGES... (cached) yes
checking for localeconv... (cached) yes
checking for valid optimization flags... yes
checking for __cxa_demangle... (cached) yes
checking for unwind.h... (cached) yes
checking for _Unwind_Backtrace... (cached) yes
checking for gcc -pipe support... yes
checking whether C compiler supports -fprofile-generate... yes
checking whether C++ compiler has -pedantic long long bug... no
checking for correct overload resolution with const and templates... no
checking for tm_zone tm_gmtoff in struct tm... (cached) yes
checking for posix_fallocate... yes
checking for setlocale... (cached) yes
checking for localeconv... (cached) yes
creating ./config.status
creating js-config.h
js-config.h is unchanged
invoking make to create js-config script
rm -f js-config.tmp
-e 's|@prefix@|/usr/local|' \
-e 's|@exec_prefix@|/usr/local|' \
-e 's|@includedir@|/usr/local/include|' \
-e 's|@libdir@|/usr/local/lib|' \
-e 's|@MOZILLA_VERSION@||' \
-e 's|@LIBRARY_NAME@|mozjs185|' \
-e 's|@NSPR_CFLAGS@||' \
-e 's|@JS_CONFIG_LIBS@| -ldl -lm -ldl |' \
-e 's|@MOZ_JS_LIBS@|-L/usr/local/lib -lmozjs185|' \
&& mv js-config.tmp js-config && chmod +x js-config
make export
make[1]: Entering directory `/root/APE-Source/APE-Project-APE_Server-7368a9c/deps/js/src'
./jscpucfg > jsautocfg.tmp
jskwgen.cpp
make[2]: Entering directory `/root/APE-Source/APE-Project-APE_Server-7368a9c/deps/js/src/config'
nsinstall.c
gcc -o host_nsinstall.o -c -Wall -W -Wno-unused -Wpointer-arith -W -pedantic -Wno-long-long -fno-strict-aliasing -pthread -march=armv7-a -marm -mfloat-abi=softfp -pipe -DNDEBUG -DTRIMMED -O3 -DXP_UNIX -O3 -DUNICODE -D_UNICODE -I. -I. -I../dist/include -I../dist/include/nsprpub nsinstall.c
pathsub.c
gcc -o host_pathsub.o -c -Wall -W -Wno-unused -Wpointer-arith -W -pedantic -Wno-long-long -fno-strict-aliasing -pthread -march=armv7-a -marm -mfloat-abi=softfp -pipe -DNDEBUG -DTRIMMED -O3 -DXP_UNIX -O3 -DUNICODE -D_UNICODE -I. -I. -I../dist/include -I../dist/include/nsprpub pathsub.c
c++ -DMDCPUCFG=\"md/_linux.cfg\" -o host_jskwgen.o -c -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -pedantic -Wno-long-long -fno-strict-aliasing -pthread -march=armv7-a -marm -mfloat-abi=softfp -pipe -DNDEBUG -DTRIMMED -O3 -fstrict-aliasing -fomit-frame-pointer -I. -I. -I./dist/include -I./dist/include/nsprpub -I. -I./assembler -I./yarr jskwgen.cpp
gcc -o nsinstall -Wall -W -Wno-unused -Wpointer-arith -W -pedantic -Wno-long-long -fno-strict-aliasing -pthread -march=armv7-a -marm -mfloat-abi=softfp -pipe -DNDEBUG -DTRIMMED -O3 -DXP_UNIX -O3 -DUNICODE -D_UNICODE -lpthread -Wl,-rpath-link,/bin -Wl,-rpath-link,/usr/local/lib host_nsinstall.o host_pathsub.o
/root/APE-Source/APE-Project-APE_Server-7368a9c/deps/js/src/config/nsinstall -R nsinstall ../dist/bin
make[2]: Leaving directory `/root/APE-Source/APE-Project-APE_Server-7368a9c/deps/js/src/config'
make[1]: Leaving directory `/root/APE-Source/APE-Project-APE_Server-7368a9c/deps/js/src'
gcc -D_GNU_SOURCE -Wall -g -minline-all-stringops -rdynamic -I ./deps/udns-0.0.9/ src/entry.c src/sock.c src/hash.c src/handle_http.c src/cmd.c src/users.c src/channel.c src/config.c src/json.c src/json_parser.c src/plugins.c src/http.c src/extend.c src/utils.c src/ticks.c src/base64.c src/pipe.c src/raw.c src/events.c src/event_kqueue.c src/event_epoll.c src/event_select.c src/transports.c src/servers.c src/dns.c src/sha1.c src/log.c src/parser.c src/md5.c -o bin/aped -ldl -lm -lpthread ./deps/udns-0.0.9/libudns.a -I ./deps/udns-0.0.9/
gcc -D_GNU_SOURCE -Wall -g -shared -fPIC -rdynamic -Wl,-soname,libmod_spidermonkey.so -o lib/libmod_spidermonkey.so libape-spidermonkey.c -I../deps/js/src/dist/include/ -L../deps/js/src/ -ljs_static -lstdc++ -L./deps/mysac/ -I./deps/mysac/ -lmysac -lmysqlclient_r
-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
cc1: error: unrecognized command line option "-minline-all-stringops"
make: *** [aped] Error 1
libape-spidermonkey.c:28:19: error: jsapi.h: No such file or directory
libape-spidermonkey.c:48: error: expected declaration specifiers or ‘...’ before ‘JSObject’
libape-spidermonkey.c:48: error: expected declaration specifiers or ‘...’ before ‘JSObject’
libape-spidermonkey.c:50: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
libape-spidermonkey.c:63: error: expected ‘)’ before ‘*’ token
libape-spidermonkey.c:66: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ape_sm_stub’
libape-spidermonkey.c:82: error: expected specifier-qualifier-list before ‘jsval’
libape-spidermonkey.c:87: error: expected declaration specifiers or ‘...’ before ‘JSObject’
libape-spidermonkey.c:87: error: expected declaration specifiers or ‘...’ before ‘JSObject’
libape-spidermonkey.c:93: error: expected specifier-qualifier-list before ‘JSObject’
... ... the reset are probably caused by "No such file or directory" above. ... ...
Thanks,
Jeremy
"Vah! Denuone Latine loquebar? Me ineptum. Interdum modo elabitur."