Skip to content

Conversation

@pmhahn
Copy link

@pmhahn pmhahn commented Mar 24, 2025

readline is an optional dependency, but building without it failed:

bits/stdio2.h:112: undefined reference to short_command' libdebugger/cmd.c:384: undefined reference to add_history'
libdebugger/cmd.c:385: undefined reference to execute_line' libdebugger/cmd.c:387: undefined reference to add_history'
libdebugger/cmd_initialize.h:117: undefined reference to short_command' libdebugger/cmd_initialize.h:118: undefined reference to short_command'
libdebugger/cmd_initialize.h:124: undefined reference to short_command' libdebugger/cmd_initialize.h:349: undefined reference to short_command'
libdebugger/command/help.c:120: undefined reference to short_command' libdebugger/command/help.c:126: undefined reference to find_command'
libdebugger/command/set.c:124: undefined reference to whitespace' libdebugger/command/set.c:137: undefined reference to dbg_cmd_set_var'
libdebugger/command/setq.c:32: undefined reference to dbg_cmd_set_var' libdebugger/command/setqx.c:32: undefined reference to dbg_cmd_set_var'
libdebugger/command/show.c:115: undefined reference to dbg_cmd_show_command' libdebugger/command/source.c:74: undefined reference to execute_line'

Closes: #157

`readline` is an optional dependency, but building without it failed:

bits/stdio2.h:112: undefined reference to `short_command'
libdebugger/cmd.c:384: undefined reference to `add_history'
libdebugger/cmd.c:385: undefined reference to `execute_line'
libdebugger/cmd.c:387: undefined reference to `add_history'
libdebugger/cmd_initialize.h:117: undefined reference to `short_command'
libdebugger/cmd_initialize.h:118: undefined reference to `short_command'
libdebugger/cmd_initialize.h:124: undefined reference to `short_command'
libdebugger/cmd_initialize.h:349: undefined reference to `short_command'
libdebugger/command/help.c:120: undefined reference to `short_command'
libdebugger/command/help.c:126: undefined reference to `find_command'
libdebugger/command/set.c:124: undefined reference to `whitespace'
libdebugger/command/set.c:137: undefined reference to `dbg_cmd_set_var'
libdebugger/command/setq.c:32: undefined reference to `dbg_cmd_set_var'
libdebugger/command/setqx.c:32: undefined reference to `dbg_cmd_set_var'
libdebugger/command/show.c:115: undefined reference to `dbg_cmd_show_command'
libdebugger/command/source.c:74: undefined reference to `execute_line'

Closes: Trepan-Debuggers#157
Signed-off-by: Philipp Hahn <[email protected]>
@rocky
Copy link
Collaborator

rocky commented Mar 24, 2025

LGTM

@rocky rocky merged commit 3bb3220 into Trepan-Debuggers:remake-4-3 Mar 24, 2025
1 check passed
@pmhahn pmhahn deleted the readline branch March 25, 2025 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compile without readline fails

2 participants