NetBSD Problem Report #57823

From  Sat Jan  6 08:13:43 2024
Return-Path: <>
Received: from ( [])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 914B31A9239
	for <>; Sat,  6 Jan 2024 08:13:43 +0000 (UTC)
Message-Id: <>
Date: Sat,  6 Jan 2024 08:13:41 +0000 (UTC)
Subject: libtool 2.4.7 causing ncurses build failure
X-Send-Pr-Version: www-1.0

>Number:         57823
>Category:       pkg
>Synopsis:       libtool 2.4.7 causing ncurses build failure
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    linux-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 06 08:15:00 +0000 2024
>Last-Modified:  Sun Jan 07 02:35:01 +0000 2024
>Originator:     KL
>Release:        pkgsrc git commit 0c1a9f271794cc4def803eb3485b0ed167ec23ba
Linux 5.19.0-32-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 30 17:03:34 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

making devel/ncurses failure with:

+ cd ../obj_lo
+ libtool --tag=CXX --silent --mode=compile c++ -DHAVE_CONFIG_H -DBUILDING_NCURSES_CXX -I../c++ -I. -I../include -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -DNDEBUG -O2 -c ../c++/ -o ../obj_lo/demo.lo
mv: 'demo.o' and '../obj_lo/demo.o' are the same file
make[1]: * [Makefile:268: ../obj_lo/demo.lo] Error 1 

Looking more, I found out several things: 

1. pkgsrc uses devel/libtool 2.4.7, which is not the stable release. 2.4.6 is the stable release. 
2. I replaced pkgsrc bin/libtool with my system's libtool 2.4.6, this time, pkgsrc build devel/ncurses succeeded.
3. I can reproduce this issue by building ncurses directly in my host system, without pkgsrc. So I have reported the bug to libtool, at

Finally, I want to report the issue here, so that pkgsrc should use 2.4.6 as this is currently the stable release, as of Jan 5th, 2024 (see:
BMAKE="~/.local/bin/bmake"   # my pkgsrc install location

cd devel/ncurses &&
cd ~/.local/bin  # my pkgsrc install location
mv libtool libtool.disable   # disable pkgsrc libtool 2.4.7
ln -s /bin/libtool .   # replace with system libtool 2.4.6

cd ~/work/pkgsrc/devel/ncurses
~/.local/bin/bmake   # success!



Responsible-Changed-From-To: pkg-manager->linux-pkg-people
Responsible-Changed-When: Sat, 06 Jan 2024 08:19:05 +0000
pkgsrc on Linux problem.

(Please note that ncurses builds from pkgsrc on various
Linux platforms, see

From: Joerg Sonnenberger <>
Subject: Re: pkg/57823: libtool 2.4.7 causing ncurses build failure
Date: Sun, 07 Jan 2024 00:13:58 +0100

 On Saturday, January 6, 2024 9:15:01 AM CET you wrote:
 > + cd ../obj_lo
 > + libtool --tag=CXX --silent --mode=compile c++ -DHAVE_CONFIG_H -DBUILDING_NCURSES_CXX -I../c++ -I. -I../include -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -DNDEBUG -O2 -c ../c++/ -o ../obj_lo/demo.lo
 > mv: 'demo.o' and '../obj_lo/demo.o' are the same file
 > make[1]: * [Makefile:268: ../obj_lo/demo.lo] Error 1 

 Can you provide your bin/libtool please? Might be a starting point to
 tracing down what exactly is different on your system.


From: "David H. Gutteridge" <>
To: Gnats Bugs <>
Subject: Re: pkg/57823: libtool 2.4.7 causing ncurses build failure
Date: Sat, 06 Jan 2024 21:30:57 -0500

 Separate from what Joerg mentioned, a few other things.

 This is evidently a duplicate of PR pkg/56843.
 Note 56843 was filed when libtool 2.4.6 was what was in both pkgsrc and
 the Fedora 35 release itself. Also, tnn@ and I cannot reproduce this on
 Fedora 39 with 2.4.7 from pkgsrc. So it seems there must be more to

 AIUI, 2.4.7 is a stable release; it's been in Fedora since version 36,
 is in Debian Stable, etc. I imagine GNU just forgot to update their web
 page. The GNU announcement notes it's stable.



NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.