Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Apr 2002 21:13:01 -0700 (PDT)
From:      "Crist J. Clark" <cjc@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/37440: nessus(1) port broken for pre-4.5 versions
Message-ID:  <200204250413.g3P4D1J31041@blossom.cjclark.org>

next in thread | raw e-mail | index | archive | help

>Number:         37440
>Category:       ports
>Synopsis:       nessus(1) port broken for pre-4.5 versions
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 24 21:20:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Crist J. Clark
>Release:        FreeBSD 4.5-RELEASE i386
>Organization:
>Environment:
	FreeBSD pre-4.5
>Description:
	The nessus(1) port does not build for FreeBSD releases prior
to 4.5. The nessus(1) source code contains its own implementation of
the strcasestr(3) function. FreeBSD has strcasestr(3) in libc from 4.5
on. So that nessus(1) uses the native strcasestr(3), the patch,

  ports/security/nessus/files/patch-nessus-html_graph_output.c

#ifdef's out the nessus(1) strcasestr(3) code. No test is conducted to
check if the version of FreeBSD we are building nessus(1) on actually
has strcasestr(3). This causes the build to fail on these earlier
FreeBSD versions.

>How-To-Repeat:
	On a version of FreeBSD prior to the addition of
strcasestr(3), which was added 2001/12/25 00:36:53 in RELENG_4 (on
Xmas?) and 2001/10/10 02:17:35 in HEAD, try to build nessus(1),

  # cd /usr/ports/security/nessus
  # make

>Fix:
	A workaround for users is to remove the patchfile prior to
building the port.

	A solution for the port maintainer is to have the #ifdef's
check the FreeBSD version too. Only versions after 450000 in RELENG_4
and 500027 in HEAD have strcasestr(3).

	The best solution is to submit the bug back to the nessus(1)
maintainers and have their configure scripts properly detect the
existence of strcasestr(3) in the base system.
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204250413.g3P4D1J31041>