wargio / r2dec-js

radare2 plugin - converts asm to pseudo-C code.
508 stars 48 forks source link

radare2: symbol lookup error: /root/.local/share/radare2/plugins/core_pdd.so: undefined symbol: r_cons_strcat #292

Closed OscarAbundez23 closed 12 months ago

OscarAbundez23 commented 1 year ago

Everytime I try to use r2dec with any of the pdd subcommands, radare2 crashes and shows me this error radare2: symbol lookup error: /root/.local/share/radare2/plugins/core_pdd.so: undefined symbol: r_cons_strcat

wargio commented 1 year ago

did you rebuild the plugin?

wargio commented 1 year ago

@trufae did you remove r_cons_strcat ? can i use r_cons_println ?

OscarAbundez23 commented 1 year ago

Rebuild? I don't know haha, I just installed it with r2pm -i r2dec, I don't know if it has anything to do with the fact that I am using it on a docker container

wargio commented 1 year ago

yes, you need to rebuild it via r2pm

OscarAbundez23 commented 1 year ago

Ok, sorry, I didn't know that, but there is no information on the installation and usage. And sorry again but, how I rebuild that? Should I reinstall r2?

wargio commented 1 year ago

The installation/usage issue should be brought on r2pm/r2 itself, since this usually happens when you update r2. just try to see what r2pm -h says. probably r2pm -i r2dec should be enough to rebuild r2dec. That said, is possible that pancake has removed r_cons_strcat so i might still need to do some changes.

OscarAbundez23 commented 1 year ago

Ooohh haha, ok, yes I had already tried to reinstall r2dec before with r2pm -i r2dec so I think maybe it needs some changes as you said

trufae commented 1 year ago

Yes, RCons.strcat was a very bad name, it's now RCons.print, but i decided to push few defines for backward compat and mark those apis as deprecated for r2-6.0.0, it should build now

OscarAbundez23 commented 12 months ago

Ok, It works now, thank you very much