Subject: Perl link problems
To: None <tech-pkg@NetBSD.org>
From: Matthias Scheler <tron@zhadum.org.uk>
List: tech-pkg
Date: 03/08/2007 13:51:50
	Hello,

I'm trying to integrate the "xchat2-perl" package from "pkgsrc-wip" into
"pkgsrc" and have problems building it under Mac OS OX:

/bin/sh ../../libtool --tag=CC --mode=link gcc  -pipe -O2 -I/usr/pkg/include -I/usr/include -Wall -g -no-cpp-precomp -I/usr/pkg/include -I/usr/include  -L/usr/pkg/lib -L/usr/lib -o perl.la -rpath /usr/pkg/lib/xchat/plugins -avoid-version -module  perl.lo -L/usr/pkg/lib /usr/pkg/lib/perl5/5.8.0/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a -L/usr/pkg/lib/perl5/5.8.0/darwin-thread-multi-2level/CORE -lperl -lm -lpthread -lssl -lcrypto -L/usr/pkg/lib -lglib-2.0 -lintl -liconv   -lintl /usr/lib/libiconv.dylib /usr/lib/libc.dylib

*** Warning: Linking the shared library perl.la against the
*** static library /usr/pkg/lib/perl5/5.8.0/darwin-thread-multi-2level/auto/DynaLoader/libDynaLoader_pic.a is not portable!
[...]
ar cru .libs/perl.a /usr/pkg/lib/perl5/5.8.0/darwin-thread-multi-2level/auto/DynaLoader/libDynaLoader_pic.a  perl.o /usr/pkg/lib/perl5/5.8.0/darwin-thread-multi-2level/auto/DynaLoader/libDynaLoader_pic.a
ar: /usr/pkg/lib/perl5/5.8.0/darwin-thread-multi-2level/auto/DynaLoader/libDynaLoader_pic.a: No such file or directory
ar: /usr/pkg/lib/perl5/5.8.0/darwin-thread-multi-2level/auto/DynaLoader/libDynaLoader_pic.a: No such file or directory

[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/usr/pkg/bin/libtool --tag=CC --mode=link gcc -pipe -O2 -I/Users/tron/obj/chat/xchat-perl/work.excalibur/.buildlink/include -Wall -g -no-cpp-precomp -L/Users/tron/obj/chat/xchat-perl/work.excalibur/.buildlink/lib -o perl.la -rpath /usr/pkg/lib/xchat/plugins -avoid-version -module perl.lo /usr/pkg/lib/perl5/5.8.0/darwin-thread-multi-2level/auto/DynaLoader/libDynaLoader_pic.a -L/Users/tron/obj/chat/xchat-perl/work.excalibur/.buildlink/lib/perl5/5.8.0/darwin-thread-multi-2level/CORE -lperl -lm -lpthread -lssl -lcrypto -lglib-2.0 -lintl -liconv -lintl -liconv -lc 
gnumake[1]: *** [perl.la] Error 1

It is trying to link with a file called "DynaLoader.a" which is indeed in
"/usr/pkg/lib/perl5/5.8.0/darwin-thread-multi-2level/auto/DynaLoader".
But something (buildlink3?) changes the filename to "libDynaLoader.a".
How can I prevent that?

	Kind regards

-- 
Matthias Scheler                                  http://zhadum.org.uk/