Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 697580 - net-analyzer/hydra-8.1 - hydra-smb.c:179:23: error: ‘des_cblock’ undeclared (first use in this function); did you mean ‘DES_cblock’?
Summary: net-analyzer/hydra-8.1 - hydra-smb.c:179:23: error: ‘des_cblock’ undeclared (...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: openssl-1.1
  Show dependency tree
 
Reported: 2019-10-12 20:48 UTC by Bertrand Jacquin
Modified: 2020-07-29 09:45 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,15.00 KB, text/plain)
2019-10-12 20:48 UTC, Bertrand Jacquin
Details
emerge --info (info.log,19.85 KB, text/plain)
2019-10-12 20:49 UTC, Bertrand Jacquin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2019-10-12 20:48:17 UTC
Hi,

net-analyzer/hydra-8.1 does not build against dev-libs/openssl-1.1.1d-r2 with the following error:

x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -fomit-frame-pointer -I. -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-z,now -Wl,-z,relro -march=native -O2 -pipe -fomit-frame-pointer  -c hydra-smb.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE  -DLIBSSH -DHAVE_MYSQL_MYSQL_H -DHAVE_MATH_H -I/usr/include/mysql
hydra-smb.c: In function ‘MakeKey’:
hydra-smb.c:179:3: warning: implicit declaration of function ‘des_set_odd_parity’; did you mean ‘DES_set_odd_parity’? [-Wimplicit-function-declaration]
   des_set_odd_parity((des_cblock *) des_key);
   ^~~~~~~~~~~~~~~~~~
   DES_set_odd_parity
hydra-smb.c:179:23: error: ‘des_cblock’ undeclared (first use in this function); did you mean ‘DES_cblock’?
   des_set_odd_parity((des_cblock *) des_key);
                       ^~~~~~~~~~
                       DES_cblock
hydra-smb.c:179:23: note: each undeclared identifier is reported only once for each function it appears in
hydra-smb.c:179:35: error: expected expression before ‘)’ token
   des_set_odd_parity((des_cblock *) des_key);
                                   ^
hydra-smb.c: In function ‘DesEncrypt’:
hydra-smb.c:184:3: error: unknown type name ‘des_cblock’; did you mean ‘DES_cblock’?
   des_cblock des_key;
   ^~~~~~~~~~
   DES_cblock
hydra-smb.c:185:3: error: unknown type name ‘des_key_schedule’; did you mean ‘DES_key_schedule’?
   des_key_schedule key_schedule;
   ^~~~~~~~~~~~~~~~
   DES_key_schedule
hydra-smb.c:187:16: warning: passing argument 2 of ‘MakeKey’ makes pointer from integer without a cast [-Wint-conversion]
   MakeKey(key, des_key);
                ^~~~~~~
hydra-smb.c:169:56: note: expected ‘unsigned char *’ but argument is of type ‘int’
 static void MakeKey(unsigned char *key, unsigned char *des_key) {
                                         ~~~~~~~~~~~~~~~^~~~~~~
hydra-smb.c:188:3: warning: implicit declaration of function ‘des_set_key’; did you mean ‘DES_set_key’? [-Wimplicit-function-declaration]
   des_set_key(&des_key, key_schedule);
   ^~~~~~~~~~~
   DES_set_key
hydra-smb.c:189:3: warning: implicit declaration of function ‘des_ecb_encrypt’; did you mean ‘DES_ecb_encrypt’? [-Wimplicit-function-declaration]
   des_ecb_encrypt((des_cblock *) clear, (des_cblock *) cipher, key_schedule, 1);
   ^~~~~~~~~~~~~~~
   DES_ecb_encrypt
hydra-smb.c:189:20: error: ‘des_cblock’ undeclared (first use in this function); did you mean ‘DES_cblock’?
   des_ecb_encrypt((des_cblock *) clear, (des_cblock *) cipher, key_schedule, 1);
                    ^~~~~~~~~~
                    DES_cblock
hydra-smb.c:189:32: error: expected expression before ‘)’ token
   des_ecb_encrypt((des_cblock *) clear, (des_cblock *) cipher, key_schedule, 1);
                                ^
make: *** [Makefile:65: hydra-smb.o] Error 1

Full log and emerge --info attached

Reproducible: Always
Comment 1 Bertrand Jacquin 2019-10-12 20:48:45 UTC
Created attachment 592598 [details]
build.log
Comment 2 Bertrand Jacquin 2019-10-12 20:49:29 UTC
Created attachment 592600 [details]
emerge --info
Comment 3 g0rbe 2019-10-17 08:18:25 UTC
I also met with this bug.
This is due to the outdated version.
The bug was fixed in thc-hydra's repo in 2015.
https://github.com/vanhauser-thc/thc-hydra/pull/49
Comment 4 g0rbe 2019-10-21 20:11:36 UTC
Switching keyword to ~amd64 solved the issue.

Append `net-analyzer/hydra ~amd64` to `/etc/portage/package.accept_keywords`
Comment 5 cono 2019-10-29 10:07:55 UTC
same issue here
Comment 6 Larry the Git Cow gentoo-dev 2020-07-29 09:45:10 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=407982e18b554dd91ce521982662840e3f7cae9f

commit 407982e18b554dd91ce521982662840e3f7cae9f
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2020-07-29 09:38:55 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2020-07-29 09:44:59 +0000

    net-analyzer/hydra: Old
    
    Package-Manager: Portage-3.0.1, Repoman-2.3.23
    Closes: https://bugs.gentoo.org/665942
    Closes: https://bugs.gentoo.org/686420
    Closes: https://bugs.gentoo.org/697580
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 net-analyzer/hydra/Manifest                        |   2 -
 net-analyzer/hydra/files/hydra-8.0-configure.patch |  44 ---------
 net-analyzer/hydra/files/hydra-8.4-configure.patch |  48 ----------
 net-analyzer/hydra/hydra-8.1.ebuild                |  98 --------------------
 net-analyzer/hydra/hydra-8.9.1.ebuild              | 103 ---------------------
 5 files changed, 295 deletions(-)