NetBSD Problem Report #45340

From www@NetBSD.org  Thu Sep  8 08:30:48 2011
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 90D0A63C789
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  8 Sep 2011 08:30:48 +0000 (UTC)
Message-Id: <20110908083047.7E6F463C6F4@www.NetBSD.org>
Date: Thu,  8 Sep 2011 08:30:47 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: devel/gdb6 link failure
X-Send-Pr-Version: www-1.0

>Number:         45340
>Category:       pkg
>Synopsis:       devel/gdb6 link failure
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 08 08:35:00 +0000 2011
>Last-Modified:  Fri Feb 01 22:58:35 +0000 2013
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
On Solaris, devel/gdb6 fails to find ncurses:

gcc -O -I/usr/pkgsrc/20110809/include/ncurses -I/usr/pkgsrc/20110809/include -I/usr/pkgsrc/20110809/gcc34/include -I/usr/include       \
        -o gdb gdb.o libgdb.a \
           ../bfd/libbfd.a ../readline/libreadline.a ../opcodes/libopcodes.a -L/usr/pkgsrc/20110809/lib -R/usr/pkgsrc/20110809/lib -lintl ../libiberty/libiberty.a     -ldl -ltermcap -lsocket -lnsl -lm -liconv ../libiberty/libiberty.a  
Undefined                       first referenced
 symbol                             in file
wattr_on                            libgdb.a(tui-wingeneral.o)
wattr_off                           libgdb.a(tui-wingeneral.o)
ld: fatal: Symbol referencing errors. No output written to gdb

Even adding a dependency to ../../devel/ncurses/buildlink3.mk (and devel/gmp, while we are at it) does not solve the problem. The above output is already with this dependency included, but '-lncurses' is missing from the command line.

NB: This is not a Solaris problem, so please do not assign this to solaris-pkg-people. This is a pkgsrc problem: Why does the dependency to ncurses not do what it should do? See also pkg/32627.
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->shannonjr
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Thu, 22 Sep 2011 11:42:02 +0000
Responsible-Changed-Why:
Over to maintainer.


Responsible-Changed-From-To: shannonjr->pkg-manager
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Fri, 01 Feb 2013 22:58:35 +0000
Responsible-Changed-Why:
Back to role account.


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