NetBSD Problem Report #48081

From ryo_on@yk.rim.or.jp  Thu Jul 25 08:49:35 2013
Return-Path: <ryo_on@yk.rim.or.jp>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 86DC070A55
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 25 Jul 2013 08:49:35 +0000 (UTC)
Message-Id: <20130725084932.59B015C309@mail.SiriusCloud.jp>
Date: Thu, 25 Jul 2013 17:49:32 +0900 (JST)
From: ryoon@NetBSD.org
Reply-To: ryoon@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: devel/libtool-base generates wrong libtool script on 32bit and 64 bit Cygwin 1.7.22
X-Send-Pr-Version: 3.95

>Number:         48081
>Category:       pkg
>Synopsis:       devel/libtool-base generates wrong libtool script on 32bit and 64 bit Cygwin 1.7.22
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    joerg
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 25 08:50:00 +0000 2013
>Closed-Date:    Tue Oct 15 15:46:54 +0000 2013
>Last-Modified:  Tue Oct 15 15:46:54 +0000 2013
>Originator:     Ryo ONODERA
>Release:        NetBSD 6.99.23
>Organization:

>Environment:


System: NetBSD tellurium.elements.tetera.org 6.99.23 NetBSD 6.99.23 (DTRACE) #0: Wed Jul 17 21:24:04 JST 2013 ryo_on@tellurium.elements.tetera.org:/usr/obj/amd64/sys/arch/amd64/compile/DTRACE amd64
Architecture: x86_64
Machine: amd64
>Description:
On 1.7.22 of cygwin, libtool-base's configure script detects fortran compiler,
FC and F77, and generates wrong libtool is generated.
The libtool script breaks dll files (on cygwin64) or does not link object
files with error (on cygwin).

The wrong libtool script has empty postinstall_cmds, soname_spec etc.

>How-To-Repeat:
$ cd pkgsrc/devel/libtool-base
$ bmake configure
$ less work/libtool-base*/libtool
and see postinstall_cmds, soname_spec etc.

>Fix:

With CONFIGURE_ENV, fortran support is not disabled.
CONFIGURE_ARGS helps this problem.

I want to commit this patch.
I request OWNER's review.

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/libtool-base/Makefile,v
retrieving revision 1.103
diff -u -r1.103 Makefile
--- Makefile	1 Jul 2013 15:59:06 -0000	1.103
+++ Makefile	25 Jul 2013 08:44:38 -0000
@@ -60,6 +60,7 @@
 #
 USE_LANGUAGES=		c c++
 CONFIGURE_ARGS+=	--disable-ltdl-install
+CONFIGURE_ARGS+=	F77=no FC=no

 USE_TOOLS+=		echo


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Thu, 25 Jul 2013 08:51:14 +0000
Responsible-Changed-Why:
Includes patch, for review by OWNER.


From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/48081: devel/libtool-base generates wrong libtool script on
 32bit and 64 bit Cygwin 1.7.22
Date: Thu, 25 Jul 2013 18:45:18 +0200

 On Thu, Jul 25, 2013 at 08:50:00AM +0000, ryoon@NetBSD.org wrote:
 > On 1.7.22 of cygwin, libtool-base's configure script detects fortran compiler,
 > FC and F77, and generates wrong libtool is generated.

 What does it detect?

 Joerg

From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org, joerg@britannica.bec.de
Cc: 
Subject: Re: pkg/48081: devel/libtool-base generates wrong libtool script
 on 32bit and 64 bit Cygwin 1.7.22
Date: Fri, 26 Jul 2013 08:34:40 +0900 (JST)

 From: Joerg Sonnenberger <joerg@britannica.bec.de>, Date: Thu, 25 Jul 2013 16:50:01 +0000 (UTC)

 > The following reply was made to PR pkg/48081; it has been noted by GNATS.
 > 
 > From: Joerg Sonnenberger <joerg@britannica.bec.de>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: pkg/48081: devel/libtool-base generates wrong libtool script on
 >  32bit and 64 bit Cygwin 1.7.22
 > Date: Thu, 25 Jul 2013 18:45:18 +0200
 > 
 >  On Thu, Jul 25, 2013 at 08:50:00AM +0000, ryoon@NetBSD.org wrote:
 >  > On 1.7.22 of cygwin, libtool-base's configure script detects fortran compiler,
 >  > FC and F77, and generates wrong libtool is generated.
 >  
 >  What does it detect?

 libtool-base's configure script detects pkgsrc's work/.wrapper/bin/g77,
 work/.wrapper/bin/f77, and work/.wrapper/bin/gfortran as non GNU Fortran
 compiler.

 --
 Ryo ONODERA // ryo_on@yk.rim.or.jp
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org, joerg@britannica.bec.de
Cc: 
Subject: Re: pkg/48081: devel/libtool-base generates wrong libtool script
 on 32bit and 64 bit Cygwin 1.7.22
