Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 792720 - app-crypt/hashcat-6.2.1: /usr/share/hashcat/modules/module_23800.so: undefined symbol: hc_decompress_rar
Summary: app-crypt/hashcat-6.2.1: /usr/share/hashcat/modules/module_23800.so: undefine...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-29 01:42 UTC by mehw
Modified: 2021-07-26 04:00 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
app-crypt/hashcat-6.2.1.ebuild: compile with built-in unrar (USE_SYSTEM_UNRAR=0) (hashcat-6.2.1.ebuild,2.66 KB, text/plain)
2021-05-29 01:42 UTC, mehw
Details
app-crypt/hashcat-9999.ebuild: compile with built-in unrar (USE_SYSTEM_UNRAR=0) (hashcat-9999.ebuild,2.66 KB, text/plain)
2021-05-29 01:44 UTC, mehw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mehw 2021-05-29 01:42:59 UTC
Created attachment 712092 [details]
app-crypt/hashcat-6.2.1.ebuild: compile with built-in unrar (USE_SYSTEM_UNRAR=0)

Upstream commit https://github.com/hashcat/hashcat/commit/3cc828ce0adba00c3f3d11fb62494c10bea099f9 introduced -m 23700/23800 (RAR3-p cracking) before releasing v6.2.0.

app-crypt/hashcat-6.2.1.ebuild currently pulls app-arch/unrar and compiles with USE_SYSTEM_UNRAR=1, but there's no trace of hc_decompress_rar in app-arch/unrar-6.0.5 nor in unrar-6.0.6.

Just running the following after installing hashcat-6.2.1 or hashcat-9999 gives an error:

$ hashcat --help
hashcat (v6.2.1) starting...

/usr/share/hashcat/modules/module_23800.so: undefined symbol: hc_decompress_rar

Segmentation fault

To solve the problem compile with the built-in unrar (USE_SYSTEM_UNRAR=0).

diff /emerge/portage/app-crypt/hashcat/hashcat-6.2.1.ebuild hashcat-6.2.1.ebuild
23d22
<       app-arch/unrar
69c68
<               USE_SYSTEM_UNRAR=1 \
---
>               USE_SYSTEM_UNRAR=0 \
102c101
<               USE_SYSTEM_UNRAR=1 \
---
>               USE_SYSTEM_UNRAR=0 \
Comment 1 mehw 2021-05-29 01:44:19 UTC
Created attachment 712095 [details]
app-crypt/hashcat-9999.ebuild: compile with built-in unrar (USE_SYSTEM_UNRAR=0)

Compile app-crypt/hashcat-9999 with the built-in unrar.
Comment 2 Larry the Git Cow gentoo-dev 2021-05-29 07:02:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0179cbdaf16fc35f9b1ace3bf48b14014c615a18

commit 0179cbdaf16fc35f9b1ace3bf48b14014c615a18
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-05-29 07:01:20 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-05-29 07:02:03 +0000

    app-crypt/hashcat: use bundled unrar for now
    
    Unreleased changes upstream.
    
    Closes: https://bugs.gentoo.org/792720
    Signed-off-by: Sam James <sam@gentoo.org>

 app-crypt/hashcat/{hashcat-6.2.1.ebuild => hashcat-6.2.1-r1.ebuild} | 3 ++-
 app-crypt/hashcat/hashcat-9999.ebuild                               | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
Comment 3 Bogdan 2021-07-23 03:05:36 UTC
hashcat-6.2.1-r1 successfully compiled with USE_SYSTEM_UNRAR=1 with unrar-6.0.7
Comment 4 Bogdan 2021-07-23 04:22:59 UTC
This patch for #803395 allow to use unrar as system library at src_compile phase:
https://bugs.gentoo.org/attachment.cgi?id=725950&action=edit
Comment 5 Bogdan 2021-07-26 04:00:25 UTC
hashcat compiled with unrar-6.0.7, but segfaults at start.