NetBSD Problem Report #45340

From  Thu Sep  8 08:30:48 2011
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 90D0A63C789
	for <>; Thu,  8 Sep 2011 08:30:48 +0000 (UTC)
Message-Id: <>
Date: Thu,  8 Sep 2011 08:30:47 +0000 (UTC)
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
University of Bielefeld
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/ (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.




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

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


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.