Date: Fri, 26 Jul 2013 09:06:30 +0900 (JST)

 From: Ryo ONODERA <ryo_on@yk.rim.or.jp>, Date: Thu, 25 Jul 2013 23:35:00 +0000 (UTC)

 > The following reply was made to PR pkg/48081; it has been noted by GNATS.
 > 
 > From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
 > To: gnats-bugs@NetBSD.org, joerg@britannica.bec.de
 > Cc: 
 > Subject: Re: pkg/48081: devel/libtool-base generates wrong libtool script
 >  on 32bit and 64 bit Cygwin 1.7.22
 > Date: Fri, 26 Jul 2013 08:34:40 +0900 (JST)
 > 
 >  From: Joerg Sonnenberger <joerg@britannica.bec.de>, Date: Thu, 25 Jul 2013 16:50:01 +0000 (UTC)
 >  
 >  > The following reply was made to PR pkg/48081; it has been noted by GNATS.
 >  > 
 >  > From: Joerg Sonnenberger <joerg@britannica.bec.de>
 >  > To: gnats-bugs@NetBSD.org
 >  > Cc: 
 >  > Subject: Re: pkg/48081: devel/libtool-base generates wrong libtool script on
 >  >  32bit and 64 bit Cygwin 1.7.22
 >  > Date: Thu, 25 Jul 2013 18:45:18 +0200
 >  > 
 >  >  On Thu, Jul 25, 2013 at 08:50:00AM +0000, ryoon@NetBSD.org wrote:
 >  >  > On 1.7.22 of cygwin, libtool-base's configure script detects fortran compiler,
 >  >  > FC and F77, and generates wrong libtool is generated.
 >  >  
 >  >  What does it detect?
 >  
 >  libtool-base's configure script detects pkgsrc's work/.wrapper/bin/g77,
 >  work/.wrapper/bin/f77, and work/.wrapper/bin/gfortran as non GNU Fortran
 >  compiler.

 I have sent config.log on cygwin64 to joerg@ outside gnats-bugs@.

 configure:16877: checking for x86_64-pc-cygwin-g77
 configure:16904: result: f77

 These lines indicate libtool-base's configure script detects pkgsrc's error
 message only script as Fortran compiler.
 If Fortran compiler is detected, all variables including soname_spec,
 postinstall_cmds etc., is initialized again. Then they become empty.

 Please read carefully libtool-base's configure script.
 If you have no cygwin environment, you will understand generated
 libtool will be wrong one.

 --
 Ryo ONODERA // ryo_on@yk.rim.or.jp
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/48081: devel/libtool-base generates wrong libtool script
 on 32bit and 64 bit Cygwin 1.7.22
Date: Thu, 22 Aug 2013 22:18:26 +0900 (JST)

 Hi,

 Review progress?

 --
 Ryo ONODERA // ryo_on@yk.rim.or.jp
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/48081: devel/libtool-base generates wrong libtool script on
 32bit and 64 bit Cygwin 1.7.22
Date: Thu, 22 Aug 2013 23:28:29 +0200

 On Thu, Aug 22, 2013 at 02:40:00PM +0000, Ryo ONODERA wrote:
 >  Review progress?

 Testing them now.

 Joerg

From: "Joerg Sonnenberger" <joerg@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48081 CVS commit: pkgsrc/devel
Date: Tue, 27 Aug 2013 15:50:23 +0000

 Module Name:	pkgsrc
 Committed By:	joerg
 Date:		Tue Aug 27 15:50:23 UTC 2013

 Modified Files:
 	pkgsrc/devel/libtool: distinfo
 	pkgsrc/devel/libtool-base: Makefile
 	pkgsrc/devel/libtool-fortran: Makefile
 	pkgsrc/devel/libtool/patches: manual-libtool.m4 patch-ab patch-ad

 Log Message:
 PR 48081: Explicitly disable Fortran in libtool-base, otherwise it will
 incorrectly handle the default wrapper scripts on Cygwin.

 libtool bug 14579: Disable ar(1) locking on OSX. It creates more harm
 than good.

 Bump libtool-base and libtool-fortran.


 To generate a diff of this commit:
 cvs rdiff -u -r1.88 -r1.89 pkgsrc/devel/libtool/distinfo
 cvs rdiff -u -r1.103 -r1.104 pkgsrc/devel/libtool-base/Makefile
 cvs rdiff -u -r1.7 -r1.8 pkgsrc/devel/libtool-fortran/Makefile
 cvs rdiff -u -r1.36 -r1.37 pkgsrc/devel/libtool/patches/manual-libtool.m4
 cvs rdiff -u -r1.76 -r1.77 pkgsrc/devel/libtool/patches/patch-ab
 cvs rdiff -u -r1.41 -r1.42 pkgsrc/devel/libtool/patches/patch-ad

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 13 Oct 2013 21:22:54 +0000
State-Changed-Why:
This has been committed; can it be closed?


State-Changed-From-To: feedback->closed
State-Changed-By: ryoon@NetBSD.org
State-Changed-When: Tue, 15 Oct 2013 15:46:54 +0000
State-Changed-Why:
confirmed fixed


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.