building AlljoynJS on OpenWrt (ar71xx arch) - duktape error

asked 2015-02-26 05:51:32 -0700

arinaldi gravatar image

updated 2015-02-27 10:08:56 -0700

Hello folks,

I am having some troubles when building from source the latest commit of alljoynjs signed off as :


as prerequisites I'm using the stable versions of ajtcl and base_tcl, the 14.12 tarballs. Duktape was also updated to version 1.1.1 (the latest version).

duk_replacements.c:78:18: warning: 'duk_repl_isinf' defined but not used [-Wunused-function]
mips-openwrt-linux-uclibc-gcc -o build/release/alljoynjs -L/home/arturo/temp/openwrt_sdk/staging_dir/target-mips_r2_uClibc- -L/home/arturo/temp/openwrt_sdk/staging_dir/target-mips_r2_uClibc- -L/home/arturo/temp/openwrt_sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc- -L/home/arturo/temp/openwrt_sdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc- -lajtcl_services -s build/release/ajs.o build/release/ajs_attach.o build/release/ajs_console.o build/release/ajs_cps.o build/release/ajs_ctrlpanel.o build/release/ajs_extstr.o build/release/ajs_io.o build/release/ajs_handlers.o build/release/ajs_heap.o build/release/ajs_marshal.o build/release/ajs_msgloop.o build/release/ajs_notif.o build/release/ajs_propstore.o build/release/ajs_services.o build/release/ajs_sessions.o build/release/ajs_tables.o build/release/ajs_timer.o build/release/ajs_translations.o build/release/ajs_unmarshal.o build/release/ajs_util.o build/release/ajs_debugger.o build/release/ajs_obs_stubs.o build/release/linux/ajs_main.o build/release/linux/ajs_malloc.o build/release/linux/lininoio/io_adc.o build/release/linux/lininoio/io_gpio.o build/release/linux/lininoio/io_i2c.o build/release/linux/lininoio/io_info.o build/release/linux/lininoio/io_stubs.o /home/arturo/temp/openwrt_sdk/staging_dir/target-mips_r2_uClibc- -L/home/arturo/temp/openwrt_sdk/build_dir/target-mips_r2_uClibc- -lm -lcrypto -lpthread -lrt -lajtcl
build/release/ajs_console.o: In function `AJS_ConsoleMsgHandler':
ajs_console.c:(.text+0xb88): undefined reference to `duk_debugger_attach'
collect2: ld returned 1 exit status
scons: *** [build/release/alljoynjs] Error 1
scons: building terminated because of errors.
make[2]: *** [/home/arturo/temp/openwrt_sdk/build_dir/target-mips_r2_uClibc-] Error 2
make[2]: Leaving directory `/home/arturo/temp/openwrt_sdk/package/linino/ajtcl-alljoynjs'

any ideas if I should expect some patch from the developers ? It seems like a definition is missing in the duktape headers.....

Regards, Arturo

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2015-02-26 09:14:30 -0700

jprestwo gravatar image

updated 2015-02-26 16:01:26 -0700

The current releases of duktape don't have that functionality yet. You have to get a prebuilt snapshot of master (easier than the git repo because then you don't actually need to build duktape before building AllJoyn.js). http://duktape.org/snapshots/duktape-master.tar.xz

edit flag offensive delete publish link more

answered 2015-02-26 06:15:43 -0700

markus_andreasson gravatar image

updated 2015-02-26 08:21:21 -0700

I had similar problems and used the tip of duktape instead of a tagged version (git checkout master), then alljoyn-js built properly. Of course, it assumes that you have duktape as a git repository. I have filed a bug in Jira: https://jira.allseenalliance.org/browse/ASACORE-1550 . I'm not sure I addressed the right project though... :-/


edit flag offensive delete publish link more

answered 2015-02-27 10:08:26 -0700

arinaldi gravatar image

After pointing to the lastest snapshot of duktape and alljoyn-js, I was to build the latest one without any hassle ! Thank you very much for helping me !

Kind Regard again, Arturo

edit flag offensive delete publish link more


In the future please comment under an answer, not post an answer, for a post like this. Thanks

jprestwo ( 2015-02-27 11:03:10 -0700 )edit

thank you for your advice about the forum posts. I'm really sorry If I did wrong. Kind Regards, Arturo

arinaldi ( 2015-02-27 15:10:39 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-02-26 05:51:32 -0700

Seen: 244 times

Last updated: Feb 27 '15