NetBSD Problem Report #43733
From www@NetBSD.org Tue Aug 10 05:04:08 2010
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 47BD463BA17
for <gnats-bugs@gnats.NetBSD.org>; Tue, 10 Aug 2010 05:04:08 +0000 (UTC)
Message-Id: <20100810050408.1198B63B952@www.NetBSD.org>
Date: Tue, 10 Aug 2010 05:04:08 +0000 (UTC)
From: rumi@rtfm.hu
Reply-To: rumi@rtfm.hu
To: gnats-bugs@NetBSD.org
Subject: Tru64: devel/libidn-0.19 does not compile
X-Send-Pr-Version: www-1.0
>Number: 43733
>Category: pkg
>Synopsis: Tru64: devel/libidn-0.19 does not compile
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Aug 10 05:05:00 +0000 2010
>Last-Modified: Wed Mar 28 20:15:06 +0000 2012
>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-20100810
>Description:
--- getopt1.lo ---
cc: Error: /usr/pkgsrc/devel/libidn/work/.buildlink/include/getopt.h, line 44: In this declaration, the struct "rpl_option" is redefined. (redefstruct)
struct option {
^
--- version-etc.lo ---
cc: Error: /usr/pkgsrc/devel/libidn/work/.buildlink/include/getopt.h, line 44: In this declaration, the struct "rpl_option" is redefined. (redefstruct)
struct option {
^
--- error.lo ---
cc: Error: /usr/pkgsrc/devel/libidn/work/.buildlink/include/getopt.h, line 44: In this declaration, the struct "rpl_option" is redefined. (redefstruct)
struct option {
^
--- getopt1.lo ---
*** [getopt1.lo] Error code 1
--- version-etc.lo ---
*** [version-etc.lo] Error code 1
--- error.lo ---
*** [error.lo] Error code 1
--- progname.lo ---
cc: Error: /usr/pkgsrc/devel/libidn/work/.buildlink/include/getopt.h, line 44: In this declaration, the struct "rpl_option" is redefined. (redefstruct)
struct option {
^
*** [progname.lo] Error code 1
--- strerror.lo ---
cc: Error: /usr/pkgsrc/devel/libidn/work/.buildlink/include/getopt.h, line 44: In this declaration, the struct "rpl_option" is redefined. (redefstruct)
struct option {
^
*** [strerror.lo] Error code 1
--- getopt.lo ---
cc: Error: /usr/pkgsrc/devel/libidn/work/.buildlink/include/getopt.h, line 44: In this declaration, the struct "rpl_option" is redefined. (redefstruct)
struct option {
^
*** [getopt.lo] Error code 1
6 errors
bmake: stopped in /usr/pkgsrc/devel/libidn/work/libidn-1.19/gl
*** [all-recursive] Error code 1
1 error
bmake: stopped in /usr/pkgsrc/devel/libidn/work/libidn-1.19/gl
*** [all] Error code 2
1 error
bmake: stopped in /usr/pkgsrc/devel/libidn/work/libidn-1.19/gl
*** [all-recursive] Error code 1
1 error
bmake: stopped in /usr/pkgsrc/devel/libidn/work/libidn-1.19
*** [all] Error code 2
1 error
bmake: stopped in /usr/pkgsrc/devel/libidn/work/libidn-1.19
*** Error code 2
Stop.
>How-To-Repeat:
>Fix:
>Audit-Trail:
From: Staffan =?iso-8859-1?Q?Thom=E9n?= <duck@shangtai.net>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/43733
Date: Wed, 28 Mar 2012 23:14:31 +0300
I bumped into this while building libidn 1.22 on IRIX today (pkgsrc-2011Q3), and
MIPSPro appears to produce the exact same error.
Changing the #if 1 in .../work/libidn-1.22/gl/getopt.h (line 30, enclosing an
#include_next <getopt.h>) to 0 made it compile and it seems to work as it
should. This "1" comes from HAVE_GETOPT_H from configure.
I'm too confused by this software's weird doings to see what it's trying to do
here, so I won't attempt to make a proper patch. It checks arbitrarily for
getopt.h (something that is pretty much guaranteed to be 1), uses libgetopt and
then conflicts with it when it's not gcc doing the compiling...
Regards,
--
Staffan Thomén - ADB3 455F 10D5 86D1 78D6 048D 11BB D66E 7C7E 2EF8
(Contact us)
$NetBSD: query-full-pr,v 1.36 2007/11/24 03:27:39 kano 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.