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

Build error /usr/lib/libr_asm.so.0.9.1git: undefined reference to `r_str_subchr' #13

Closed
XVilka opened this Issue Sep 3, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@XVilka
Collaborator

XVilka commented Sep 3, 2012

from 'clean' clone of repo:

DIR r_print
make libr_print.so libr_print.a
make[4]: Entering directory /home/xvilka/radare2/libr/print' cc -c -MD -fPIC -g -Wall -DHAVE_LIB_GMP=1 -D__UNIX__=1 -I/home/xvilka/radare2/libr/include -o print.o print.c cc -c -MD -fPIC -g -Wall -DHAVE_LIB_GMP=1 -D__UNIX__=1 -I/home/xvilka/radare2/libr/include -o format.o format.c cc -c -MD -fPIC -g -Wall -DHAVE_LIB_GMP=1 -D__UNIX__=1 -I/home/xvilka/radare2/libr/include -o date.o date.c cc -c -MD -fPIC -g -Wall -DHAVE_LIB_GMP=1 -D__UNIX__=1 -I/home/xvilka/radare2/libr/include -o disasm.o disasm.c cc -c -MD -fPIC -g -Wall -DHAVE_LIB_GMP=1 -D__UNIX__=1 -I/home/xvilka/radare2/libr/include -o seven.o seven.c cc -shared -o libr_print.so -Wl,-soname=libr_print.so.0.9.1git print.o format.o date.o disasm.o seven.o -lr_cons -lr_util -lr_asm -lr_anal -L/home/xvilka/radare2/libr/cons -L/home/xvilka/radare2/libr/util -L/home/xvilka/radare2/libr/asm -L/home/xvilka/radare2/libr/anal -fPIC STRIP libr_print.so make[4]: Leaving directory/home/xvilka/radare2/libr/print'
make[4]: Entering directory /home/xvilka/radare2/libr/print/t' cc -c -MD -fPIC -g -Wall -DHAVE_LIB_GMP=1 -D__UNIX__=1 -I/home/xvilka/radare2/libr/include -DVERSION=\"0.9.1git\" -o hex.o hex.c cc hex.o -L.. -o hex -lr_cons -lr_print -lr_util -L/home/xvilka/radare2/libr/cons -L/home/xvilka/radare2/libr/print -L/home/xvilka/radare2/libr/util -fPIC -L/home/xvilka/radare2/libr/..//libr/cons -L/home/xvilka/radare2/libr/..//libr/print -L/home/xvilka/radare2/libr/..//libr/util -lr_cons -lr_print -lr_util /usr/lib/libr_asm.so.0.9.1git: undefined reference tor_str_subchr'
collect2: ld returned 1 exit status
make[4]: *** [hex] Error 1
make[4]: Leaving directory /home/xvilka/radare2/libr/print/t' make[3]: *** [all] Error 2 make[3]: Leaving directory/home/xvilka/radare2/libr/print'
make[2]: *** [libs] Error 1
make[2]: Leaving directory /home/xvilka/radare2/libr' make[1]: *** [libr] Error 2 make[1]: Leaving directory/home/xvilka/radare2'
make: *** [all] Error 2

@radare

This comment has been minimized.

Owner

radare commented Sep 4, 2012

Looks like the build system is taking some libs from system before the building paths.

Run make purge or make uninstall to clean up your system.

I should fix that issue as long as it's related to the build system change of yesterday.

On Sep 3, 2012, at 20:10, Anton Kochkov notifications@github.com wrote:

from 'clean' clone of repo:

DIR r_print
make libr_print.so libr_print.a
make[4]: Entering directory /home/xvilka/radare2/libr/print'
cc -c -MD -fPIC -g -Wall -DHAVE_LIB_GMP=1 -D__UNIX__=1 -I/home/xvilka/radare2/libr/include -o print.o print.c
cc -c -MD -fPIC -g -Wall -DHAVE_LIB_GMP=1 -D__UNIX__=1 -I/home/xvilka/radare2/libr/include -o format.o format.c
cc -c -MD -fPIC -g -Wall -DHAVE_LIB_GMP=1 -D__UNIX__=1 -I/home/xvilka/radare2/libr/include -o date.o date.c
cc -c -MD -fPIC -g -Wall -DHAVE_LIB_GMP=1 -D__UNIX__=1 -I/home/xvilka/radare2/libr/include -o disasm.o disasm.c
cc -c -MD -fPIC -g -Wall -DHAVE_LIB_GMP=1 -D__UNIX__=1 -I/home/xvilka/radare2/libr/include -o seven.o seven.c
cc -shared -o libr_print.so -Wl,-soname=libr_print.so.0.9.1git print.o format.o date.o disasm.o seven.o -lr_cons -lr_util -lr_asm -lr_anal
-L/home/xvilka/radare2/libr/cons -L/home/xvilka/radare2/libr/util -L/home/xvilka/radare2/libr/asm -L/home/xvilka/radare2/libr/anal -fPIC
STRIP libr_print.so
make[4]: Leaving directory/home/xvilka/radare2/libr/print'
make[4]: Entering directory /home/xvilka/radare2/libr/print/t'
cc -c -MD -fPIC -g -Wall -DHAVE_LIB_GMP=1 -D__UNIX__=1 -I/home/xvilka/radare2/libr/include -DVERSION="0.9.1git" -o hex.o hex.c
cc hex.o -L.. -o hex -lr_cons -lr_print -lr_util -L/home/xvilka/radare2/libr/cons -L/home/xvilka/radare2/libr/print -L/home/xvilka/radare2/libr/util -fPIC
-L/home/xvilka/radare2/libr/..//libr/cons -L/home/xvilka/radare2/libr/..//libr/print -L/home/xvilka/radare2/libr/..//libr/util -lr_cons -lr_print -lr_util
/usr/lib/libr_asm.so.0.9.1git: undefined reference tor_str_subchr'
collect2: ld returned 1 exit status
make[4]: *** [hex] Error 1
make[4]: Leaving directory /home/xvilka/radare2/libr/print/t'
make[3]: *** [all] Error 2
make[3]: Leaving directory/home/xvilka/radare2/libr/print'
make[2]: *** [libs] Error 1
make[2]: Leaving directory /home/xvilka/radare2/libr'
make[1]: *** [libr] Error 2
make[1]: Leaving directory/home/xvilka/radare2'
make: *** [all] Error 2


Reply to this email directly or view it on GitHub.

@radare

This comment has been minimized.

Owner

radare commented Sep 27, 2012

That should be fixed now. can you try again?

@radare radare closed this Sep 27, 2012

@radare radare referenced this issue Sep 27, 2014

Closed

pd 100% cpu #1441

@radare radare referenced this issue Dec 4, 2014

Closed

anal crash #1781

This was referenced Jan 29, 2015

@radare radare referenced this issue Sep 5, 2018

Closed

memory leaks #11389

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment