NetBSD Problem Report #50743

From  Tue Feb  2 04:44:32 2016
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id 23C427A217
	for <>; Tue,  2 Feb 2016 04:44:32 +0000 (UTC)
Message-Id: <>
Date: Tue,  2 Feb 2016 04:44:30 +0000 (UTC)
Subject: ncurses-6 [linker command failed]
X-Send-Pr-Version: www-1.0

>Number:         50743
>Category:       pkg
>Synopsis:       ncurses-6 [linker command failed]
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 02 04:45:00 +0000 2016
>Originator:     Keke Pierre
>Release:        pkgsrc-2015Q4
FreeBSD prosody 10.1-RELEASE-p24 FreeBSD 10.1-RELEASE-p24 #0: Mon Nov  2 12:17:28 UTC 2015  amd64
I'm running a Freebsd server and I'm trying to install ncurses-6.0nb1 but it is breaking.
bmake update

cd ../lib && libtool --tag=CXX --silent --mode=link c++  c++ -O  \
	-o ../obj_lo/cursesf.lo ../obj_lo/cursesm.lo ../obj_lo/cursesw.lo ../obj_lo/cursespad.lo ../obj_lo/cursesp.lo ../obj_lo/cursslk.lo ../obj_lo/cursesapp.lo ../obj_lo/cursesmain.lo \
	-rpath /usr/pkg/lib \
	-version-number 6:0  -L../lib -lform -lmenu -lpanel -lncurses  -L../lib ../lib/ ../lib/ ../lib/ ../lib/    -Wl,-R/usr/pkg/lib -lutil  -lstdc++
*** [buildlink3] Warning: libtool replaced -lform with ../lib/
*** [buildlink3] Warning: libtool replaced -lmenu with ../lib/
*** [buildlink3] Warning: libtool replaced -lpanel with ../lib/
*** [buildlink3] Warning: libtool replaced -lncurses with ../lib/
/usr/bin/ld: cannot find -lstdc++
c++: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:319: recipe for target '../lib/' failed
gmake[1]: *** [../lib/] Error 1
gmake[1]: Leaving directory '/usr/pkgsrc/devel/ncurses/work/ncurses-6.0/c++'
Makefile:113: recipe for target 'all' failed
gmake: *** [all] Error 2
*** Error code 2

bmake[1]: stopped in /usr/pkgsrc/devel/ncurses
*** Error code 1

I was able to fix this by doing the following.
# cvs diff
cvs diff: Diffing .
Index: Makefile.common
RCS file: /cvsroot/pkgsrc/devel/ncurses/Makefile.common,v
retrieving revision 1.31
diff -r1.31 Makefile.common
cvs diff: Diffing patches

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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.