Subject: AIX perl linked to libperl.a in ${WRKOBJDIR}
To: None <tech-pkg@netbsd.org>
From: Louis Guillaume <lguillaume@berklee.edu>
List: tech-pkg
Date: 07/16/2007 17:33:22
Using pkgsrc-2007Q2 on AIX 5300-05-05 and gcc4 (which comes with AIX).

This is really strange. I can seemingly build a working Perl...

 ...

=> Running POST-INSTALL script actions
Full pathname symlink `/usr/pkg/lib/perl5/bin/perllink' is target of
`/usr/pkg/bin/perllink' - adjusting to `../lib/perl5/bin/perllink'
Full pathname symlink `/usr/pkg/lib/perl5/man/man1/perllink.1' is target
of `/usr/pkg/man/man1/perllink.1' - adjusting to
`../../lib/perl5/man/man1/perllink.1'
=> Registering installation for perl-5.8.8nb4
===> Building binary package for perl-5.8.8nb4
Creating package /usr/pkg/obj/packages/All/perl-5.8.8nb4.tgz
Using SrcDir value of /usr/pkg
Registering conflicts: perl-base-[0-9]* perl-thread-[0-9]* p5-CGI-2.66
p5-CGI-2.75 p5-CGI-2.75.[0-2].


# /usr/pkg/bin/perl -v

This is perl, v5.8.8 built for powerpc-aix-thread-multi

Copyright 1987-2006, Larry Wall

Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.


But!!!!!! check this out...

# ldd /usr/pkg/bin/perl
/usr/pkg/bin/perl needs:
         /usr/pkg/obj/lang/perl5/work/perl-5.8.8/libperl.a(libperl.o)
         /usr/lib/libnsl.a(shr.o)
         /usr/lib/libdl.a(shr.o)
         /usr/lib/libpthreads.a(shr_comm.o)
         /usr/lib/libpthreads.a(shr_xpg5.o)
         /usr/lib/libc.a(shr.o)
         /usr/lib/libbsd.a(shr.o)
         /usr/lib/librtl.a(shr.o)
         /usr/lib/libbind.a(shr.o)
         /usr/lib/libcrypt.a(shr.o)
         /usr/lib/libpthreads_compat.a(shr.o)
         /usr/lib/libtli.a(shr.o)
         /unix
         /usr/lib/libpthreads.a(shr.o)
         /usr/lib/libc.a(pse.o)



As soon as I "bmake clean" in lang/perl5, perl is now broken. Something
must be funky in the installation of the package.

Any help would be great. Thanks,

Louis