From owner-freebsd-ports@FreeBSD.ORG Fri Jan 6 20:12:31 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2EA1B16A41F for ; Fri, 6 Jan 2006 20:12:31 +0000 (GMT) (envelope-from marko@freebsd.org) Received: from ptb-relay01.plus.net (ptb-relay01.plus.net [212.159.14.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id C978343D48 for ; Fri, 6 Jan 2006 20:12:30 +0000 (GMT) (envelope-from marko@freebsd.org) Received: from [80.229.231.20] (helo=[192.168.1.4]) by ptb-relay01.plus.net with esmtp (Exim) id 1Euxwr-0003Oe-NE for freebsd-ports@freebsd.org; Fri, 06 Jan 2006 20:12:29 +0000 Message-ID: <43BECF6C.40609@freebsd.org> Date: Fri, 06 Jan 2006 20:13:32 +0000 From: Mark Ovens User-Agent: Mail/News 1.6a1 (X11/20051228) MIME-Version: 1.0 To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: x11-fonts/ttmkfdir build error X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2006 20:12:31 -0000 Trying to upgrade x11-fonts/ttmkfdir fails with this error: g++ -O2 -fno-strict-aliasing -pipe -march=athlon-mp -I/usr/local/include/freetype2 -I/usr/local/include -c commandline.cpp -fPIC -DPIC -o .libs/commandline.lo In file included from /usr/include/c++/3.4/bits/gthr-default.h:44, from /usr/include/c++/3.4/bits/gthr.h:96, from /usr/include/c++/3.4/bits/c++io.h:37, from /usr/include/c++/3.4/iosfwd:47, from /usr/include/c++/3.4/bits/stl_algobase.h:70, from /usr/include/c++/3.4/bits/char_traits.h:46, from /usr/include/c++/3.4/string:47, from commandline.h:5, from commandline.cpp:6: /usr/include/unistd.h:377: error: declaration of C function `int getopt(int, char* const*, const char*)' conflicts with /usr/local/include/getopt.h:115: error: previous declaration `int getopt()' here gmake: *** [commandline.o] Error 1 *** Error code 2 Stop in /usr/ports/x11-fonts/ttmkfdir. Looking at /usr/local/include/getopt.h it seems as if __STDC__ and/or HAVE_DECL_GETOPT may not be set correctly. Anyone know the solution please? Regards, Mark