mkschreder / orangerpcd

Websocket RPC server for OpenWRT
Other
27 stars 11 forks source link

build error #4

Closed animavitis closed 7 years ago

animavitis commented 8 years ago

I try to build openwrt with JUCI and always get same error.I try all combination of openwrt CC, openwrt DD & Juci from Master and v2.16.04

Make[5]: Entering directory '/home/anima/openwrt/build_dir/target-mips_34kc_musl-1.1.14/jucid-49c573252ed8a1c0972d241a30364d717237b31a/src'
mips-openwrt-linux-musl-gcc -DPACKAGE_NAME=\"jucid\" -DPACKAGE_TARNAME=\"jucid\" -DPACKAGE_VERSION=\"0.1.0\" -DPACKAGE_STRING=\"jucid\ 0.1.0\" -DPACKAGE_BUGREPORT=\"mkschreder.uk@gmail.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"jucid\" -DVERSION=\"0.1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LUA_H=1 -DHAVE_UCI_H=1 -I.   -I/home/anima/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include -I/home/anima/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/include -I/home/anima/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/usr/include -I/home/anima/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include/fortify -I/home/anima/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include  -std=gnu99 -Wall -Werror -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/anima/openwrt/build_dir/target-mips_34kc_musl-1.1.14/jucid-49c573252ed8a1c0972d241a30364d717237b31a:jucid-49c573252ed8a1c0972d241a30364d717237b31a -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -MT revorpcd-juci.o -MD -MP -MF .deps/revorpcd-juci.Tpo -c -o revorpcd-juci.o `test -f 'juci.c' || echo './'`juci.c
juci.c: In function '_load_session_acls':
juci.c:265:13: error: 'GLOB_TILDE' undeclared (first use in this function)
  glob(path, GLOB_TILDE, NULL, &glob_result);
             ^
