NetBSD Problem Report #57823

From www@netbsd.org  Sat Jan  6 08:13:43 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 914B31A9239
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  6 Jan 2024 08:13:43 +0000 (UTC)
Message-Id: <20240106081341.8D8561A923A@mollari.NetBSD.org>
Date: Sat,  6 Jan 2024 08:13:41 +0000 (UTC)
From: kludev@gmail.com
Reply-To: kludev@gmail.com
To: gnats-bugs@NetBSD.org
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
>Organization:
>Environment:
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

>Description:
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++/demo.cc -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 https://savannah.gnu.org/support/?111002


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: https://www.gnu.org/software/libtool/)
>How-To-Repeat:
BMAKE="~/.local/bin/bmake"   # my pkgsrc install location

cd devel/ncurses &&
"$BMAKE"
>Fix:
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!

>Release-Note:

>Audit-Trail:

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

(Please note that ncurses builds from pkgsrc on various
Linux platforms, see
https://releng.netbsd.org/bulktracker/devel/ncurses)


From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@netbsd.org
Cc: 
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++/demo.cc -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.

 Joerg


From: "David H. Gutteridge" <david@gutteridge.ca>
To: Gnats Bugs <gnats-bugs@netbsd.org>
Cc: 
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.
 http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=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
 this.

 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.
 https://lists.gnu.org/archive/html/autotools-announce/2022-03/msg00000.html

 Dave

>Unformatted:

NetBSD Home
NetBSD PR Database Search

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