NetBSD Problem Report #42538
From www@NetBSD.org Mon Dec 28 20:16:48 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 8A81363C37E
for <gnats-bugs@gnats.NetBSD.org>; Mon, 28 Dec 2009 20:16:48 +0000 (UTC)
Message-Id: <20091228201648.3F87763B844@www.NetBSD.org>
Date: Mon, 28 Dec 2009 20:16:48 +0000 (UTC)
From: rumi@rtfm.hu
Reply-To: rumi@rtfm.hu
To: gnats-bugs@NetBSD.org
Subject: Tru64: devel/libgetopt-1.4.4 fails to compile
X-Send-Pr-Version: www-1.0
>Number: 42538
>Category: pkg
>Synopsis: Tru64: devel/libgetopt-1.4.4 fails to compile
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Dec 28 20:20:00 +0000 2009
>Closed-Date: Fri Jan 08 22:47:33 +0000 2010
>Last-Modified: Fri Jan 08 22:50:02 +0000 2010
>Originator: Szabolcs Rumi
>Release: Tru64 5.1B-5
>Organization:
>Environment:
# sizer -v
HP Tru64 UNIX V5.1B (Rev. 2650); Thu Dec 17 18:47:21 CET 2009
# cc -V
Compaq C V6.5-303 (dtk) on HP Tru64 UNIX V5.1B (Rev. 2650)
Compiler Driver V6.5-302 (dtk) cc Driver
# cxx -V
Compaq C++ V7.1-006 for HP Tru64 UNIX V5.1B (Rev. 2650)
Compiler Driver V7.1-006 (cxx) cxx Driver
pkgsrc-current (12/26/2009 snapshot)
>Description:
===> Building for libgetopt-1.4.4
cd /usr/pkgsrc/devel/libgetopt/work/libgetopt && libtool --mode=compile cc -O2 -ieee -I/usr/pkg/include -I/usr/pkg/include -c getopt_long.c
libtool: compile: cc -O2 -ieee -I/usr/pkgsrc/devel/libgetopt/work/.buildlink/include -c getopt_long.c -DPIC -o .libs/getopt_long.o
cc: Error: getopt_long.c, line 197: In this statement, "optreset" is not declared. (undeclared)
if (optreset)
------------^
cc: Info: getopt_long.c, line 358: The type "struct option" has been declared within and is limited to a function prototype scope. It will not be compatible with an identical type declared in another scope. This might not be what you intended. (protoscope)
const struct option *long_options;
--------------^
cc: Error: getopt_long.c, line 401: In this statement, "long_options" does not point to an object type. (needptrobj)
for (i = 0; long_options[i].name; i++) {
----------------------------^
cc: Error: getopt_long.c, line 403: In this statement, "long_options" does not point to an object type. (needptrobj)
if (strncmp(current_argv, long_options[i].name,
--------------------------------------------------^
cc: Error: getopt_long.c, line 407: In this statement, "long_options" does not point to an object type. (needptrobj)
if (strlen(long_options[i].name) ==
-----------------------------------^
cc: Error: getopt_long.c, line 425: In this statement, "long_options" does not point to an object type. (needptrobj)
if (long_options[match].has_arg == no_argument
----------------------------^
cc: Error: getopt_long.c, line 425: In this statement, "no_argument" is not declared. (undeclared)
if (long_options[match].has_arg == no_argument
-----------------------------------------------------------^
cc: Error: getopt_long.c, line 434: In this statement, "long_options" does not point to an object type. (needptrobj)
if (long_options[match].flag == NULL)
------------------------------------^
cc: Error: getopt_long.c, line 435: In this statement, "long_options" does not point to an object type. (needptrobj)
optopt = long_options[match].val;
-------------------------------------------------^
cc: Error: getopt_long.c, line 441: In this statement, "long_options" does not point to an object type. (needptrobj)
if (long_options[match].has_arg == required_argument ||
----------------------------^
cc: Error: getopt_long.c, line 441: In this statement, "required_argument" is not declared. (undeclared)
if (long_options[match].has_arg == required_argument ||
-----------------------------------------------------------^
cc: Error: getopt_long.c, line 442: In this statement, "long_options" does not point to an object type. (needptrobj)
long_options[match].has_arg == optional_argument) {
----------------------------^
cc: Error: getopt_long.c, line 442: In this statement, "optional_argument" is not declared. (undeclared)
long_options[match].has_arg == optional_argument) {
-----------------------------------------------------------^
cc: Error: getopt_long.c, line 445: In this statement, "long_options" does not point to an object type. (needptrobj)
else if (long_options[match].has_arg ==
-----------------------------------------^
cc: Error: getopt_long.c, line 454: In this statement, "long_options" does not point to an object type. (needptrobj)
if ((long_options[match].has_arg == required_argument)
-----------------------------^
cc: Error: getopt_long.c, line 466: In this statement, "long_options" does not point to an object type. (needptrobj)
if (long_options[match].flag == NULL)
------------------------------------^
cc: Error: getopt_long.c, line 467: In this statement, "long_options" does not point to an object type. (needptrobj)
optopt = long_options[match].val;
-------------------------------------------------^
cc: Error: getopt_long.c, line 480: In this statement, "long_options" does not point to an object type. (needptrobj)
if (long_options[match].flag) {
--------------------^
cc: Error: getopt_long.c, line 481: In this statement, "long_options" does not point to an object type. (needptrobj)
*long_options[match].flag = long_options[match].val;
-------------------------^
cc: Error: getopt_long.c, line 481: In this statement, "long_options" does not point to an object type. (needptrobj)
*long_options[match].flag = long_options[match].val;
----------------------------------------------------^
cc: Error: getopt_long.c, line 484: In this statement, "long_options" does not point to an object type. (needptrobj)
retval = long_options[match].val;
---------------------------------^
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/devel/libgetopt
*** Error code 1
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: tnn@NetBSD.org
State-Changed-When: Fri, 08 Jan 2010 22:47:33 +0000
State-Changed-Why:
fixed, thanks for the PR.
From: Tobias Nygren <tnn@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/42538 CVS commit: pkgsrc/devel/libgetopt
Date: Fri, 8 Jan 2010 22:45:58 +0000
Module Name: pkgsrc
Committed By: tnn
Date: Fri Jan 8 22:45:58 UTC 2010
Modified Files:
pkgsrc/devel/libgetopt: Makefile
Log Message:
Fix build on Tru64. Closes PR pkg/42538.
To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 pkgsrc/devel/libgetopt/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.