Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Dec 2002 12:48:47 -0200
From:      Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
To:        Christian Weisgerber <naddy@freebsd.org>
Cc:        FreeBSD-ports@FreeBSD.org
Subject:   Re: devel/libgnugetopt problem on -CURRENT
Message-ID:  <20021203144909.21477.qmail@exxodus.fedaykin.here>
In-Reply-To: <20021129163134.GA54844@kemoauc.mips.inka.de>
References:  <20021129163134.GA54844@kemoauc.mips.inka.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 29, 2002 at 05:31:12PM +0100, Christian Weisgerber wrote:
> libgnugetopt installs a getopt.h header file that contains a
> declaration for getopt() that conflicts with the one in <unistd.h>.
> This breaks a number of ports (all that use libgnugetopt?) on
> -CURRENT.  Here's an example:
> 
> http://bento.freebsd.org/errorlogs/5-latest/aria-0.10.2.t5_1.log
> 
> A workaround is to define HAVE_DECL_GETOPT.  However, rather than
> adding this to all affected ports, maybe the getopt.h header file
> should be fixed?

	This is a standing issue. I've already contacted kris to see
if he has an idea on a fix.

	For instance, in -STABLE, libgnugetopt has to work as it is.
In -CURRENT, more or less.

	The -CURRENT getopt.h is not exactly the same as libgnugetopt's
one. Therefore, we could try checking if the ports would build if
libgnugetopt was installed as an empty port in -CURRENT. However,
I've got some ports (e.g., mpeg4ip) that break -CURRENT if libgnugetopt
is not present.

	Not an easy fix. Anyone? Ideas?

-- 
Mario S F Ferreira - DF - Brazil - "I guess this is a signature."
Computer Science Undergraduate | FreeBSD Committer | CS Developer
flames to beloved devnull@someotherworldbeloworabove.org
feature, n: a documented bug | bug, n: an undocumented feature

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021203144909.21477.qmail>