juci.c:265:13: note: each undeclared identifier is reported only once for each function it appears in
Makefile:462: recipe for target 'revorpcd-juci.o' failed
make[5]: *** [revorpcd-juci.o] Error 1
make[5]: Leaving directory '/home/anima/openwrt/build_dir/target-mips_34kc_musl-1.1.14/jucid-49c573252ed8a1c0972d241a30364d717237b31a/src'
Makefile:338: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/home/anima/openwrt/build_dir/target-mips_34kc_musl-1.1.14/jucid-49c573252ed8a1c0972d241a30364d717237b31a'
Makefile:45: recipe for target '/home/anima/openwrt/build_dir/target-mips_34kc_musl-1.1.14/jucid-49c573252ed8a1c0972d241a30364d717237b31a/.built' failed
make[3]: *** [/home/anima/openwrt/build_dir/target-mips_34kc_musl-1.1.14/jucid-49c573252ed8a1c0972d241a30364d717237b31a/.built] Error 2
make[3]: Leaving directory '/home/anima/openwrt/feeds/juci/jucid'
package/Makefile:196: recipe for target 'package/feeds/juci/jucid/compile' failed
make[2]: *** [package/feeds/juci/jucid/compile] Error 2
make[2]: Leaving directory '/home/anima/openwrt'
package/Makefile:193: recipe for target '/home/anima/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/stamp/.package_compile' failed
make[1]: *** [/home/anima/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/anima/openwrt'
/home/anima/openwrt/include/toplevel.mk:192: polecenia dla obiektu 'world' nie powiodły się
make: *** [world] Błąd 2

any idea what im doing wrong??

mkschreder commented 8 years ago

You are probably building with musl and it does not have GLOB_TILDE (home directory tilde expansion in paths). You can just set that parameter to NULL in this case. Use v2.16.02 for now. 2.16.04 is still experimental. On 29 Apr 2016 21:46, "animavitis" notifications@github.com wrote:

I try to build openwrt with JUCI and always get same error.I try all combination of openwrt CC, openwrt DD & Juci from Master and v2.16.04

Make[5]: Entering directory '/home/anima/openwrt/build_dir/target-mips_34kc_musl-1.1.14/jucid-49c573252ed8a1c0972d241a30364d717237b31a/src' mips-openwrt-linux-musl-gcc -DPACKAGE_NAME=\"jucid\" -DPACKAGE_TARNAME=\"jucid\" -DPACKAGE_VERSION=\"0.1.0\" -DPACKAGE_STRING=\"jucid\ 0.1.0\" -DPACKAGE_BUGREPORT=\"mkschreder.uk@gmail.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"jucid\" -DVERSION=\"0.1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LUA_H=1 -DHAVE_UCI_H=1 -I. -I/home/anima/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include -I/home/anima/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/include -I/home/anima/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/usr/include -I/home/anima/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include/fortify -I/home/anima/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include -std=gnu99 -Wall -Werror -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/anima/openwrt/build_dir/target-mips_34kc_musl-1.1.14/jucid-49c573252ed8a1c0972d241a30364d717237b31a:jucid-49c573252ed8a1c0972d241a30364d717237b31a -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -MT revorpcd-juci.o -MD -MP -MF .deps/revorpcd-juci.Tpo -c -o revorpcd-juci.o test -f 'juci.c' || echo './'juci.c juci.c: In function '_load_session_acls': juci.c:265:13: error: 'GLOB_TILDE' undeclared (first use in this function) glob(path, GLOB_TILDE, NULL, &glob_result); ^ juci.c:265:13: note: each undeclared identifier is reported only once for each function it appears in Makefile:462: recipe for target 'revorpcd-juci.o' failed make[5]: * [revorpcd-juci.o] Error 1 make[5]: Leaving directory '/home/anima/openwrt/build_dir/target-mips_34kc_musl-1.1.14/jucid-49c573252ed8a1c0972d241a30364d717237b31a/src' Makefile:338: recipe for target 'all-recursive' failed make[4]: * [all-recursive] Error 1 make[4]: Leaving directory '/home/anima/openwrt/build_dir/target-mips_34kc_musl-1.1.14/jucid-49c573252ed8a1c0972d241a30364d717237b31a' Makefile:45: recipe for target '/home/anima/openwrt/build_dir/target-mips_34kc_musl-1.1.14/jucid-49c573252ed8a1c0972d241a30364d717237b31a/.built' failed make[3]: * [/home/anima/openwrt/build_dir/target-mips_34kc_musl-1.1.14/jucid-49c573252ed8a1c0972d241a30364d717237b31a/.built] Error 2 make[3]: Leaving directory '/home/anima/openwrt/feeds/juci/jucid' package/Makefile:196: recipe for target 'package/feeds/juci/jucid/compile' failed make[2]: * [package/feeds/juci/jucid/compile] Error 2 make[2]: Leaving directory '/home/anima/openwrt' package/Makefile:193: recipe for target '/home/anima/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/stamp/.package_compile' failed make[1]: * [/home/anima/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/anima/openwrt' /home/anima/openwrt/include/toplevel.mk:192: polecenia dla obiektu 'world' nie powiodły się make: * [world] Błąd 2

any idea what im doing wrong??

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/mkschreder/jucid/issues/4

animavitis commented 8 years ago

i tried to bild v2.16.02 and get another error, this time on luaposix33:

#install -m0755 /home/anima/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/luaposix-release-v33.3.1/lib/posix.lua /home/anima/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/luaposix-release-v33.3.1/ipkg-x86/luaposix33/usr/lib/lua
#install -m0755 /home/anima/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/luaposix-release-v33.3.1/lib/curses.lua /home/anima/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/luaposix-release-v33.3.1/ipkg-x86/luaposix33/usr/lib/lua
find /home/anima/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/luaposix-release-v33.3.1/ipkg-x86/luaposix33 -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
Package luaposix33 is missing dependencies for the following libraries:
libncursesw.so.5

for sure i have ncusres installed on my Ubuntu:)

kraj commented 8 years ago

Here is a patch to fix it

https://github.com/kraj/meta-openwrt/blob/master/recipes-core/juci/jucid/0001-GLOB_TILDE-is-not-defined-in-posix-therefore-not-imp.patch

mkschreder commented 8 years ago

Better set i to null because it does not matter in the situation where it is used. I will fix it. On 14 May 2016 22:38, "Khem Raj" notifications@github.com wrote:

Here is a patch to fix it

https://github.com/kraj/meta-openwrt/blob/master/recipes-core/juci/jucid/0001-GLOB_TILDE-is-not-defined-in-posix-therefore-not-imp.patch

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/mkschreder/jucid/issues/4#issuecomment-219250409