Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Apr 2002 13:05:45 -0700 (PDT)
From:      Bill Fenner <fenner@research.att.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/36934: nessus port only builds on 4.5 or -current
Message-ID:  <200204092005.g39K5jZ44376@mango.attlabs.att.com>

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

>Number:         36934
>Category:       ports
>Synopsis:       nessus port only builds on 4.5 or -current
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 09 13:10:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
AT&T Labs - Research
>Environment:
System: FreeBSD mango.attlabs.att.com 4.4-STABLE FreeBSD 4.4-STABLE #11: Thu Jan 3 16:57:24 PST 2002 root@mango.attlabs.att.com:/usr/src/sys/compile/MANGO i386


	
>Description:
	

nessus port build fails due to lack of strcasestr.  PR ports/33999
submitted a patch that allows nessus to build on FreeBSD systems
that have strcasestr built in, but that broke the build on systems
that don't.  For handling situations like this, see
http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/porting-versions.html

>How-To-Repeat:
	

On a pre-4.5, or pre-October 2001 -current system:

cd /usr/ports/security/nessus
make

>Fix:

	


cvs diff: Diffing .
Index: patch-nessus-html_graph_output.c
===================================================================
RCS file: /home/ncvs/ports/security/nessus/files/patch-nessus-html_graph_output.c,v
retrieving revision 1.1
diff -u -r1.1 patch-nessus-html_graph_output.c
--- patch-nessus-html_graph_output.c	2002/01/19 21:43:26	1.1
+++ patch-nessus-html_graph_output.c	2002/04/09 01:56:21
@@ -1,27 +1,31 @@
---- nessus/html_graph_output.c.old	Thu Jan 17 18:44:40 2002
-+++ nessus/html_graph_output.c	Thu Jan 17 18:47:20 2002
-@@ -65,8 +65,9 @@
+--- nessus/html_graph_output.c.orig	Thu Aug 24 08:35:47 2000
++++ nessus/html_graph_output.c	Mon Apr  8 17:20:19 2002
+@@ -65,8 +65,15 @@
  #include "globals.h"
  #include "nsr_output.h"
  
 -
-+#ifndef __FreeBSD__
++#ifdef __FreeBSD__
++#include <osreldate.h>
++#if __FreeBSD_version >= 500027 || (__FreeBSD_version < 500000 && __FreeBSD_version >= 450000)
++#define	HAVE_STRCASESTR
++#endif
++#endif
++#ifndef HAVE_STRCASESTR
  static char* strcasestr(char*, char *);
-+#endif 
++#endif
  static void insert_img(FILE *, char*);
  
  
-@@ -90,7 +91,8 @@
- /*
+@@ -91,6 +98,7 @@
   * Handy functions
   */
-- 
-+
-+#ifndef __FreeBSD__ 
+  
++#ifndef HAVE_STRCASESTR
  static char * 
  strcasestr(char * haystack, char * needle)
  {
-@@ -109,6 +111,7 @@
+@@ -109,6 +117,7 @@
   }
   return NULL;
  }
>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?200204092005.g39K5jZ44376>