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

FreeBSD debugger: ld-elf.so.1: /usr/local/lib/librz_debug.so.0.5: Undefined symbol "kinfo_getproc" #3131

Closed
Tracked by #3072
XVilka opened this issue Oct 26, 2022 · 1 comment

Comments

@XVilka
Copy link
Member

XVilka commented Oct 26, 2022

Work environment

Questions Answers
OS/arch/bits (mandatory) FreeBSD 13.1 x86_64
File format of the file you reverse (mandatory) ELF
Architecture/bits of the file (mandatory) x86_64
rizin -v full output, not truncated (mandatory) 3e52174

Expected behavior

No errors

Actual behavior

rizin@freebsd:~/rizin/rizin $ rizin -d /bin/ls
Process with PID 9568 started...
 -- Reduce the delta where flag resolving by address is used with cfg.delta
[0x801031f70]> di
ld-elf.so.1: /usr/local/lib/librz_debug.so.0.5: Undefined symbol "kinfo_getproc"
rizin@freebsd:~/rizin/rizin $ uname -a
FreeBSD freebsd 13.1-RELEASE FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC amd64

Steps to reproduce the behavior

  • Compiler Rizin from git
  • rizin -d /bin/ls
  • Run di command

Looks like problem is in missing -lutil for the librz_debug.so during the linking (this is where kinfo_getproc() symbol is located)

@XVilka
Copy link
Member Author

XVilka commented Jan 8, 2023

Works now.

@XVilka XVilka closed this as completed Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant