Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
From: Han-Wen Nienhuys <hanwen@xs4all.nl>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <16746.54438.748058.786459@byrd.xs4all.nl>
Date: Mon, 11 Oct 2004 20:44:54 +0200
To: Jan Nieuwenhuizen <janneke@gnu.org>
Cc: cygwin@cygwin.com
Subject: Re: libtool bug
In-Reply-To: <87mzytboa0.fsf@peder.flower>
References: <16741.49587.333388.685699@byrd.xs4all.nl> <1968842951.20041008015659@familiehaase.de> <41662639.3030306@cwilson.fastmail.fm> <87d5zt4r3g.fsf@peder.flower> <657467259.20041008123554@familiehaase.de> <41671F91.8020508@cwilson.fastmail.fm> <87ekk8qina.fsf@peder.flower> <41687576.5000408@cwilson.fastmail.fm> <41687CFB.8030302@cwilson.fastmail.fm> <87mzytboa0.fsf@peder.flower>
Reply-To: hanwen@xs4all.nl

janneke@gnu.org writes:
> Charles Wilson writes:
> 
> > BTW, Jan, I gather that, despite my earlier doubts, the libtool
> > changes in 1.5.10 fixed the "The application failed to initialize
> > properly (0xc0000005).
> 
> Not exactly, it is fixed, but I cannot confirm that was the fix.
> Guile had a copy of libtool pre 1.4 or something, which we replaced.
> Han-Wen built latest Guile CVS also using libtool 1.5.6 on Cygwin,
> which doesn't have this .rdata change?
> 
> > and now we're looking at another problem?
> 
> Yes, that's right.  Guile now starts fine, but dlopen-ing of a shared
> module does not work.
> 
> [Because Han-Wen reported that "(+ 1 2)" also worked for him, I think
>  Han-Wen found that (see earlier in this thread) linking with -lguile
>  just does not resolve at load time, Han-Wen?]

No, this is not correct. My original email exactly described the
problem: when linking the libsrfi-1 library with libtool 1.5.10 on
Cygwin, libguile.dll.a is not linked, causing the link to fail.

For mysterious reasons (libtool brokenness, I suppose), the compile
and make install do continue, but at run-time the (use-modules .. )
call throws error 126, which is entirely understandable, since
/usr/lib/ does not contain the libsrfi-1 DLL.

When linking libsrfi-1 by hand (inserting libguile.dll.a into the
command line),  and copying the resulting DLL to /usr/lib/ , use-modules
works correctly.

-- 

 Han-Wen Nienhuys   |   hanwen@xs4all.nl   |   http://www.xs4all.nl/~hanwen 


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

