From nobody@FreeBSD.org  Fri Apr  1 16:37:37 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C9E2316A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  1 Apr 2005 16:37:37 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A551E43D41
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  1 Apr 2005 16:37:37 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j31Gbbbh010064
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 1 Apr 2005 16:37:37 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j31GbbeO010063;
	Fri, 1 Apr 2005 16:37:37 GMT
	(envelope-from nobody)
Message-Id: <200504011637.j31GbbeO010063@www.freebsd.org>
Date: Fri, 1 Apr 2005 16:37:37 GMT
From: Kai Grossjohann <kai@emptydomain.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: libgnugetopt-1.2 conflicts with port x11-fonts/ttmkfdir
X-Send-Pr-Version: www-2.3

>Number:         79430
>Category:       ports
>Synopsis:       libgnugetopt-1.2 conflicts with port x11-fonts/ttmkfdir
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 01 16:40:03 GMT 2005
>Closed-Date:    Mon Apr 04 11:43:40 GMT 2005
>Last-Modified:  Mon Apr 04 11:43:40 GMT 2005
>Originator:     Kai Grossjohann
>Release:        5-STABLE
>Organization:
>Environment:
FreeBSD slowfox.dyndns.org 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #17: Sat Mar 19 00:14:56 CET 2005     root@slowfox.dyndns.org:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
I had the package libgnugetopt-1.2 installed and tried to install the port x11-fonts/ttmkfdir.  The build barfed with:

root@slowfox# make
===>  Building for ttmkfdir-20021109_1
libtool13 --mode=compile g++ -O -pipe `freetype-config --cflags` -o commandline.o -c commandline.cpp
rm -f .libs/commandline.lo
g++ -O -pipe -I/usr/local/include/freetype2 -I/usr/local/include -c commandline.cpp  -fPIC -DPIC -o .libs/commandline.lo
In file included from commandline.cpp:6:
/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: *** [commandline.o] Error 1
*** Error code 2

>How-To-Repeat:
      
>Fix:
I removed the package libgnugetopt-1.2, as it was not needed by any other package.  Then the build (of ttmkfdir) went fine.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: vs 
State-Changed-When: Mon Apr 4 11:40:41 GMT 2005 
State-Changed-Why:  
Hm, you shouldn't have had libgnugetopt installed on 5.x in the first place :) 
I'll see if I can find out if some port unconditionally pulls in libgnugetopt. 
Unluckily we have no sane way of registering such conflicts at build-time, so 
I think I'll just close this one. Note that prohibiting installation of 
libgnugetopt on 5.x wouldn't be TRTDT, either. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=79430 
>Unformatted:
