X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=kxNyt1mNAQUDJN0Or+UudsP2Y9v3OK0DvraLYoR0IE1
	1EDH/AzYSGmH0m+9t4HRBU3D++Z6JHLBjy5QwfUYayakm1pwjRTriA8maOCpjQdC
	LQ9MHWz+EMjy5weJI9lLO6XERTZE6CLgR9iV/BRMcld+0KrhQZMlOV8vJREog+yo
	=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 s=default; bh=zhghb3uwgUGCwcruORzhXzlnUF0=; b=Pj353K6ZsEL6v27yc
	zWwCkq3CTwIuOOm0UvcU12DwdLPpIbNhOmoRWk9gFGJcpTYdg4wAV19QIENRI+63
	xmNK+r92ws+uq55HRCn8HXOQBYzDToYMa/b7i27vuHzwlmPjeXu/v17fxTYOJQ9O
	lTdC/r1GQ1r1GId1BbnuH/MV5M=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2
X-HELO: mx2.mail.elte.hu
Message-ID: <534F94CC.5010606@ludens.elte.hu>
Date: Thu, 17 Apr 2014 10:46:04 +0200
From: szgyg <szgyg@ludens.elte.hu>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: libtool: link: object name conflicts in archive
References: <7c71eb34219779df3fb3d492f29bcead@mail.eclipso.de> <20140415093113.GF3271@calimero.vinschen.de> <22601c400b5e0fffb54b32a9d6b2bdf8@mail.eclipso.de> <20140415112757.GI3271@calimero.vinschen.de> <534DC67C.3080909@lysator.liu.se> <d9e573a45fdb88940ab5064aa333cccb@mail.eclipso.de>
In-Reply-To: <d9e573a45fdb88940ab5064aa333cccb@mail.eclipso.de>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-ELTE-SpamScore: -8.0
X-ELTE-SpamLevel:
X-ELTE-SpamCheck: no
X-ELTE-SpamVersion: ELTE 3.0
X-ELTE-SpamCheck-Details: score=-8.0 required=5.9 tests=ALL_TRUSTED,AWL,BAYES_00,L_AUTH,T_RP_MATCHES_RCVD autolearn=ham SpamAssassin version=3.3.2 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP -5.0 L_AUTH                 Caesar auth -0.0 T_RP_MATCHES_RCVD      Envelope sender domain matches handover relay                             domain -2.0 BAYES_00               BODY: Bayes spam probability is 0 to 1%                             [score: 0.0000]  0.0 AWL                    AWL: From: address is in the auto white-list

On 4/16/2014 9:21 AM, Gisela Haschmich wrote:
>
> /bin/sh ../../libtool --tag=F77   --mode=link gfortran     -o liby12.la  y12mae.lo y12maf.lo y12mbe.lo y12mbf.lo y12mce.lo y12mcf.lo y12mde.lo y12mdf.lo y12mfe.lo y12mge.lo y12mhe.lo -L/usr/lib/gcc/x86_64-pc-cygwin/4.8.2 -L/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../.. -lgfortran -lquadmath -lm -lcygwin -ladvapi32 -lshell32 -luser32 -lkernel32 -lltdl  -L/usr/lib/gcc/x86_64-pc-cygwin/4.8.2 -L/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../.. -lgfortran -lquadmath -lm -lcygwin -ladvapi32 -lshell32 -luser32 -lkernel32 -L/usr/lib/gcc/x86_64-pc-cygwin/4.8.2 -L/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../lib -L/lib/../lib -L/usr/li
>   b/../lib -L/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../.. -lgfortran -lquadmath -lm -lcygwin -ladvapi32
> -lshell32 -luser32 -lkernel32 -lltdl
> libtool: link: lib -OUT:.libs/liby12.lib .libs/y12mae.o .libs/y12maf.o .libs/y12mbe.o .libs/y12mbf.o .libs/y12mce.o .libs/y12mcf.o .libs/y12mde.o .libs/y12mdf.o .libs/y12mfe.o .libs/y12mge.o .libs/y12mhe.o
> ../../libtool: line 1117: lib: command not found

After running configure there is a file named libtool in the source 
directory. Replace it with libtool from /bin, then run make. (You may 
need to install the libtool package in cygwin's setup.)

They have this in configure.in:
-----
if test "x$FC" = "x" ; then
         AC_PROG_F77
         if test "x$F77" = "x" ; then
                 AC_MSG_ERROR([Need a working Fortran compiler])
         fi
         AC_F77_LIBRARY_LDFLAGS
         LIBS="$LIBS $F77LIBS"
else
         F77="$FC"
         F77LIBS="$FCLIBS"
         LIBS="$LIBS $FCLIBS"
fi
-----
so libtool thinks it's F77 but not G77 and tries to use the native linker.

s


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

