From owner-freebsd-ports Wed Apr 24 21:21:25 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 907C737B405 for ; Wed, 24 Apr 2002 21:21:15 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3P4K1n35527; Wed, 24 Apr 2002 21:20:01 -0700 (PDT) (envelope-from gnats) Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by hub.freebsd.org (Postfix) with ESMTP id 2F6AF37B416 for ; Wed, 24 Apr 2002 21:14:51 -0700 (PDT) Received: from blossom.cjclark.org ([12.234.91.48]) by rwcrmhc53.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020425041302.VHYC29911.rwcrmhc53.attbi.com@blossom.cjclark.org> for ; Thu, 25 Apr 2002 04:13:02 +0000 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.6) id g3P4D1J31041; Wed, 24 Apr 2002 21:13:01 -0700 (PDT) (envelope-from cjc) Message-Id: <200204250413.g3P4D1J31041@blossom.cjclark.org> Date: Wed, 24 Apr 2002 21:13:01 -0700 (PDT) From: "Crist J. Clark" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/37440: nessus(1) port broken for pre-4.5 versions Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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