Date: Fri, 7 Nov 2003 09:19:53 +0100 From: "Christoph P. Kukulies" <kuku@kukulies.org> To: Alexander Kabaev <ak03@gte.com> Cc: freebsd-current@freebsd.org Subject: Re: g++ problem Message-ID: <20031107081953.GA61891@gilberto.physik.rwth-aachen.de> In-Reply-To: <20031106112828.7985100a.ak03@gte.com> References: <200311061555.hA6Ft08H051563@www.kukulies.org> <20031106112828.7985100a.ak03@gte.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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" <kuku@www.kukulies.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031107081953.GA61891>