From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Apr 19 07:00:45 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A56416A4CF for ; Mon, 19 Apr 2004 07:00:45 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 955BA43D1D for ; Mon, 19 Apr 2004 07:00:45 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i3JE0jbv013860 for ; Mon, 19 Apr 2004 07:00:45 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i3JE0jEQ013859; Mon, 19 Apr 2004 07:00:45 -0700 (PDT) (envelope-from gnats) Date: Mon, 19 Apr 2004 07:00:45 -0700 (PDT) Message-Id: <200404191400.i3JE0jEQ013859@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Carl Makin Subject: Re: ports/63013: [Port Update]:: comms/hamlib 1.1.4 -> 1.2.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Carl Makin List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Apr 2004 14:00:45 -0000 The following reply was made to PR ports/63013; it has been noted by GNATS. From: Carl Makin To: esn@x123.info, freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: ports/63013: [Port Update]:: comms/hamlib 1.1.4 -> 1.2.0 Date: Mon, 19 Apr 2004 23:50:19 +1000 Evening All, Below is a crude hack but it avoids the dual getopt_long definition. I think it will also fail if libgnugetopt is not installed. This patch below should take care of both compile failures. Please also look at ports/65758 which adds; USE_GNOME= pkgconfig gnomehack to the Makefile of Hamlib 1.1.4 which is also valid for 1.2.0. Also, this port is using "USE_SIZE" which I think is now deprecated! --------------- Cut Here ---------------------------------- New File: /usr/ports/comms/hamlib/files/patch-config.h.in --- include/config.h.in.orig Mon Apr 19 22:16:14 2004 +++ include/config.h.in Mon Apr 19 22:16:43 2004 @@ -388,16 +388,6 @@ extern "C" { #endif -#ifndef HAVE_GETOPT -int getopt (int argc, char * const argv[], const char * optstring); -extern char * optarg; -extern int optind, opterr, optopt; -#endif -#ifndef HAVE_GETOPT_LONG -int getopt_long (int argc, char * const argv[], const char * optstring, - const struct option * longopts, int * longindex); -#endif - #ifndef HAVE_USLEEP int usleep(unsigned long usec); /* SUSv2 */ #endif --------------- Cut Here ---------------------------------- Thanks! Carl.