NetBSD Problem Report #40153

From www@NetBSD.org  Thu Dec 11 01:30:09 2008
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 2C58763B89C
	for <gnats-bugs@gnats.netbsd.org>; Thu, 11 Dec 2008 01:30:09 +0000 (UTC)
Message-Id: <20081211013008.ECEC863B121@narn.NetBSD.org>
Date: Thu, 11 Dec 2008 01:30:08 +0000 (UTC)
From: zingelman@fnal.gov
Reply-To: zingelman@fnal.gov
To: gnats-bugs@NetBSD.org
Subject: pkgsrc/devel/binutils fails to build on solaris 10 sparc
X-Send-Pr-Version: www-1.0

>Number:         40153
>Category:       pkg
>Synopsis:       pkgsrc/devel/binutils fails to build on solaris 10 sparc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    solaris-pkg-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 11 01:35:00 +0000 2008
>Closed-Date:    Sat Apr 06 17:54:48 +0000 2013
>Last-Modified:  Sat Apr 06 17:54:48 +0000 2013
>Originator:     Tim
>Release:        pkgsrc current
>Organization:
>Environment:
SunOS hostname 5.10 Generic_137111-05 sun4u sparc SUNW,Sun-Fire-V440 Solaris
>Description:
build on solaris 10 sparc with pkgsrc/lang/gcc34 and pkgsrc/devel/gettext results in:

gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O -I/usr/pkg/gcc34/include -I/usr/pkg/gcc34/lib/gcc/sparc-sun-solaris2.10/3.4.6/include -I/usr/include -I/usr/pkg/include -o size size.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a
size.o: In function `usage':
size.c:(.text+0x8): undefined reference to `libintl_gettext'
size.c:(.text+0x28): undefined reference to `libintl_gettext'
size.c:(.text+0x40): undefined reference to `libintl_gettext'
size.c:(.text+0x58): undefined reference to `libintl_gettext'
size.c:(.text+0x8c): undefined reference to `libintl_gettext'
size.o: In function `main':
size.c:(.text+0xe8): undefined reference to `libintl_bindtextdomain'
size.c:(.text+0xf0): undefined reference to `libintl_textdomain'
size.c:(.text+0x1b4): undefined reference to `libintl_gettext'
size.c:(.text+0x258): undefined reference to `libintl_gettext'
bucomm.o: In function `set_default_bfd_target':
bucomm.c:(.text+0x180): undefined reference to `libintl_gettext'
bucomm.o: In function `list_matching_formats':
bucomm.c:(.text+0x1bc): undefined reference to `libintl_gettext'
bucomm.o: In function `list_supported_targets':
bucomm.c:(.text+0x250): undefined reference to `libintl_gettext'
bucomm.o:bucomm.c:(.text+0x270): more undefined references to `libintl_gettext' follow
../bfd/.libs/libbfd.a(archive.o): In function `_bfd_write_archive_contents':
archive.c:(.text+0x229c): undefined reference to `libintl_dgettext'
../bfd/.libs/libbfd.a(archive.o): In function `_bfd_archive_bsd_update_armap_timestamp':
archive.c:(.text+0x2a74): undefined reference to `libintl_dgettext'
archive.c:(.text+0x2b58): undefined reference to `libintl_dgettext'
../bfd/.libs/libbfd.a(bfd.o): In function `bfd_errmsg':
bfd.c:(.text+0x54): undefined reference to `libintl_dgettext'
../bfd/.libs/libbfd.a(bfd.o): In function `bfd_assert':
bfd.c:(.text+0x608): undefined reference to `libintl_dgettext'
../bfd/.libs/libbfd.a(bfd.o):bfd.c:(.text+0x650): more undefined references to `libintl_dgettext' follow
collect2: ld returned 1 exit status
*** Error code 1

Stop.
bmake: stopped in /usr/pkg/pkgsrc/devel/binutils/work/binutils-2.17/binutils

>How-To-Repeat:
build on solaris 10 sparc with pkgsrc/lang/gcc34 and pkgsrc/devel/gettext
>Fix:
diff -u -r1.36 Makefile
--- Makefile    20 Jun 2008 01:09:12 -0000      1.36
+++ Makefile    11 Dec 2008 01:26:29 -0000
@@ -24,6 +24,7 @@

 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --with-lib-path='/lib:/usr/lib'
+CONFIGURE_ARGS+=       --with-included-gettext
 GNU_PROGRAM_PREFIX?=   gnu-
 CONFIGURE_ARGS+=       --program-prefix=${GNU_PROGRAM_PREFIX:Q}
 PLIST_SUBST+=          GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX:Q}

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Tue, 23 Dec 2008 12:50:30 +0000
Responsible-Changed-Why:
Problem on Solaris.


State-Changed-From-To: open->feedback
State-Changed-By: asau@NetBSD.org
State-Changed-When: Sun, 21 Feb 2010 22:17:30 +0000
State-Changed-Why:
Package builds fine on SunOS 5.10 sun4u with GNU compiler.
Do you still perceive the problem?


From: Tim Zingelman <zingelman@fnal.gov>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/40153 (pkgsrc/devel/binutils fails to build on solaris 10 
	sparc)
