delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/02/07:56:19

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A251615.5080408@gmail.com>
Date: Tue, 02 Jun 2009 13:07:49 +0100
From: Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?
References: <23830861 DOT post AT talk DOT nabble DOT com>
In-Reply-To: <23830861.post@talk.nabble.com>
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

Marc Girod wrote:
> Trying to install the perl CPAN package Math::GMP (as a requisite for
> Net::SSH::Perl).
> I am on cygwin 1.7, and do have:
> 
> 2009> cygcheck -c libgmp3
> Cygwin Package Information
> Package              Version        Status
> libgmp3              4.3.1-1        OK
> 2009> cygcheck -l libgmp3
> /usr/bin/cyggmp-3.dll
> /usr/bin/cygmp-3.dll
> 
> However, the Makefile.PL has:
> 
> 	 'LIBS'	        => ['-lgmp'],
> 
> and will refuse to consider the dlls above.
> I tried '-lgmp-3' to no avail.
> 
> Is there syntactic sugar to fulfill the expectations?

  You need to install the related libgmp-devel package, which contains the
libgmp.dll.a import library in /usr/lib, and the build will then link against
that - avoiding any concern about a version number - instead of trying to link
directly against the DLL as a fallback, which is what is going on here.

    cheers,
      DaveK


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