Update to the new Release of HamLib 1.2.0
State Changed From-To: open->feedback When I try to install this on 4.9-PRERELEASE, I get the following: In file included from getopt_long.c:23: getopt.h:107: conflicting types for `getopt_long' ../include/config.h:399: previous declaration of `getopt_long' In file included from getopt_long.c:178: getopt.c: In function `_getopt_internal': getopt.c:455: warning: implicit declaration of function `strncmp' *** Error code 1 Can the submitter confirm this?
On Sun, Feb 22, 2004 at 04:25:13PM -0800, Mark Linimon wrote: > Synopsis: [Port Update]:: comms/hamlib 1.1.4 -> 1.2.0 > > State-Changed-From-To: open->feedback > State-Changed-By: linimon > State-Changed-When: Sun Feb 22 16:24:40 PST 2004 > State-Changed-Why: > When I try to install this on 4.9-PRERELEASE, I get the following: > > In file included from getopt_long.c:23: > getopt.h:107: conflicting types for `getopt_long' > ../include/config.h:399: previous declaration of `getopt_long' > In file included from getopt_long.c:178: > getopt.c: In function `_getopt_internal': > getopt.c:455: warning: implicit declaration of function `strncmp' > *** Error code 1 > > Can the submitter confirm this? I see this too. Kris
State Changed From-To: feedback->closed Timeout from submitter.
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.
State Changed From-To: closed->open Reopen, feedback received.
State Changed From-To: open->closed Committed, thanks!