From owner-freebsd-questions@FreeBSD.ORG Thu Mar 30 07:08:49 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 28A2916A400; Thu, 30 Mar 2006 07:08:49 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12D9D43D45; Thu, 30 Mar 2006 07:08:47 +0000 (GMT) (envelope-from on@cs.ait.ac.th) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) by mail.cs.ait.ac.th (8.13.1/8.12.11) with ESMTP id k2U78j4W003976 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 30 Mar 2006 14:08:45 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.13.3/8.12.11) id k2U78i4V082634; Thu, 30 Mar 2006 14:08:44 +0700 (ICT) Date: Thu, 30 Mar 2006 14:08:44 +0700 (ICT) Message-Id: <200603300708.k2U78i4V082634@banyan.cs.ait.ac.th> From: Olivier Nicole To: freebsd-questions@freebsd.org, lofi@freebsd.org X-Virus-Scanned: on CSIM by amavisd-milter (http://www.amavis.org/) Cc: Subject: getop.h conflict when building audio/akode X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Mar 2006 07:08:49 -0000 Hi, I try to portinstall audio/akode (needed by kde) and I get the following error: labtop52: /usr/local/sbin/portinstall audio/akode [...] then mv -f ".deps/akodeplay.Tpo" ".deps/akodeplay.Po"; else rm -f ".deps/akodeplay.Tpo"; exit 1; fi In file included from akodeplay.cpp:29: /usr/local/include/getopt.h:115: error: declaration of C function `int getopt()' conflicts with /usr/include/unistd.h:376: error: previous declaration `int getopt(int, char* const*, const char*)' here gmake[1]: *** [akodeplay.o] Error 1 gmake[1]: Leaving directory `/usr/ports/audio/akode/work/akode-2.0/akode/akodeplay' gmake: *** [all-recursive] Error 1 *** Error code 2 Stop in /usr/ports/audio/akode. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall59136.0 make ** Fix the problem and try again. ** Listing the failed packages (*:skipped / !:failed) ! audio/akode (new compiler error) ---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed labtop53: System is 5.4-p13 Ports are up to date (30 minutes ago) That usr/local/include/getopt.h comes from libgnugetopt-1.2 (up to date too) Best regards, Olivier