Skip Menu |

This queue is for tickets about the XML-Parser CPAN distribution.

Report information
The Basics
Id: 72948
Status: resolved
Priority: 0/
Queue: XML-Parser

People
Owner: Nobody in particular
Requestors: wfdart [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



Subject: bug report
Date: Sun, 4 Dec 2011 17:44:47 -0800 (PST)
To: "bug-XML-Parser [...] rt.cpan.org" <bug-XML-Parser [...] rt.cpan.org>
From: Wfd Art <wfdart [...] yahoo.com>
To:  bug-XML-Parser@rt.cpan.org having some problems running XML-Parser.  The problems came up when running  musicxml2mid  (from http://www.pjb.com.au/midi/musicxml2mid.html) but it seems the issue is related to XML-Parser.   The output I got when running is at the end of this message. I'm running Mac OS 10.6.8(10K549)/Darwin 10.8.0 (release I386) and perl v5.10.0. The version of XML-Parser I have installed is 2.41 and was downloaded from http://search.cpan.org/search?query=XML::Parser I had tried to install XML-Parser by running cpan XML::Parser, but this did not seem to work, so I installed it by running  perl Makefile.PL  then  make  then  make test  then  make install.  "Make test" had indicated that all tests were passed. Before installing XML-Parser, I had installed expat. ************************************************************************************************ output from run: dyld: lazy symbol binding failed: Symbol not found: _XML_ParserCreate_MM   Referenced from: /Library/Perl/5.10.0/darwin-thread-multi-2level/auto/XML/Parser/Expat/Expat.bundle   Expected in: flat namespace dyld: Symbol not found: _XML_ParserCreate_MM   Referenced from: /Library/Perl/5.10.0/darwin-thread-multi-2level/auto/XML/Parser/Expat/Expat.bundle   Expected in: flat namespace Trace/BPT trap
It sounds like the issue is related to how linking happened on OSX. 1. which perl are you using? 2. Which libexpat are you expecting to use? 3. When you built XML::Parser, was LD_LIBRARY_PATH set? 4. output from perl -V would help I notice you mentioned 2 installs. Let's simplify the issue at the moment. Just pick one and send me that information?
Subject: Re: [rt.cpan.org #72948] bug report
Date: Tue, 13 Dec 2011 16:38:20 -0800 (PST)
To: "bug-XML-Parser [...] rt.cpan.org" <bug-XML-Parser [...] rt.cpan.org>
From: Wfd Art <wfdart [...] yahoo.com>
First a couple quick questions and then below are the answers to your questions:  If I do some editing of the makefile by hand, is that a possible solution?  What are typical values for LD_LIBRARY_PATH and for the location of libexpat?  Would it help if I sent you Makefile and Makefile.PL ?  thanks for your help Answers to your questions: 1) perl -v gives following: This is perl, v5.10.0 built for darwin-thread-multi-2level (with 2 registered patches, see perl -V for more detail) 2) I don't know how to answer this question, sorry.  If you can tell me where to look on my system to answer this, I will be glad to look.  I'm reasonably competent with UNIX but don't know much about perl. 3) Same answer as 2, however I think the answer might be "no" - I didn't edit the make file or anything like that to set LD_LIBRARY_PATH.  If there is a default value then that is probably what was used. 4)  output from perl -V is below Summary of my perl5 (revision 5 version 10 subversion 0) configuration:   Platform:     osname=darwin, osvers=10.0, archname=darwin-thread-multi-2level     uname='darwin neige.apple.com 10.0 darwin kernel version 10.0.0d8: tue may 5 19:29:59 pdt 2009; root:xnu-1437.2~2release_i386 i386 '     config_args='-ds -e -Dprefix=/usr -Dccflags=-g  -pipe  -Dldflags= -Dman3ext=3pm -Duseithreads -Duseshrplib -Dinc_version_list=none -Dcc=gcc-4.2'     hint=recommended, useposix=true, d_sigaction=define     useithreads=define, usemultiplicity=define     useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef     use64bitint=define, use64bitall=define, uselongdouble=undef     usemymalloc=n, bincompat5005=undef   Compiler:     cc='gcc-4.2', ccflags ='-arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include',     optimize='-Os',     cppflags='-g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include'     ccversion='', gccversion='4.2.1 (Apple Inc. build 5646)', gccosandvers=''     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16     ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8     alignbytes=8, prototype=define   Linker and Libraries:     ld='gcc-4.2 -mmacosx-version-min=10.6', ldflags ='-arch x86_64 -arch i386 -arch ppc -L/usr/local/lib'     libpth=/usr/local/lib /usr/lib     libs=-ldbm -ldl -lm -lutil -lc     perllibs=-ldl -lm -lutil -lc     libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, libperl=libperl.dylib     gnulibc_version=''   Dynamic Linking:     dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '     cccdlflags=' ', lddlflags='-arch x86_64 -arch i386 -arch ppc -bundle -undefined dynamic_lookup -L/usr/local/lib' Characteristics of this binary (from libperl):   Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV                         PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS                         USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API   Locally applied patches:     /Library/Perl/Updates/<version> comes before system perl directories     installprivlib and installarchlib points to the Updates directory   Built under darwin   Compiled at Jun 24 2009 00:35:28   %ENV:     PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin"   @INC:     /sw/lib/perl5     /sw/lib/perl5/darwin     /Library/Perl/Updates/5.10.0/darwin-thread-multi-2level     /Library/Perl/Updates/5.10.0     /System/Library/Perl/5.10.0/darwin-thread-multi-2level     /System/Library/Perl/5.10.0     /Library/Perl/5.10.0/darwin-thread-multi-2level     /Library/Perl/5.10.0     /Network/Library/Perl/5.10.0/darwin-thread-multi-2level     /Network/Library/Perl/5.10.0     /Network/Library/Perl     /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level     /System/Library/Perl/Extras/5.10.0 Show quoted text
----- Original Message ----- From: Todd Rinaldo via RT <bug-XML-Parser@rt.cpan.org> To: wfdart@yahoo.com Cc: Sent: Monday, December 12, 2011 11:56 AM Subject: [rt.cpan.org #72948] bug report <URL: https://rt.cpan.org/Ticket/Display.html?id=72948 > It sounds like the issue is related to how linking happened on OSX. 1. which perl are you using? 2. Which libexpat are you expecting to use? 3. When you built XML::Parser, was LD_LIBRARY_PATH set? 4. output from perl -V would help I notice you mentioned 2 installs. Let's simplify the issue at the moment. Just pick one and send me that information?
On Tue Dec 13 19:38:30 2011, wfdart@yahoo.com wrote: Show quoted text
> > First a couple quick questions and then below are the answers to your > questions:  If I do some editing of the makefile by hand, is that a > possible solution?  What are typical values for LD_LIBRARY_PATH and > for the location of libexpat?  Would it help if I sent you Makefile > and Makefile.PL ?  thanks for your help
No. I already have Makefile.PL (it comes with the distro). and the Makefile is generated so not of much use. It looks like you have the stock perl from Snow Leopard. what do you get when you run: ls -l /usr/lib/libex* for whatever reason libexpat is not being linked properly. What do you get from: otool -L /Library/Perl/5.10.0/darwin-thread-multi- 2level/auto/XML/Parser/Expat/Expat.bundle ls -l /Library/Perl/5.10.0/darwin-thread-multi-2level/auto/XML/Parser/Expat/Expat.bundle
Subject: Re: [rt.cpan.org #72948] bug report
Date: Fri, 16 Dec 2011 10:58:07 -0800 (PST)
To: "bug-XML-Parser [...] rt.cpan.org" <bug-XML-Parser [...] rt.cpan.org>
From: Wfd Art <wfdart [...] yahoo.com>
ls -l /usr/lib/libex* yields -rwxr-xr-x  1 root  wheel  487408 May 18  2009 /usr/lib/libexpat.1.5.2.dylib lrwxr-xr-x  1 root  wheel      20 Feb 14  2011 /usr/lib/libexpat.1.dylib -> libexpat.1.5.2.dylib lrwxr-xr-x  1 root  wheel      20 Feb 14  2011 /usr/lib/libexpat.dylib -> libexpat.1.5.2.dylib -rwxr-xr-x  1 root  wheel  229648 May  2  2011 /usr/lib/libexslt.0.dylib lrwxr-xr-x  1 root  wheel      16 Feb 14  2011 /usr/lib/libexslt.dylib -> libexslt.0.dylib otool -L /Library/Perl/5.10.0/darwin-thread-multi-2level/auto/XML/Parser/Expat/Expat.bundle yields /Library/Perl/5.10.0/darwin-thread-multi-2level/auto/XML/Parser/Expat/Expat.bundle:     /usr/local/lib/libexpat.1.dylib (compatibility version 7.0.0, current version 7.2.0)     /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11) ls -l /Library/Perl/5.10.0/darwin-thread-multi-2level/auto/XML/Parser/Expat/Expat.bundle yields -r-xr-xr-x  1 root  admin  314572 Dec  2 11:19 /Library/Perl/5.10.0/darwin-thread-multi-2level/auto/XML/Parser/Expat/Expat.bundle thanks for the help Show quoted text
----- Original Message ----- From: Todd Rinaldo via RT <bug-XML-Parser@rt.cpan.org> To: wfdart@yahoo.com Cc: Sent: Thursday, December 15, 2011 1:57 AM Subject: [rt.cpan.org #72948] bug report <URL: https://rt.cpan.org/Ticket/Display.html?id=72948 > On Tue Dec 13 19:38:30 2011, wfdart@yahoo.com wrote:
> > First a couple quick questions and then below are the answers to your >    questions:  If I do some editing of the makefile by hand, is that a >    possible solution?  What are typical values for LD_LIBRARY_PATH and >    for the location of libexpat?  Would it help if I sent you Makefile >    and Makefile.PL ?  thanks for your help
No. I already have Makefile.PL (it comes with the distro). and the Makefile is generated so not of much use. It looks like you have the stock perl from Snow Leopard. what do you get when you run:   ls -l /usr/lib/libex* for whatever reason libexpat is not being linked properly. What do you get from: otool -L /Library/Perl/5.10.0/darwin-thread-multi- 2level/auto/XML/Parser/Expat/Expat.bundle ls -l /Library/Perl/5.10.0/darwin-thread-multi-2level/auto/XML/Parser/Expat/Expat.bundle
On Fri Dec 16 13:58:16 2011, wfdart@yahoo.com wrote: Show quoted text
> otool -L /Library/Perl/5.10.0/darwin-thread-multi- > 2level/auto/XML/Parser/Expat/Expat.bundle > > yields > > /Library/Perl/5.10.0/darwin-thread-multi- > 2level/auto/XML/Parser/Expat/Expat.bundle: >     /usr/local/lib/libexpat.1.dylib (compatibility version 7.0.0, > current version 7.2.0) >     /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current > version 125.2.11)
From the looks of this, you have libexpat installed in /usr/local/lib. This probably means you're compiling expat with the headers from apple and the library you installed. You need to pick one or the other. I'm not aware of any major problems with apple's version, so I would reccommend removal of the one in /usr/local if you can help it. Todd
Ticket migrated to github as https://github.com/toddr/XML-Parser/issues/77