NetBSD Problem Report #37444

From martin@duskware.de  Wed Nov 28 09:36:27 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 5090063B8D8
	for <gnats-bugs@gnats.netbsd.org>; Wed, 28 Nov 2007 09:36:27 +0000 (UTC)
Message-Id: <20071127193552.9D65C63B888@narn.NetBSD.org>
Date: Tue, 27 Nov 2007 19:35:52 +0000 (UTC)
From: srcshelton@gmail.com
Reply-To: srcshelton@gmail.com
To: netbsd-bugs-owner@NetBSD.org
Subject: devel/gettext-0.14.6 fails building gettext-tools, whist devel/gettext-tools suceeds!
X-Send-Pr-Version: www-1.0

>Number:         37444
>Category:       pkg
>Synopsis:       devel/gettext-0.14.6 fails building gettext-tools, whist devel/gettext-tools suceeds!
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    joerg
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 28 09:40:00 +0000 2007
>Closed-Date:    Sat Dec 27 03:38:10 +0000 2014
>Last-Modified:  Sat Dec 27 03:38:10 +0000 2014
>Originator:     Stuart Shelton
>Release:        n/a - pkgsrc latest from CVS
>Organization:
>Environment:
IRIX64 octane 6.5 07202013 IP30; MIPSpro 7.4.4m
>Description:

devel/gettext-0.14.6 fails to build in two ways, one of which is fixable.

gettext's gettext-tools/src/po-lex.h also requires a patch (as has been added to po-lex.c and indeed partially implemented in po-lex.h) to exclude the C99 codepath if '__sgi' is defined, following the check for DECC:

devel/gettext/work/gettext-0.14.6/gettext-tools/src/po-lex.h
@76
-#if __STDC__ && (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L && !defined __DECC)
+#if __STDC__ && (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L && !defined __DECC && !defined __sgi)

This has been solved in gettext-tools by simply "#ifdef 0"'ing out the entire section(!)

However, even with that change gettext's gettext-tools compiles but fails to link, stating that "po_gram_error_at_line" isn't defined - which is correct, because as-stands, the header defines it as extern, and it isn't defined elsewhere.

In gettext-tools' po-lex.c, the varargs functions are built as the condition has been changed to '#if 1' - but making the similar change to gettext itself again results in errors and a build failure.
>How-To-Repeat:

(Also, as of now, gettext-tools is at 0.14.6nb1 and gettext is at 0.14.6.  Building gettext-tools causes a fatal error stating that there is a circular dependency between gettext and gettext-tools, whereas building gettext goes and builds gettext-tools-0.14.6nb1, then returns to build gettext at which point it says that a package named gettext-tools should be installed but isn't.

I fixed this by changing the DEPENDS line in gettext's Makefile to 'gettext-tools-0.14.6nb1')
>Fix:

However, having said all of this, if I copy po-lex.* from gettext-tools to gettext, then it compiles cleanly and passes its test-suite, except for:

/usr/bsd/var/tmp/devel/gettext/work/.wrapper/bin/shlibtool[59]: ../../gettext-runtime/libasprintf/libasprintf.la:  not found
libtool: link: cannot find the library `../../gettext-runtime/libasprintf/libasprintf.la' or unhandled argument `../../gettext-runtime/libasprintf/libasprintf.la'
FAIL: lang-c++

(which may an issue with the build-environment rather than the code itself)

I can't see any difference in the (corrected) source between the two trees, so I imagine that I also copied over the pre-compiled object file, and that was used.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-By: reed@netbsd.org
Responsible-Changed-When: Wed, 28 Nov 2007 13:06:10 +0000
Responsible-Changed-Why:
Assign to maintainer.


Responsible-Changed-From-To: joerg->rh
Responsible-Changed-By: joerg@netbsd.org
Responsible-Changed-When: Sat, 12 Jan 2008 17:46:21 +0000
Responsible-Changed-Why:
libiconv bug


Responsible-Changed-From-To: rh->joerg
Responsible-Changed-By: joerg@netbsd.org
Responsible-Changed-When: Sat, 12 Jan 2008 17:47:18 +0000
Responsible-Changed-Why:
Sorry, wrong gettext-tools bug.


State-Changed-From-To: open->feedback
State-Changed-By: joerg@NetBSD.org
State-Changed-When: Sun, 23 Oct 2011 01:02:29 +0000
State-Changed-Why:
Does this still apply to the newer gettext?


State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 27 Dec 2014 03:38:10 +0000
State-Changed-Why:
feedback timeout, assume fixed.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.