delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/20/07:48:11

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_72,J_CHICKENPOX_82,RCVD_IN_DNSWL_LOW,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <49C39078.9090700@cwilson.fastmail.fm>
Date: Fri, 20 Mar 2009 08:47:52 -0400
From: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Does libXpm-noX depend on libintl, libiconv?
References: <loom DOT 20090320T085453-870 AT post DOT gmane DOT org>
In-Reply-To: <loom.20090320T085453-870@post.gmane.org>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Victor Paesa wrote:
> The Xpm-noX library seems to depend on libintl, libiconv:
> 
> $ grep ^dependency_libs /usr/lib/noX/libXpm-noX.la
> dependency_libs=' -lgdi32 -luser32 /usr/lib/libintl.la -L/usr/lib
> /usr/lib/libiconv.la'
...
> I believe libXpm-noX does not really depend on libintl, libiconv, is that right?

The cxpm-noX.exe program, which ships as part of the "libXpm-noX"
package, depends on libintl and libiconv.  However, the cygXpm-noX-4.dll
DLL, which ships as part of the "libXpm-noX4" package (note the trailing
'4' in the package name) does not.

However, the build system's machinery doesn't know the difference -- and
blindly adds libintl.la and libiconv.la to dependency_libs, even though
the DLL itself doesn't actually use any symbols from those two libraries.

To fix this, I think I'll need to post-process the .la file to remove
the unnecessary dependencies, so I'll spin a new release of these
packages as soon as I can. (Also, I see that the .hint file for the
"libXpm-noX" package indicates only that it depends on "libXpm-noX4" --
it should also indicated dependency on libintl8 and libiconv2.

Thanks for the report.

--
Chuck

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019