termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
13.33k stars 3.07k forks source link

Package Request: lrzsz zssh #506

Closed ghost closed 2 years ago

ghost commented 8 years ago

I am unix Administrator ,I need legacy file transfer via ssh for low speed connection. so I try to build these two packages for it.

ghost commented 8 years ago

although it's bad idea for transfer, it can pass through host-by-host connection.

ghost commented 8 years ago

libandroid-glob can't use for build

ghost commented 8 years ago

globbing.o: In function glob_args': /data/data/com.termux/files/home/zssh-1.5c/globbing.c:34: undefined reference toglob' /data/data/com.termux/files/home/zssh-1.5c/globbing.c:42: undefined reference to `globfree' clang-3.9: error: linker command failed with exit code 1 (use -v to see invocation)

its-pointless commented 8 years ago

You are building on device so it looks like its not linking libandroid-glob. In Makefile add -landroid-glob to libs =

also if you are using aarch64 comment out line 53 and 55 in completion.c

ghost commented 8 years ago

roid-glob make: [Makefile:74: ztelnet] Error 1 (ignored) ln zssh ztelnet ln: failed to create hard link 'ztelnet' => 'zssh': Permission denied make: *\ [Makefile:75: ztelnet] Error 1 $ ./zssh Segmentation fault (core dumped) $ ./zssh --hel[ Segmentation fault (core dumped) i had not changed the source code.but it fail.

its-pointless commented 8 years ago

Android can't do hard links. Which cpu arch you using?

its-pointless commented 8 years ago

Just do autoconf ./configure --prefix=/data/data/com.termux/files/usr LIBS="-landroid-glob" make -j4 make install

ghost commented 8 years ago

hard link is not the problem,i want ask for Segmentation fault for using aarch64 comment out line 53 and 55 in completion.c how to change it

its-pointless commented 8 years ago

https://github.com/its-pointless/lrzsz-apps here

ghost commented 8 years ago

I tried but zssh doesnot work and lrzsz package need change exec file name w/o l