NetBSD Problem Report #50743

From www@NetBSD.org  Tue Feb  2 04:44:32 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.NetBSD.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 23C427A217
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  2 Feb 2016 04:44:32 +0000 (UTC)
Message-Id: <20160202044430.BCD5B7ACA7@mollari.NetBSD.org>
Date: Tue,  2 Feb 2016 04:44:30 +0000 (UTC)
From: kethzer.dr@gmail.com
Reply-To: kethzer.dr@gmail.com
To: gnats-bugs@NetBSD.org
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
>Organization:
>Environment:
FreeBSD prosody 10.1-RELEASE-p24 FreeBSD 10.1-RELEASE-p24 #0: Mon Nov  2 12:17:28 UTC 2015     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
I'm running a Freebsd server and I'm trying to install ncurses-6.0nb1 but it is breaking.
>How-To-Repeat:
bmake update

cd ../lib && libtool --tag=CXX --silent --mode=link c++  c++ -O  \
	-o libncurses++.la ../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/libform.la ../lib/libmenu.la ../lib/libpanel.la ../lib/libncurses.la    -Wl,-R/usr/pkg/lib -lutil  -lstdc++
*** [buildlink3] Warning: libtool replaced -lform with ../lib/libform.la
*** [buildlink3] Warning: libtool replaced -lmenu with ../lib/libmenu.la
*** [buildlink3] Warning: libtool replaced -lpanel with ../lib/libpanel.la
*** [buildlink3] Warning: libtool replaced -lncurses with ../lib/libncurses.la
/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/libncurses++.la' failed
gmake[1]: *** [../lib/libncurses++.la] 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

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

Stop.
>Fix:
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
38a39,40
> BUILDLINK_TRANSFORM+=	rm:-lstdc++
> 
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: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.