From owner-freebsd-current@FreeBSD.ORG Fri Nov 7 00:20:08 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 27E0216A4CE for ; Fri, 7 Nov 2003 00:20:08 -0800 (PST) Received: from www.kukulies.org (www.kukulies.org [213.146.112.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4849443FE3 for ; Fri, 7 Nov 2003 00:20:06 -0800 (PST) (envelope-from kuku@www.kukulies.org) Received: from www.kukulies.org (localhost [127.0.0.1]) by www.kukulies.org (8.12.10/8.12.6) with ESMTP id hA78JtoR061923; Fri, 7 Nov 2003 09:19:55 +0100 (CET) (envelope-from kuku@www.kukulies.org) Received: (from kuku@localhost) by www.kukulies.org (8.12.10/8.12.6/Submit) id hA78Jrgt061922; Fri, 7 Nov 2003 09:19:53 +0100 (CET) Date: Fri, 7 Nov 2003 09:19:53 +0100 From: "Christoph P. Kukulies" To: Alexander Kabaev Message-ID: <20031107081953.GA61891@gilberto.physik.rwth-aachen.de> References: <200311061555.hA6Ft08H051563@www.kukulies.org> <20031106112828.7985100a.ak03@gte.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031106112828.7985100a.ak03@gte.com> User-Agent: Mutt/1.4.1i cc: "C. Kukulies" 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: Fri, 07 Nov 2003 08:20:08 -0000 On Thu, Nov 06, 2003 at 11:28:28AM -0500, Alexander Kabaev wrote: > 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? Clearly. :-) I should have mentioned that it is not in the Makefile or in variables defined through /etc/make.conf. (I was using gmake for this). It seems to be wired somewhere else. -- Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de