From owner-freebsd-current@FreeBSD.ORG Thu Nov 6 08:28:31 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B1EE16A4D2 for ; Thu, 6 Nov 2003 08:28:31 -0800 (PST) Received: from newman.gte.com (newman.gte.com [132.197.8.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A32443FDD for ; Thu, 6 Nov 2003 08:28:30 -0800 (PST) (envelope-from ak03@gte.com) Received: from h132-197-179-27.gte.com (kanpc.gte.com [132.197.179.27]) by newman.gte.com (8.9.1/8.9.1) with ESMTP id LAA23840; Thu, 6 Nov 2003 11:28:29 -0500 (EST) Received: from kanpc.gte.com (localhost [IPv6:::1])hA6GSTfw043346; Thu, 6 Nov 2003 11:28:29 -0500 (EST) (envelope-from ak03@gte.com) Date: Thu, 6 Nov 2003 11:28:28 -0500 From: Alexander Kabaev To: "C. Kukulies" Message-Id: <20031106112828.7985100a.ak03@gte.com> In-Reply-To: <200311061555.hA6Ft08H051563@www.kukulies.org> References: <200311061555.hA6Ft08H051563@www.kukulies.org> Organization: Verizon Data Services X-Mailer: Sylpheed version 0.9.6claws65 (GTK+ 1.2.10; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: g++ problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Nov 2003 16:28:31 -0000 On Thu, 6 Nov 2003 16:55:00 +0100 (CET) "C. Kukulies" wrote: > I tried to compile a virus-scanner for Linux that allows for scanning > Windoze PCs in a network for all sorts of recent viruses (RPC/DCOM and > such). > > http://www.enyo.de/fw/software/doscan > > Compilation fails with the following: > > kukuboo2k# gmake > g++ -g -O2 -Wall -I/usr/local/include -I. -I. -I./lib \ > -MMD -MF src/doscan.d \ > -c -o src/doscan.o src/doscan.cc > In file included from src/doscan.cc:28: > /usr/local/include/getopt.h:115: error: declaration of C function `int > getopt() > ' conflicts with > /usr/include/unistd.h:377: error: previous declaration `int > getopt(int, char* > const*, const char*)' here > gmake: *** [src/doscan.o] Error 1 > > I wonder where /usr/local/include comes from. If I remove that it > compiles smoothly. Uhm, from you command line? What _this_ has to do with a compiler? -- Alexander Kabaev