Subject: | Devel::CheckLib introduction breaks build on AIX |
Since File::LibMagic uses Devel::CheckLib (which seems to be broken), it
won't build on AIX:
e47e:/opt/room/pkgsrc/devel/p5-File-LibMagic > bmake configure
=> Bootstrap dependency digest>=20010302: found digest-20080510
=> Bootstrap dependency tnftp-[0-9]*: found tnftp-20070806
===> Checking for vulnerabilities in p5-File-LibMagic-0.96
===> Configuring for p5-File-LibMagic-0.96
=> Checking for portability problems in extracted files
Can't link/include 'magic.h', 'magic'
e47e:/opt/room/pkgsrc/devel/p5-File-LibMagic > ls -la
work/.buildlink/include/
total 0
drwxr-xr-x 2 root system 256 May 30 21:37 .
drwxr-xr-x 6 root system 256 May 30 21:37 ..
lrwxrwxrwx 1 root system 27 May 30 21:37 magic.h ->
/opt/pkgsrc/include/magic.h
e47e:/opt/room/pkgsrc/devel/p5-File-LibMagic > ls -la work/.buildlink/lib/
total 8
drwxr-xr-x 3 root system 256 May 30 21:37 .
drwxr-xr-x 6 root system 256 May 30 21:37 ..
lrwxrwxrwx 1 root system 26 May 30 21:37 libmagic.a ->
/opt/pkgsrc/lib/libmagic.a
-rw-r--r-- 1 root system 897 May 30 21:37 libmagic.la
lrwxrwxrwx 1 root system 27 May 30 21:37 libmagic.so ->
/opt/pkgsrc/lib/libmagic.so
lrwxrwxrwx 1 root system 29 May 30 21:37 libmagic.so.1 ->
/opt/pkgsrc/lib/libmagic.so.1
lrwxrwxrwx 1 root system 33 May 30 21:37
libmagic.so.1.0.0 -> /opt/pkgsrc/lib/libmagic.so.1.0.0
drwxr-xr-x 4 root system 256 May 30 21:37 perl5
e47e:/opt/room/pkgsrc/devel/p5-File-LibMagic >
After deleting Devel::CheckLib:
e47e:/opt/room/pkgsrc/devel/p5-File-LibMagic > bmake
=> Bootstrap dependency digest>=20010302: found digest-20080510
=> Bootstrap dependency tnftp-[0-9]*: found tnftp-20070806
===> Checking for vulnerabilities in p5-File-LibMagic-0.96
===> Creating toolchain wrappers for p5-File-LibMagic-0.96
===> Configuring for p5-File-LibMagic-0.96
=> Checking for portability problems in extracted files
Checking if your kit is complete...
Looks good
Unrecognized argument in LIBS ignored: '-Wl,-rpath,/opt/pkgsrc/lib'
Writing Makefile for File::LibMagic
===> Building for p5-File-LibMagic-0.96
cp LibMagic.pm blib/lib/File/LibMagic.pm
AutoSplitting blib/lib/File/LibMagic.pm (blib/lib/auto/File/LibMagic)
/opt/pkgsrc/bin/perl -e 'use ExtUtils::Mksymlists; Mksymlists("NAME" =>
"File::LibMagic", "DL_FUNCS" => { }, "FUNCLIST" => [], "DL_VARS" => []);'
/opt/pkgsrc/bin/perl
/opt/pkgsrc/lib/perl5/vendor_perl/5.10.0/ExtUtils/xsubpp -typemap
/opt/pkgsrc/lib/perl5/5.10.0/ExtUtils/typemap LibMagic.xs > LibMagic.xsc
&& mv LibMagic.xsc LibMagic.c
cc_r -q64 -c -I. -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT
-I/opt/pkgsrc/include -q64 -DUSE_64_BIT_ALL -q64 -q64 -qarch=ppc64 -O2
-qstrict -qcpluscmt -qmaxmem=-1 -qkeyword=inline -I/opt/pkgsrc/include -ma
-I/usr/include -I/opt/pkgsrc/include -I/usr/include -DVERSION=\"0.96\"
-DXS_VERSION=\"0.96\"
"-I/opt/pkgsrc/lib/perl5/5.10.0/powerpc-aix-thread-multi-64all/CORE"
LibMagic.c
Running Mkbootstrap for File::LibMagic ()
chmod 644 LibMagic.bs
rm -f blib/arch/auto/File/LibMagic/LibMagic.so
ld -Wl,-R/opt/pkgsrc/lib
-Wl,-R/opt/pkgsrc/lib/perl5/5.10.0/powerpc-aix-thread-multi-64all/CORE
-b64 -bhalt:4 -bexpall -G -bnoentry -lpthreads -lc -L/opt/pkgsrc/lib
LibMagic.o -L/opt/pkgsrc/lib -L/usr/lib -Wl,-R/opt/pkgsrc/lib
-Wl,-rpath,/opt/pkgsrc/lib -Wl,-R/usr/lib -o
blib/arch/auto/File/LibMagic/LibMagic.so -L/opt/pkgsrc/lib
-L/usr/lib -Wl,-R/opt/pkgsrc/lib -Wl,-R/usr/lib -lmagic -lz
chmod 755 blib/arch/auto/File/LibMagic/LibMagic.so
cp LibMagic.bs blib/arch/auto/File/LibMagic/LibMagic.bs
chmod 644 blib/arch/auto/File/LibMagic/LibMagic.bs
Manifying blib/man3/File::LibMagic.3
=> Unwrapping files-to-be-installed.
e47e:/opt/room/pkgsrc/devel/p5-File-LibMagic > bmake test
=> Bootstrap dependency digest>=20010302: found digest-20080510
=> Bootstrap dependency tnftp-[0-9]*: found tnftp-20070806
===> Checking for vulnerabilities in p5-File-LibMagic-0.96
===> Testing for p5-File-LibMagic-0.96
PERL_DL_NONLAZY=1 /opt/pkgsrc/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/1.t .................. ok
t/2-easy.t ............. ok
t/3-complete-errors.t .. ok
t/3-complete.t ......... ok
t/4-all.t .............. ok
t/6-oo.t ............... ok
All tests successful.
Files=6, Tests=55, 0 wallclock secs ( 0.07 usr 0.03 sys + 0.26 cusr
0.06 csys = 0.42 CPU)
Result: PASS
e47e:/opt/room/pkgsrc/devel/p5-File-LibMagic >