How to compile RarCrack on Mac OSX?

I am trying to compile Rarcrack on my command line using the command:

gcc -pthread rarcrack.c `xml2-config --libs --cflags` -O2 -o rarcrack 

I am using the latest version of Xcode with command line tools.

 Undefined symbols for architecture x86_64: "_savestatus", referenced from: _loadstatus in rarcrack-sh2Aob.o _status_thread in rarcrack-sh2Aob.o _crack_thread in rarcrack-sh2Aob.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) 

I keep getting these architecture errors. Any dice game?

+6
source share
1 answer

I see that no one answered this and you still need a solution!

Today I need a small .rar / .zip cracker and stumbled upon Rarcrack.

Take a look at my repo on github here:

https://github.com/jaredsburrows/Rarcrack

Original code here:

http://rarcrack.sourceforge.net/

Basically, the GCC version for Mac OSX did not like the use of many of the built-in functions that were in the source code. I removed the built-in functions, making them normal functions and several other minor changes made it compile. I checked that this works by running rarcrack in the examples given.

+8
source

Source: https://habr.com/ru/post/954356/


All Articles