X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 	tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_GX,TW_YG,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4BC0D204.8060304@gmail.com>
Date: Sat, 10 Apr 2010 20:31:16 +0100
From: Dave Korn <dave.korn.cygwin@googlemail.com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: 1.7.4: Building Xalan-C results in a unusable library
References: <4BC0549A.7050201@reto-schneider.ch>
In-Reply-To: <4BC0549A.7050201@reto-schneider.ch>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
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

On 10/04/2010 11:36, Reto Schneider wrote:

> I'm doing the following steps:

  So, I quickly checked out the sources and tried your build recipe, realised
I needed to install xerces-devel, did so, finished the build and installed.

> Now the strange part:
> 
> $ /usr/local/bin/Xalan.exe
> /usr/local/bin/Xalan.exe: error while loading shared libraries: cygxalan-c111.dll: cannot open
> shared object file: No such file or directory

  Ah, the message is confusing.  It is not cygxalan-c111.dll that cannot be
found, but a library to which it is linked that cannot be found, preventing
cygxalan-c111.dll from being loaded by Xalan.exe.

> To me it looks as if this file is broken:
> 
> $ ldd /usr/local/lib/cygxalan-c111.dll

  Hmm, I don't know what ldd is doing, but I used cygcheck to take a look at it:

> $ PATH=/tmp/xalan/install/usr/local/bin:$PATH  cygcheck  ./usr/local/bin/Xalan.
> exe
> F:\cygwin-1.7\tmp\xalan\install\usr\local\bin\Xalan.exe
>   F:\cygwin-1.7\bin\cygwin1.dll
>     C:\WINNT\system32\ADVAPI32.DLL
>       C:\WINNT\system32\KERNEL32.dll
>         C:\WINNT\system32\ntdll.dll
>       C:\WINNT\system32\RPCRT4.dll
>   F:\cygwin-1.7\bin\cygxerces-c-3-0.dll
>     F:\cygwin-1.7\bin\cyggcc_s-1.dll
>     F:\cygwin-1.7\bin\cygstdc++-6.dll
>     F:\cygwin-1.7\bin\cygcurl-4.dll
>       F:\cygwin-1.7\bin\cygcrypto-0.9.8.dll
>       F:\cygwin-1.7\bin\cygidn-11.dll
>         F:\cygwin-1.7\bin\cygiconv-2.dll
>         F:\cygwin-1.7\bin\cygintl-8.dll
>       F:\cygwin-1.7\bin\cygssh2-1.dll
>         F:\cygwin-1.7\bin\cygz.dll
>       F:\cygwin-1.7\bin\cygssl-0.9.8.dll
>     F:\cygwin-1.7\bin\cygicuuc38.dll
>       F:\cygwin-1.7\bin\cygicudata38.dll
>   F:\cygwin-1.7\tmp\xalan\install\usr\local\bin\cygxalan-c111.dll
> cygcheck: track_down: could not find cygxalanMsg111.dll

  So, it turns out there's a bug in the "make install" stage.  The missing
cygxalanMsg111.dll is built OK, but only the link library gets installed, not
the actual DLL itself.  You need to talk to upstream about this bug in their
makefile.  As a workaround, copying the DLL manually from the build directory
to whereever you've got the other DLL installed works fine.

    cheers,
      DaveK


--
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

