X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received-SPF: pass (google.com: domain of reini DOT urban AT gmail DOT com designates 10.152.122.74 as permitted sender) client-ip=10.152.122.74; Authentication-Results: mr.google.com; spf=pass (google.com: domain of reini DOT urban AT gmail DOT com designates 10.152.122.74 as permitted sender) smtp.mail=reini DOT urban AT gmail DOT com; dkim=pass header.i=reini DOT urban AT gmail DOT com MIME-Version: 1.0 In-Reply-To: <7zfwe9xwls.fsf@vzell-de.de.oracle.com> References: <7zfwe9xwls DOT fsf AT vzell-de DOT de DOT oracle DOT com> Date: Sat, 18 Feb 2012 13:03:24 -0600 Message-ID: Subject: Re: [Packaging bug] perl-5.10.1-5: Superfluous symlink for cygperl5_10.dll From: Reini Urban To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q1IJ3lfP009203 On Fri, Feb 17, 2012 at 10:17 AM, Dr. Volker Zell wrote: > In the latest perl-5.10.1-5 there is a symlink >  /usr/lib/perl5/5.10/i686-cygwin/CORE/cygperl5_10.dll > for >  /usr/bin/cygperl5_10.dll > > which breaks 'make check' when trying to run the testsuite for > openldap when it's perl enabled. This trick is needed to enable -Dlibperl=cygperl5_10.dll for building XS extensions without going through the importlib. This way the dll can be named as you wish, to enable multiple versions and features (threaded/non-threaded, debug) of perl together. > The libtool generated wrapper for slapd includes the following > PATH statement: PATH=:/usr/local/lib:/usr/local/bin:/usr/lib/perl5/5.10/i686-cygwin/CORE:/misc/src/release/openldap-2.4.29-1/build/libraries/libldap_r/.libs:/misc/src/release/openldap-2.4.29-1/build/libraries/liblber/.libs:$PATH > So when the real slapd starts up it exits with exit code 127 because > it finds the symlink for cygperl5_10.dll before the real one. I see. /usr/lib/perl5/5.10/i686-cygwin/CORE is wrong in PATH. It only belongs to LIBPATH. There are no binaries there to pickup. > Shouldn't that symlink be there in the first place ? > For now I removed it and the openldap test suite > works again. No, please remove /usr/lib/perl5/5.10/i686-cygwin/CORE from your path in your Makefile. The symlink is needed to build perl extensions. windows needs the dll to be in the path which is /usr/bin. ld needs to link against the dll and expects it in /usr/lib/perl5/5.10/i686-cygwin/CORE, hence the symlink, because ld understands the symlink, windows not. -- Reini Urban http://cpanel.net/   http://www.perl-compiler.org/ -- 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