From owner-freebsd-current@FreeBSD.ORG Thu Nov 6 07:55:05 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 2BEEC16A4CF for ; Thu, 6 Nov 2003 07:55:05 -0800 (PST) Received: from www.kukulies.org (www.kukulies.org [213.146.112.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5F8F43F75 for ; Thu, 6 Nov 2003 07:55:03 -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 hA6Ft1oR051583 for ; Thu, 6 Nov 2003 16:55:01 +0100 (CET) (envelope-from kuku@www.kukulies.org) Received: (from kuku@localhost) by www.kukulies.org (8.12.10/8.12.6/Submit) id hA6Ft08H051563 for freebsd-current@freebsd.org; Thu, 6 Nov 2003 16:55:00 +0100 (CET) Date: Thu, 6 Nov 2003 16:55:00 +0100 (CET) From: "C. Kukulies" Message-Id: <200311061555.hA6Ft08H051563@www.kukulies.org> To: freebsd-current@freebsd.org Subject: 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 15:55:05 -0000 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. Sorry, if this would turn out to be not -current specific. -- Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de