Date: Mon, 22 Feb 2010 14:50:25 -0600

 On Sun, Feb 21, 2010 at 4:17 PM,  <asau@netbsd.org> wrote:
 > Synopsis: pkgsrc/devel/binutils fails to build on solaris 10 sparc
 >
 > State-Changed-From-To: open->feedback
 > State-Changed-By: asau@NetBSD.org
 > State-Changed-When: Sun, 21 Feb 2010 22:17:30 +0000
 > State-Changed-Why:
 > Package builds fine on SunOS 5.10 sun4u with GNU compiler.
 > Do you still perceive the problem?

 Yes.  No change.  The included patch resolves the issue, but is
 probably unacceptable.

  - Tim

State-Changed-From-To: feedback->open
State-Changed-By: asau@NetBSD.org
State-Changed-When: Mon, 22 Feb 2010 21:12:43 +0000
State-Changed-Why:
Problem persists.


From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org, zingelman@fnal.gov
Cc: 
Subject: Re: pkg/40153 (pkgsrc/devel/binutils fails to build on solaris 10
	sparc)
Date: Sun, 7 Mar 2010 03:15:33 +0000

 On Mon, Feb 22, 2010 at 09:00:06PM +0000, Tim Zingelman wrote:
  >> Package builds fine on SunOS 5.10 sun4u with GNU compiler.
  >> Do you still perceive the problem?
  >  
  >  Yes.  No change.  The included patch resolves the issue, but is
  >  probably unacceptable.

 Does adding

    .include "../../devel/gettext-lib/buildlink3.mk"

 to the package makefile solve the problem?

 -- 
 David A. Holland
 dholland@netbsd.org

From: Tim Zingelman <zingelman@fnal.gov>
To: gnats-bugs@netbsd.org
Cc: solaris-pkg-people@netbsd.org, gnats-admin@netbsd.org, 
	pkgsrc-bugs@netbsd.org
Subject: Re: pkg/40153 (pkgsrc/devel/binutils fails to build on solaris 10 
	sparc)
Date: Sun, 7 Mar 2010 21:13:49 -0600

 On Sat, Mar 6, 2010 at 9:20 PM, David Holland <dholland-pbugs@netbsd.org> w=
 rote:
 >
 > =A0Does adding
 >
 > =A0 =A0.include "../../devel/gettext-lib/buildlink3.mk"
 >
 > =A0to the package makefile solve the problem?

 No change.
 I think the problem may be that the compile 'sees' the pkgsrc include
 files but then links against the builtin libintl.
 If I add -L/usr/pkg/lib -lintl to the end of the failing link
 manually, it links ok.

 I see the compile line for size.o includes: -I.././binutils/../intl -I../in=
 tl
 even when compiled without the added: CONFIGURE_ARGS+=3D --with-included-ge=
 ttext
 so maybe the bad include file is found there?

 gcc -DHAVE_CONFIG_H -I. -I.././binutils -I. -D_GNU_SOURCE  -I.
 -I.././binutils -I../bfd -I.././binutils/../bfd
 -I.././binutils/../include   -I.././binutils/../intl -I../intl
 -DLOCALEDIR=3D"\"/usr/pkg/share/locale\""
 -Dbin_dummy_emulation=3Dbin_vanilla_emulation   -I/usr/pkg/gcc34/include
 -I/usr/pkg/gcc34/lib/gcc/sparc-sun-solaris2.10/3.4.6/include
 -I/usr/include -I/usr/pkg/include -W -Wall -Wstrict-prototypes
 -Wmissing-prototypes -Werror -O -I/usr/pkg/gcc34/include
 -I/usr/pkg/gcc34/lib/gcc/sparc-sun-solaris2.10/3.4.6/include
 -I/usr/include -I/usr/pkg/include -c size.c

 I messed around with adding other things to the package makefile:
  LIBS+=3D ${BUILDLINK_LDADD.gettext}
  LIBS+=3D -lintl
 but that did not seem to do anything.

  - Tim

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: solaris-pkg-people@NetBSD.org, gnats-admin@netbsd.org,
	pkgsrc-bugs@netbsd.org, zingelman@fnal.gov
Subject: Re: pkg/40153 (pkgsrc/devel/binutils fails to build on solaris 10
	sparc)
Date: Mon, 8 Mar 2010 05:03:05 +0000

 On Mon, Mar 08, 2010 at 03:15:05AM +0000, Tim Zingelman wrote:
  >  > =A0Does adding
  >  >
  >  > =A0 =A0.include "../../devel/gettext-lib/buildlink3.mk"
  >  >
  >  > =A0to the package makefile solve the problem?
  >  
  >  No change.

 ah well, guess it wasn't likely to be that easy.

  >  I think the problem may be that the compile 'sees' the pkgsrc include
  >  files but then links against the builtin libintl.
  >  If I add -L/usr/pkg/lib -lintl to the end of the failing link
  >  manually, it links ok.
  >  
  >  I see the compile line for size.o includes:
  > -I.././binutils/../intl -I../intl even when compiled without the
  > added: CONFIGURE_ARGS+= --with-included-gettext so maybe the
  > bad include file is found there?

 Could be.

 Does explicit --without-included-gettext change that?

 Looking in config.log (this being binutils there will probably be
 several of them) to see what it's thinking about libintl may be
 helpful also.

 -- 
 David A. Holland
 dholland@netbsd.org


It seems that this problem has gone away with newer versions because it no
longer fails for me.  - Tim

State-Changed-From-To: open->closed
State-Changed-By: tez@NetBSD.org
State-Changed-When: Sat, 06 Apr 2013 17:54:48 +0000
State-Changed-Why:
The problem was apparently fixed by a version update.


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