Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ttyd not compiling on LEDE. #8

Closed
danielpetre opened this issue Sep 29, 2016 · 12 comments
Closed

ttyd not compiling on LEDE. #8

danielpetre opened this issue Sep 29, 2016 · 12 comments
Labels

Comments

@danielpetre
Copy link

Hi, ttyd won't compile on latest LEDE:

make[3]: Entering directory '/home/dani/LEDE/feeds/packages/utils/ttyd'
CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/dani/LEDE/build_dir/target-mips_24kc_musl-1.1.15/ttyd-1.0.0:ttyd-1.0.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -I/home/dani/LEDE/staging_dir/target-mips_24kc_musl-1.1.15/usr/include -I/home/dani/LEDE/staging_dir/target-mips_24kc_musl-1.1.15/include -I/home/dani/LEDE/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.15/usr/include -I/home/dani/LEDE/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.15/include/fortify -I/home/dani/LEDE/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.15/include " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/dani/LEDE/build_dir/target-mips_24kc_musl-1.1.15/ttyd-1.0.0:ttyd-1.0.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -I/home/dani/LEDE/staging_dir/target-mips_24kc_musl-1.1.15/usr/include -I/home/dani/LEDE/staging_dir/target-mips_24kc_musl-1.1.15/include -I/home/dani/LEDE/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.15/usr/include -I/home/dani/LEDE/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.15/include/fortify -I/home/dani/LEDE/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.15/include " LDFLAGS="-L/home/dani/LEDE/staging_dir/target-mips_24kc_musl-1.1.15/usr/lib -L/home/dani/LEDE/staging_dir/target-mips_24kc_musl-1.1.15/lib -L/home/dani/LEDE/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.15/usr/lib -L/home/dani/LEDE/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.15/lib -znow -zrelro " make -j1 -C /home/dani/LEDE/build_dir/target-mips_24kc_musl-1.1.15/ttyd-1.0.0/. AR="mips-openwrt-linux-musl-gcc-ar" AS="mips-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/dani/LEDE/build_dir/target-mips_24kc_musl-1.1.15/ttyd-1.0.0:ttyd-1.0.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mips-openwrt-linux-musl-ld NM="mips-openwrt-linux-musl-gcc-nm" CC="mips-openwrt-linux-musl-gcc" GCC="mips-openwrt-linux-musl-gcc" CXX="mips-openwrt-linux-musl-g++" RANLIB="mips-openwrt-linux-musl-gcc-ranlib" STRIP=mips-openwrt-linux-musl-strip OBJCOPY=mips-openwrt-linux-musl-objcopy OBJDUMP=mips-openwrt-linux-musl-objdump SIZE=mips-openwrt-linux-musl-size CROSS="mips-openwrt-linux-musl-" ARCH="mips" ;
make[4]: Entering directory '/home/dani/LEDE/build_dir/target-mips_24kc_musl-1.1.15/ttyd-1.0.0'
make[5]: Entering directory '/home/dani/LEDE/build_dir/target-mips_24kc_musl-1.1.15/ttyd-1.0.0'
make[6]: Entering directory '/home/dani/LEDE/build_dir/target-mips_24kc_musl-1.1.15/ttyd-1.0.0'
[ 16%] Generating html.h from index.html
/bin/sh: CMAKE_XXD-NOTFOUND: command not found
make[6]: *** [CMakeFiles/ttyd.dir/build.make:62: html.h] Error 127
make[6]: Leaving directory '/home/dani/LEDE/build_dir/target-mips_24kc_musl-1.1.15/ttyd-1.0.0'
make[5]: *** [CMakeFiles/Makefile2:67: CMakeFiles/ttyd.dir/all] Error 2
make[5]: Leaving directory '/home/dani/LEDE/build_dir/target-mips_24kc_musl-1.1.15/ttyd-1.0.0'
make[4]: *** [Makefile:128: all] Error 2
make[4]: Leaving directory '/home/dani/LEDE/build_dir/target-mips_24kc_musl-1.1.15/ttyd-1.0.0'
make[3]: *** [Makefile:51: /home/dani/LEDE/build_dir/target-mips_24kc_musl-1.1.15/ttyd-1.0.0/.built] Error 2
make[3]: Leaving directory '/home/dani/LEDE/feeds/packages/utils/ttyd'
make[2]: *** [package/Makefile:128: package/feeds/packages/ttyd/compile] Error 2
make[2]: Leaving directory '/home/dani/LEDE'
make[1]: *** [package/Makefile:124: /home/dani/LEDE/staging_dir/target-mips_24kc_musl-1.1.15/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/dani/LEDE'
make: *** [/home/dani/LEDE/include/toplevel.mk:195: world] Error 2

@tsl0922
Copy link
Owner

tsl0922 commented Sep 29, 2016

xxd not found, if you are using ubuntu, try: sudo apt-get install vim-common

@danielpetre
Copy link
Author

I actually use Arch Linux.

@danielpetre
Copy link
Author

Installed vim-runtime and now it compiles but it seems it cannot be finished:

Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for ttyd:
 *  openssl * 
 * opkg_install_cmd: Cannot install package ttyd.
make[2]: *** [package/Makefile:59: package/install] Error 255
make[2]: Leaving directory '/home/dani/LEDE'
make[1]: *** [package/Makefile:125: /home/dani/LEDE/staging_dir/target-mips_24kc_musl-1.1.15/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/dani/LEDE'
make: *** [/home/dani/LEDE/include/toplevel.mk:195: world] Error 2

@tsl0922
Copy link
Owner

tsl0922 commented Sep 30, 2016

Replace the openssl dep with libopenssl and try again, old versions of
openwrt may have this issue.

Daniel Petre notifications@github.com于2016年9月30日 周五08:08写道:

Installed vim-runtime and now it compiles but it seems it cannot be
finished:

Collected errors:

  • satisfy_dependencies_for: Cannot satisfy the following dependencies for ttyd:
  • openssl *
  • opkg_install_cmd: Cannot install package ttyd.
    make[2]: *** [package/Makefile:59: package/install] Error 255
    make[2]: Leaving directory '/home/dani/LEDE'
    make[1]: *** [package/Makefile:125: /home/dani/LEDE/staging_dir/target-mips_24kc_musl-1.1.15/stamp/.package_install] Error 2
    make[1]: Leaving directory '/home/dani/LEDE'
    make: *** [/home/dani/LEDE/include/toplevel.mk:195: world] Error 2


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#8 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABmkg0XM2QkbxgIWaKqtUbYeb9FPn9u_ks5qvFLigaJpZM4KKVbW
.

@danielpetre
Copy link
Author

Didn't i mentioned i am compiling latest LEDE ? And libopenssl is selected in.

@tsl0922
Copy link
Owner

tsl0922 commented Sep 30, 2016 via email

@danielpetre
Copy link
Author

Yes of course, nothing weird added on disabled..

@tsl0922
Copy link
Owner

tsl0922 commented Sep 30, 2016

OK, I will look into this issue later, thanks.

Daniel Petre notifications@github.com于2016年9月30日 周五08:24写道:

Yes of course, nothing weird added on disabled..


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#8 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABmkg493eUhQ29wrvI1YH09EAjPDsNcBks5qvFbSgaJpZM4KKVbW
.

@tsl0922 tsl0922 reopened this Sep 30, 2016
@tsl0922
Copy link
Owner

tsl0922 commented Sep 30, 2016

@danielpetre I mean change the openssl dep to libopenssl in the Makefile, then run make package/feeds/packages/ttyd/compile, can you try this again?

DEPENDS:=+libopenssl +libjson-c +libpthread +libwebsockets-openssl

@danielpetre
Copy link
Author

Works now ! Thanks ! 111K.. kindof big..

@tsl0922
Copy link
Owner

tsl0922 commented Sep 30, 2016

Great, I'll submit this patch to the package feed later.

@SuperSandro2000
Copy link

On Debian based systems you miss xxd.

kevincox pushed a commit to kevincox/ttyd that referenced this issue Mar 28, 2022
…sl0922#8)

* Add reset timer event handler for various keyboard and mouse actions

* Increase the retry timeout to be greater than one minute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants