From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6526 invoked by alias); 4 Sep 2012 06:55:35 -0000 Received: (qmail 6516 invoked by uid 22791); 4 Sep 2012 06:55:34 -0000 X-SWARE-Spam-Status: No, hits=1.8 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 Received: from st11p02mm-asmtp001.mac.com (HELO st11p02mm-asmtp001.mac.com) (17.172.220.236) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 04 Sep 2012 06:55:21 +0000 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from [192.168.1.2] (160.7.222.180.cable.dyn.bal.ncable.com.au [180.222.7.160]) by st11p02mm-asmtp001.mac.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Jan 3 2012)) with ESMTPSA id <0M9T00IPHCK5WL10@st11p02mm-asmtp001.mac.com> for cygwin@cygwin.com; Tue, 04 Sep 2012 06:55:21 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.7.7855,1.0.431,0.0.0000 definitions=2012-09-04_02:2012-09-04,2012-09-03,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-1209030443 Subject: Re: cygport (0.11.0): Installing dll's into perl site directories (not /usr/bin) From: Mark O'Keefe In-reply-to: <1346722038.6024.28.camel@YAAKOV04> Date: Tue, 04 Sep 2012 06:55:00 -0000 Message-id: <1E2B8693-6299-4F67-9328-FA1D5E0AF212@mac.com> References: <7D847B86-17E1-430E-8482-9CDB7DE61140@mac.com> <1346722038.6024.28.camel@YAAKOV04> To: cygwin@cygwin.com X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-09/txt/msg00031.txt.bz2 Hi Yaakov, Thanks for the response. Sorry I was vague with the question. Your comments pointed me in the right direction however. The default configuration of the package (which is amanda by the way) is to install the perl modules into site_perl. If you override this to the PERL_VENDORARCH directory things start behaving better. Still not sure if this is the completely correct solution, however it does seem to have created a clean package. 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. Hopefully have this fixed now. Cheers, Mark. On 04/09/2012, at 11:27 AM, Yaakov (Cygwin/X) wrote: > http://cygwin.com/acronyms/#PCYMTWLL ! > > On Tue, 2012-09-04 at 10:21 +1000, Mark O'Keefe wrote: >> I'm trying to use cygport to package up DLL's that are used as part >> of a set of perl packages. > > Being vague doesn't help us help you. Telling us what package you're > trying to build, and attaching your (draft) .cygport files, does. > >> The place that these are meant to be installed is under the perl site >> configuration (/usr/lib/perl5/site_perl//auto///*.dll. > > Cygwin packages should install Perl modules into vendor_perl > (PERL_VENDORLIB and PERL_VENDORARCH in cygport terms). > >> Currently what happens is libtool munges the path to ../bin. If I >> don't use cygport to do the installation, this means that the DLL's >> are installed into: /usr/lib/perl5/site_perl//auto//bin >> This doesn't work as this location is not in the search path for >> perl's DynaLoader. >> >> When you add cygport to the equation the files end up in: /usr/bin >> Again, this doesn't work as this isn't in the load path. > > This means "-module" is missing from the *_la_LDFLAGS for these > module(s). You'll need to patch the affected Makefile.am file(s) and > restart the build to fix this. > > > 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