SPUG: XML::LibXSLT install on OS X produces "Non-aligned pointer being freed"

C.J. Adams-Collier cjac at colliertech.org
Wed Nov 25 17:40:11 PST 2009


does qemu run on OS X?  jaunty will probably install it pretty easily

On Wed, 2009-11-25 at 16:06 -0800, Michael R. Wolf wrote:
> I'm trying to install XML-LibXSLT on OS X.  My first attempts to  
> install died with a bad version from 'xslt-config --version'.  After  
> doing a 'port install libxslt', that version went from 1.1.12 to  
> 1.1.26, thus satisfying the need for 1.1.18.  At that point the 'make  
> test' phase ejects the errors I've listed in this message's subject.   
> The previous 'make' phase succeeded, though it gave warnings about  
> "file is not of required architecture".  Running "file" on those files  
> yields "Mach-O dynamically linked shared library i386", appropriate  
> for my machine, and identical to all other files in that directory.
> 
> Anyone with OS X have good results getting xsh (and all its  
> dependencies) to install?
> 
> Any suggestions for other fora (other than "google") to search or dig  
> through?
> 
> I've attached the output from "cpan XML::LibXSLT".
> 
> Thanks,
> Michael
> 
> 
> 
> ~ [0] $ cpan XML::LibXSLT
> CPAN: Term::ANSIColor loaded ok (v1.10)
> CPAN: Storable loaded ok (v2.15)
> Going to read '/Users/michael/.cpan/Metadata'
>    Database was generated on Wed, 25 Nov 2009 21:28:45 GMT
> Running install for module 'XML::LibXSLT'
> CPAN: YAML loaded ok (v0.70)
> Running make for P/PA/PAJAS/XML-LibXSLT-1.70.tar.gz
> CPAN: Digest::SHA loaded ok (v5.47)
> CPAN: Module::Signature loaded ok (v0.61)
> WARNING: This key is not certified with a trusted signature!
> Primary key fingerprint: 2E66 557A B97C 19C7 91AF  8E20 328D A867 450F  
> 89EC
> Signature for /Users/michael/.cpan/sources/authors/id/P/PA/PAJAS/ 
> CHECKSUMS ok
> CPAN: Compress::Zlib loaded ok (v2.023)
> Checksum for /Users/michael/.cpan/sources/authors/id/P/PA/PAJAS/XML- 
> LibXSLT-1.70.tar.gz ok
> CPAN: Archive::Tar loaded ok (v1.54)
> XML-LibXSLT-1.70/
> XML-LibXSLT-1.70/perl-libxml-mm.h
> XML-LibXSLT-1.70/t/
> XML-LibXSLT-1.70/t/08literal.t
> XML-LibXSLT-1.70/t/09exslt.t
> XML-LibXSLT-1.70/t/02dromeds.t
> XML-LibXSLT-1.70/t/01basic.t
> XML-LibXSLT-1.70/t/14security.t
> XML-LibXSLT-1.70/t/12import.t
> XML-LibXSLT-1.70/t/05quick.t
> XML-LibXSLT-1.70/t/03input.t
> XML-LibXSLT-1.70/t/13error.t
> XML-LibXSLT-1.70/t/11utf8.t
> XML-LibXSLT-1.70/t/04params.t
> XML-LibXSLT-1.70/t/06entities.t
> XML-LibXSLT-1.70/t/06output.t
> XML-LibXSLT-1.70/t/07blankdoc.t
> XML-LibXSLT-1.70/t/10functions.t
> XML-LibXSLT-1.70/t/15misc.t
> XML-LibXSLT-1.70/testcases/
> XML-LibXSLT-1.70/testcases/default.conf
> XML-LibXSLT-1.70/Changes
> XML-LibXSLT-1.70/example/
> XML-LibXSLT-1.70/example/1.xsl
> XML-LibXSLT-1.70/example/2.xsl
> XML-LibXSLT-1.70/example/fatal.xsl
> XML-LibXSLT-1.70/example/nonfatal.xsl
> XML-LibXSLT-1.70/example/bad1.xsl
> XML-LibXSLT-1.70/example/1.xml
> XML-LibXSLT-1.70/example/bad3.xsl
> XML-LibXSLT-1.70/example/bad2.xsl
> XML-LibXSLT-1.70/example/2.xml
> XML-LibXSLT-1.70/MANIFEST
> XML-LibXSLT-1.70/typemap
> XML-LibXSLT-1.70/Driver/
> XML-LibXSLT-1.70/Driver/LibXSLT.pm
> XML-LibXSLT-1.70/Driver/Sablotron.pm
> XML-LibXSLT-1.70/Driver/BaseClass.pm
> XML-LibXSLT-1.70/perl-libxml-mm.c
> XML-LibXSLT-1.70/LibXSLT.pm
> XML-LibXSLT-1.70/benchmark.pl
> XML-LibXSLT-1.70/ppport.h
> XML-LibXSLT-1.70/LibXSLT.xs
> XML-LibXSLT-1.70/Makefile.PL
> XML-LibXSLT-1.70/README
> XML-LibXSLT-1.70/META.yml
> CPAN: File::Temp loaded ok (v0.22)
> Package came without SIGNATURE
> 
> 
>    CPAN.pm: Going to build P/PA/PAJAS/XML-LibXSLT-1.70.tar.gz
> 
> running xslt-config... ok
> looking for -lxslt... yes
> looking for -lexslt... yes
> running pkg-config libexslt... ok
> Checking if your kit is complete...
> Looks good
> Writing Makefile for XML::LibXSLT
> cp benchmark.pl blib/lib/XML/benchmark.pl
> cp LibXSLT.pm blib/lib/XML/LibXSLT.pm
> /usr/bin/perl /System/Library/Perl/5.8.8/ExtUtils/xsubpp  -typemap / 
> System/Library/Perl/5.8.8/ExtUtils/typemap -typemap typemap   
> LibXSLT.xs > LibXSLT.xsc && mv LibXSLT.xsc LibXSLT.c
> cc -c  -I/opt/local/include -I/opt/local/include/libxml2 -I/opt/local/ 
> include -I/opt/local/include/libxml2   -arch ppc -arch i386 -g -pipe - 
> fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing - 
> Wdeclaration-after-statement -I/usr/local/include -O3   -DVERSION= 
> \"1.70\" -DXS_VERSION=\"1.70\"  "-I/System/Library/Perl/5.8.8/darwin- 
> thread-multi-2level/CORE"  -DHAVE_BLANK -DHAVE_BLANK -DHAVE_EXSLT  
> LibXSLT.c
> cc -c  -I/opt/local/include -I/opt/local/include/libxml2 -I/opt/local/ 
> include -I/opt/local/include/libxml2   -arch ppc -arch i386 -g -pipe - 
> fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing - 
> Wdeclaration-after-statement -I/usr/local/include -O3   -DVERSION= 
> \"1.70\" -DXS_VERSION=\"1.70\"  "-I/System/Library/Perl/5.8.8/darwin- 
> thread-multi-2level/CORE"  -DHAVE_BLANK -DHAVE_BLANK -DHAVE_EXSLT perl- 
> libxml-mm.c
> Running Mkbootstrap for XML::LibXSLT ()
> chmod 644 LibXSLT.bs
> rm -f blib/arch/auto/XML/LibXSLT/LibXSLT.bundle
> LD_RUN_PATH="/opt/local/lib:/usr/lib" cc -mmacosx-version-min=10.5.7  - 
> arch ppc -arch i386 -bundle -undefined dynamic_lookup -L/usr/local/lib  
> LibXSLT.o perl-libxml-mm.o  -o blib/arch/auto/XML/LibXSLT/ 
> LibXSLT.bundle 	\
> 	   -L/opt/local/lib -lxslt -lxml2 -lz -lpthread -liconv -lm -L/opt/ 
> local/lib -lexslt -lpthread -liconv -ldbm -ldl -lm -lutil -lc  	\
> 	
> ld warning: in /opt/local/lib/libxslt.dylib, file is not of required  
> architecture
> ld warning: in /opt/local/lib/libxml2.dylib, file is not of required  
> architecture
> ld warning: in /opt/local/lib/libz.dylib, file is not of required  
> architecture
> ld warning: in /opt/local/lib/libexslt.dylib, file is not of required  
> architecture
> chmod 755 blib/arch/auto/XML/LibXSLT/LibXSLT.bundle
> cp LibXSLT.bs blib/arch/auto/XML/LibXSLT/LibXSLT.bs
> chmod 644 blib/arch/auto/XML/LibXSLT/LibXSLT.bs
> Manifying blib/man3/XML::LibXSLT.3pm
>    PAJAS/XML-LibXSLT-1.70.tar.gz
>    /usr/bin/make -- OK
> Running make test
> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"  
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> t/01basic.t ...... 1/4
> 
> Compiled against:    libxslt 10126, libxml2 20616
> Running:             libxslt 10126, libxml2 20616
> Compiled with EXSLT: yes
> 
> t/01basic.t ...... ok
> t/02dromeds.t .... 1/6 perl(96104) malloc: *** error for object  
> 0x83684c: Non-aligned pointer being freed
> *** set a breakpoint in malloc_error_break to debug
> t/02dromeds.t .... All 6 subtests passed
> t/03input.t ...... ok
> t/04params.t ..... 1/8 perl(96107) malloc: *** error for object  
> 0x818a14: Non-aligned pointer being freed
> *** set a breakpoint in malloc_error_break to debug
> t/04params.t ..... Failed 2/8 subtests
> t/05quick.t ...... 1/11 perl(96108) malloc: *** error for object  
> 0x837e88: Non-aligned pointer being freed
> *** set a breakpoint in malloc_error_break to debug
> t/05quick.t ...... Failed 7/11 subtests
> t/06entities.t ... ok
> t/06output.t ..... ok
> t/07blankdoc.t ... 1/5 perl(96111) malloc: *** error for object  
> 0x1150: Non-aligned pointer being freed (2)
> *** set a breakpoint in malloc_error_break to debug
> perl(96111) malloc: *** error for object 0x6174: Non-aligned pointer  
> being freed
> *** set a breakpoint in malloc_error_break to debug
> t/07blankdoc.t ... All 5 subtests passed
> t/08literal.t .... ok
> t/09exslt.t ...... ok
> t/10functions.t .. ok
> t/11utf8.t ....... ok
> t/12import.t ..... ok
> t/13error.t ...... ok
> t/14security.t ... ok
> t/15misc.t ....... ok
> 
> Test Summary Report
> -------------------
> t/02dromeds.t  (Wstat: 11 Tests: 6 Failed: 0)
>    Non-zero wait status: 11
> t/04params.t   (Wstat: 11 Tests: 6 Failed: 0)
>    Non-zero wait status: 11
>    Parse errors: Bad plan.  You planned 8 tests but ran 6.
> t/05quick.t    (Wstat: 11 Tests: 4 Failed: 0)
>    Non-zero wait status: 11
>    Parse errors: Bad plan.  You planned 11 tests but ran 4.
> t/07blankdoc.t (Wstat: 11 Tests: 5 Failed: 0)
>    Non-zero wait status: 11
> Files=16, Tests=222,  3 wallclock secs ( 0.11 usr  0.06 sys +  0.83  
> cusr  0.22 csys =  1.22 CPU)
> Result: FAIL
> Failed 4/16 test programs. 0/222 subtests failed.
> make: *** [test_dynamic] Error 255
>    PAJAS/XML-LibXSLT-1.70.tar.gz
>    /usr/bin/make test -- NOT OK
> //hint// to see the cpan-testers results for installing this module,  
> try:
>    reports PAJAS/XML-LibXSLT-1.70.tar.gz
> Running make install
>    make test had returned bad status, won't install without force
> 
> ~ [0] $
> 
> 
> -- 
> Michael R. Wolf
>      All mammals learn by playing!
>          MichaelRWolf at att.net
> 
> 
> 
> 
> _____________________________________________________________
> Seattle Perl Users Group Mailing List
>      POST TO: spug-list at pm.org
> SUBSCRIPTION: http://mail.pm.org/mailman/listinfo/spug-list
>     MEETINGS: 3rd Tuesdays
>     WEB PAGE: http://seattleperl.org/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://mail.pm.org/pipermail/spug-list/attachments/20091125/dc7ecc2c/attachment.bin>


More information about the spug-list mailing list