X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=1.2 required=5.0	tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD,TW_YG
X-Spam-Check-By: sourceware.org
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-type: text/plain; CHARSET=US-ASCII
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.7.7855,1.0.431,0.0.0000 definitions=2012-09-04_06:2012-09-04,2012-09-04,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=25 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1203120001 definitions=main-1209040116
Subject: Re: cygport (0.11.0):  Installing dll's into perl site directories (not /usr/bin)
From: "Mark O'Keefe" <mark_okeefe@mac.com>
In-reply-to: <1346742737.10428.8.camel@YAAKOV04>
Date: Wed, 05 Sep 2012 00:07:13 +1000
Message-id: <9FE65E8A-CA52-4C76-AEBD-6859A318F1A0@mac.com>
References: <7D847B86-17E1-430E-8482-9CDB7DE61140@mac.com> <1346722038.6024.28.camel@YAAKOV04> <1E2B8693-6299-4F67-9328-FA1D5E0AF212@mac.com> <1346742737.10428.8.camel@YAAKOV04>
To: cygwin@cygwin.com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

Ah.  I had assumed that this stuff was basically correct in the makefiles.  Wrong.
Adding the -module to the appropriate libraries had the right outcome.

Thanks for your help!!

Now if only I could post to the cygwin-apps list.  Currently nothing gets through
on that one.  Assume moderated and requires email approved or something.


On 04/09/2012, at 5:12 PM, Yaakov (Cygwin/X) wrote:

> On Tue, 2012-09-04 at 16:55 +1000, Mark O'Keefe wrote:
>> I don't have link errors, I have perl runtime errors when trying to execute the
>> bootstrap of the C code for the modules.  This is caused by the DLL's not being
>> in the expected place.  They were in /usr/bin and this is not in the search path
>> for the DynaLoader so it doesn't load the library.
> 
> Which, since it sounds as this is an autotools-driven package, would be
> caused by a missing "-module" flag in the corresponding *_la_LDFLAGS.
> It won't cause a link error (only on Darwin is there a structural
> difference with or without), but it does affect where the DLL is
> installed on PE platforms, as you see here.
> 
> Furthermore, since -module is missing, that means the module library
> name must start with "lib" (since automake would complain otherwise).
> The resulting DLL will start with "cyg" instead, meaning that whatever
> is loading this module needs to be edited appropriately.
> 
> 
> Yaakov
> 
> 
> 
> --
> 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
> 


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

