Subject: Re: good news with AIX
To: Roland Illig <rillig@NetBSD.org>
From: Louis Guillaume <lguillaume@berklee.edu>
List: tech-pkg
Date: 04/20/2007 14:55:00
Roland Illig wrote:
> Louis Guillaume wrote:
>>     ERROR: Perl does not like building with GCC on AIX, please use a
>> different compiler
>>
>>
>> Any advice at this point would be most helpful. Please also let me know
>> if I can test anything.
> 
> Just ignore the error message for now by commenting out the "BROKEN="
> line in pkgsrc/lang/perl/module.mk. That message is more than two years
> old, and the CVS history does not provide any specific information. If
> it seems to work, then please tell us so we can remove that check.
> 
> Roland

Well it looks as if, although perl installed ok, there is some library
path badness. Maybe the ERROR is founded...

$ ldd $(which perl)
/usr/pkg/bin/perl needs:
Cannot find      /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/libpthreads_compat.a(shr.o)
         /usr/lib/libtli.a(shr.o)
         /unix
         /usr/lib/libcrypt.a(shr.o)
         /usr/lib/libpthreads.a(shr.o)
         /usr/lib/libc.a(pse.o)

$ ls -l /usr/lib/libnsl.a
-r--r--r--   1 root     system      1776734 Feb 15 19:38 /usr/lib/libnsl.a

$ LD_LIBRARY_PATH=/usr/pkg/lib ldd $(which perl)
/usr/pkg/bin/perl needs:
Cannot find 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/libpthreads_compat.a(shr.o)
         /usr/lib/libtli.a(shr.o)
         /unix
         /usr/lib/libcrypt.a(shr.o)
         /usr/lib/libpthreads.a(shr.o)
         /usr/lib/libc.a(pse.o)


$ find /usr/pkg/lib -name libperl.a
/usr/pkg/lib/perl5/5.8.0/powerpc-aix-thread-multi/CORE/libperl.a


That seems pretty buried, but other systems are able to find it. I don't
know why AIX can't.

So perl is pretty much totally broken at this point...

$ perl --version
exec(): 0509-036 Cannot load program perl because of the following errors:
        0509-150   Dependent module libperl.a(libperl.o) could not be
loaded.
        0509-022 Cannot load module libperl.a(libperl.o).
        0509-026 System error: A file or directory in the path name does
not exist.