From owner-freebsd-ports Thu Jan 17 9:39:29 2002 Delivered-To: freebsd-ports@freebsd.org Received: from energyhq.homeip.net (213-97-200-73.uc.nombres.ttd.es [213.97.200.73]) by hub.freebsd.org (Postfix) with ESMTP id BF0F237B41A for ; Thu, 17 Jan 2002 09:39:15 -0800 (PST) Received: from there (kajsa.energyhq.org [192.168.0.1]) by energyhq.homeip.net (Postfix) with SMTP id 9C76123F1D; Thu, 17 Jan 2002 18:39:15 +0100 (CET) Content-Type: text/plain; charset="iso-8859-1" From: Miguel Mendez Organization: Energy HQ To: Thomas Vogt , freebsd-ports@FreeBSD.ORG Subject: Re: unable to build nessus Date: Thu, 17 Jan 2002 18:38:54 +0100 X-Mailer: KMail [version 1.3.2] References: <20020117181147.4ed39785.turbo23@gmx.net> In-Reply-To: <20020117181147.4ed39785.turbo23@gmx.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020117173915.9C76123F1D@energyhq.homeip.net> 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 On Thursday 17 January 2002 18:11, Thomas Vogt wrote: Hi Thomas, > Hi > > When i try to compile nessus from the ports (1.0.9) or also the latest > stable version from the nessus homepage (1.0.10) I alway get this error: > > > gcc -g -O2 `./cflags` -c html_graph_output.c > html_graph_output.c:69: conflicting types for `strcasestr' > /usr/include/string.h:86: previous declaration of `strcasestr' > *** Error code 1 > > It worked after I've uncommented line 86 in /usr/include/string.h. But > is there no way to better fix that? A quick glance at that file: #include #include "gdchart0.94b/gdc.h" #include "gdchart0.94b/gdchart.h" #include "gdchart0.94b/gdcpie.h" #include "report.h" #include "report_utils.h" #include "error_dialog.h" #include "globals.h" #include "nsr_output.h" static char* strcasestr(char*, char *); ^^^^^^^^ For some odd reason (he is probably a linux user :-) the author of that code thought that the strcasetr prototype in /usr/include/srting.h was not enough and decided to add another one. Commenting out that line should fix the problem. Cheers, -- Miguel Mendez - flynn@energyhq.homeip.net EnergyHQ :: http://energyhq.homeip.net FreeBSD - The power to serve! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message