This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Packaging bug] perl-5.10.1-5: Superfluous symlink for cygperl5_10.dll

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:

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

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]