six-ddc / hss

An interactive parallel ssh client featuring autocomplete and asynchronous execution.
MIT License
353 stars 23 forks source link

recipe for target 'all' failed #4

Closed zxfrank closed 5 years ago

zxfrank commented 6 years ago

Hello, I ran into an issue while compiling:

cc -I/usr/local/opt/readline/include -O3 -Wall -lreadline main.o sstring.o slot.o completion.o executor.o -o hss 
main.o: In function `print_version':
main.c:(.text+0x20f): undefined reference to `rl_library_version'
main.o: In function `parse_opts':
main.c:(.text+0x2ca): undefined reference to `rl_editing_mode'
main.o: In function `main':
main.c:(.text.startup+0x6b): undefined reference to `rl_startup_hook'
main.c:(.text.startup+0x76): undefined reference to `rl_readline_name'
main.c:(.text.startup+0x7f): undefined reference to `rl_initialize'
main.c:(.text.startup+0x84): undefined reference to `using_history'
main.c:(.text.startup+0xbc): undefined reference to `read_history'
main.c:(.text.startup+0xc3): undefined reference to `rl_attempted_completion_function'
main.c:(.text.startup+0xef): undefined reference to `rl_reset_screen_size'
main.c:(.text.startup+0x111): undefined reference to `readline'
main.c:(.text.startup+0x159): undefined reference to `add_history'
main.c:(.text.startup+0x163): undefined reference to `write_history'
main.c:(.text.startup+0x17e): undefined reference to `rl_free'
completion.o: In function `filepath_generator':
completion.c:(.text+0xa5): undefined reference to `rl_completion_suppress_append'
completion.c:(.text+0xbe): undefined reference to `rl_completion_suppress_append'
completion.o: In function `remote_filepath_completion_func':
completion.c:(.text+0x219): undefined reference to `rl_completion_matches'
completion.c:(.text+0x229): undefined reference to `rl_attempted_completion_over'
collect2: error: ld returned 1 exit status
Makefile:30: recipe for target 'all' failed
make: *** [all] Error 1

LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:printing-9.20160110ubuntu0.2-amd64:printing-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch Distributor ID: Ubuntu Description: Ubuntu 16.04.4 LTS Release: 16.04 Codename: xenial

4.15.0-36-generic #39~16.04.1-Ubuntu SMP x86_64

GNU Make 4.1 Built for x86_64-pc-linux-gnu

six-ddc commented 5 years ago

fix it.

six-ddc commented 5 years ago

ref https://github.com/six-ddc/hss/commit/0b63985c8af4ab5de6f797ce843faca61d10f54a