Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 674418

Summary: net-analyzer/libnasl-2.2.9-r1 : nasl_crypto.c:55:10: error: MD2_DIGEST_LENGTH undeclared (first use in this function)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED OBSOLETE    
Severity: normal CC: jcurbr00, kbx, treecleaner
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 592438    
Deadline: 2019-04-15   
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
net-analyzer:libnasl-2.2.9-r1:20190103-015835.log
temp.tbz2

Description Toralf Förster gentoo-dev 2019-01-03 16:52:21 UTC
/bin/sh /var/tmp/portage/net-analyzer/libnasl-2.2.9-r1/work/libnasl/libtool --silent x86_64-pc-linux-gnu-gcc -pipe -O2 -pipe -march=native  `sh ./cflags`  -c nasl_crypto.c
nasl_crypto.c: In function 'nasl_md2':
nasl_crypto.c:55:10: error: 'MD2_DIGEST_LENGTH' undeclared (first use in this function); did you mean 'MD5_DIGEST_LENGTH'?
  char md[MD2_DIGEST_LENGTH+1];
          ^~~~~~~~~~~~~~~~~
          MD5_DIGEST_LENGTH

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-systemd_test_20181228-124659

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)

Available Rust versions:
  [1]   rust-1.31.1 *



emerge -qpvO net-analyzer/libnasl
[ebuild  N    ] net-analyzer/libnasl-2.2.9-r1  USE="-static-libs"
Comment 1 Toralf Förster gentoo-dev 2019-01-03 16:52:24 UTC
Created attachment 559608 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-01-03 16:52:34 UTC
Created attachment 559610 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-01-03 16:52:37 UTC
Created attachment 559612 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-01-03 16:52:39 UTC
Created attachment 559614 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-01-03 16:52:42 UTC
Created attachment 559616 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-01-03 16:52:45 UTC
Created attachment 559618 [details]
net-analyzer:libnasl-2.2.9-r1:20190103-015835.log
Comment 7 Toralf Förster gentoo-dev 2019-01-03 16:52:49 UTC
Created attachment 559620 [details]
temp.tbz2
Comment 8 coKe 2019-01-27 10:23:56 UTC
Same issue here..
Comment 9 coKe 2019-01-27 11:15:02 UTC
It seems that MD2_DIGEST_LENGTH is not defined in the openSSL version I have...Im currently using 1.1.0j but it's defined in 1.0.1c... it should have been set to 16 in md2.h but it isn't.
Comment 10 coKe 2019-01-27 11:26:06 UTC
(In reply to coKe from comment #9)
> It seems that MD2_DIGEST_LENGTH is not defined in the openSSL version I
> have...Im currently using 1.1.0j but it's defined in 1.0.1c... it should
> have been set to 16 in md2.h but it isn't.

Well, it's defined after all. Sorry
Comment 11 Hans de Graaff gentoo-dev Security 2019-07-13 07:17:49 UTC
commit 3e7bbcd42631e7c460f16a182eecabcb4f780e45
Author: Mikle Kolyada <zlogene@gentoo.org>
Date:   Mon Apr 15 11:00:19 2019 +0300

    net-analyzer: remove lastrited nessus and co.
    
    Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>