Skip Menu |

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

Report information
The Basics
Id: 13999
Status: resolved
Priority: 0/
Queue: XML-LibXML

People
Owner: pajas [...] matfyz.cz
Requestors: lee.goddard [...] easa.eu.int
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.58_1
Fixed in: (no value)



Subject: Won't "make" on RedHat - gcc parse error?
CPAN.pm: Going to build P/PH/PHISH/XML-LibXML-1.58.tar.gz enable native perl UTF8 running xml2-config...ok looking for -lxml2... yes Checking if your kit is complete... Looks good Writing Makefile for XML::LibXML cp lib/XML/LibXML/Number.pm blib/lib/XML/LibXML/Number.pm cp lib/XML/LibXML/SAX.pm blib/lib/XML/LibXML/SAX.pm cp lib/XML/LibXML/DOM.pod blib/lib/XML/LibXML/DOM.pod cp lib/XML/LibXML/SAX/Builder.pm blib/lib/XML/LibXML/SAX/Builder.pm cp lib/XML/LibXML/Literal.pm blib/lib/XML/LibXML/Literal.pm cp lib/XML/LibXML/Node.pod blib/lib/XML/LibXML/Node.pod cp lib/XML/LibXML/Parser.pod blib/lib/XML/LibXML/Parser.pod cp LibXML.pm blib/lib/XML/LibXML.pm cp lib/XML/LibXML/DocumentFragment.pod blib/lib/XML/LibXML/DocumentFragment.pod cp lib/XML/LibXML/SAX/Parser.pm blib/lib/XML/LibXML/SAX/Parser.pm cp lib/XML/LibXML/Element.pod blib/lib/XML/LibXML/Element.pod cp lib/XML/LibXML/Namespace.pod blib/lib/XML/LibXML/Namespace.pod cp lib/XML/LibXML/Attr.pod blib/lib/XML/LibXML/Attr.pod cp lib/XML/LibXML/SAX/Builder.pod blib/lib/XML/LibXML/SAX/Builder.pod cp lib/XML/LibXML/Document.pod blib/lib/XML/LibXML/Document.pod cp lib/XML/LibXML/SAX/Generator.pm blib/lib/XML/LibXML/SAX/Generator.pm cp lib/XML/LibXML/CDATASection.pod blib/lib/XML/LibXML/CDATASection.pod cp LibXML.pod blib/lib/XML/LibXML.pod cp lib/XML/LibXML/Boolean.pm blib/lib/XML/LibXML/Boolean.pm cp lib/XML/LibXML/SAX.pod blib/lib/XML/LibXML/SAX.pod cp lib/XML/LibXML/Text.pod blib/lib/XML/LibXML/Text.pod cp lib/XML/LibXML/PI.pod blib/lib/XML/LibXML/PI.pod cp lib/XML/LibXML/NodeList.pm blib/lib/XML/LibXML/NodeList.pm cp lib/XML/LibXML/Comment.pod blib/lib/XML/LibXML/Comment.pod cp lib/XML/LibXML/Dtd.pod blib/lib/XML/LibXML/Dtd.pod /usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap LibXML.xs > LibXML.xsc && mv LibXML.xsc LibXML.c gcc -c -I/usr/include/libxml2 -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -march=i386 -mcpu=i686 -DVERSION=\"1.58\" -DXS_VERSION=\"1.58\" -fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" -DHAVE_UTF8 -DHAVE_BLANK LibXML.c gcc -c -I/usr/include/libxml2 -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -march=i386 -mcpu=i686 -DVERSION=\"1.58\" -DXS_VERSION=\"1.58\" -fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" -DHAVE_UTF8 -DHAVE_BLANK dom.c gcc -c -I/usr/include/libxml2 -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -march=i386 -mcpu=i686 -DVERSION=\"1.58\" -DXS_VERSION=\"1.58\" -fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" -DHAVE_UTF8 -DHAVE_BLANK perl-libxml-mm.c perl-libxml-mm.c: In function `nodeC2Sv': perl-libxml-mm.c:968: parse error before `*' perl-libxml-mm.c:972: `decoded' undeclared (first use in this function) perl-libxml-mm.c:972: (Each undeclared identifier is reported only once perl-libxml-mm.c:972: for each function it appears in.) make: *** [perl-libxml-mm.o] Error 1 /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossibl p[root@dave11 Sablot-1.0.2]# perl -V Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration: Platform: osname=linux, osvers=2.4.21-1.1931.2.393.entsmp, archname=i386-linux-thread-multi uname='linux por' config_args='-des -Doptimize=-O2 -g -pipe -march=i386 -mcpu=i686 -Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Dotherlibdirs=/usr/lib/perl5/5.8.0 -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef' useithreads=define usemultiplicity= useperlio= d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=un uselongdouble= usemymalloc=, bincompat5005=undef Compiler: cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm', optimize='', cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'
Subject: Solution : Won't make on Solaris, CC parse error (was Won't "make" on RedHat - gcc parse error?)
From: Christophe.Martin-AT-sdt.univ-brest.fr
Hello, I had the same problem under Solaris 9, with SUN CC. The little patch attached solved the problem. Hope this helps. [LGODDARD - Wed Aug 3 08:26:40 2005]: Show quoted text
> CPAN.pm: Going to build P/PH/PHISH/XML-LibXML-1.58.tar.gz >
[snip] Show quoted text
> perl-libxml-mm.c:968: parse error before `*' > perl-libxml-mm.c:972: `decoded' undeclared (first use in this > function) > perl-libxml-mm.c:972: (Each undeclared identifier is reported only > once > perl-libxml-mm.c:972: for each function it appears in.) > make: *** [perl-libxml-mm.o] Error 1 > /usr/bin/make -- NOT OK > Running make test > Can't test without successful make > Running make install > make had returned bad status, install seems impossibl >
[snip]
Download thepatch
application/octet-stream 1.3k

Message body not shown because it is not plain text.

Subject: PATCH AVAILABLE Won't "make" on RedHat - gcc parse error?
On Tue Aug 09 10:35:59 2005, guest wrote: Show quoted text
> Hello, I had the same problem under Solaris 9, with SUN CC. > The little patch attached solved the problem. > Hope this helps.
It did help, thank you. This server mangles the patch, handing it out as a Base64 string, which when decoded reads: --- perl-libxml-mm.c.old Wed Mar 31 21:32:08 2004 +++ perl-libxml-mm.c Tue Aug 9 16:15:22 2005 @@ -959,6 +959,7 @@ if ( refnode != NULL ) { xmlDocPtr real_doc = refnode->doc; if ( real_doc != NULL && real_doc->encoding != NULL ) { + xmlChar * decoded; xs_warn( " encode node !!" ); /* The following statement is to handle bad values set by XML::LibXSLT */ @@ -965,7 +966,7 @@ if ( PmmNodeEncoding(real_doc) == XML_CHAR_ENCODING_NONE ) { PmmNodeEncoding(real_doc) = XML_CHAR_ENCODING_UTF8; } - xmlChar * decoded = PmmFastDecodeString( PmmNodeEncoding (real_doc) , + decoded = PmmFastDecodeString( PmmNodeEncoding(real_doc) , (const xmlChar *) string, (const xmlChar*) real_doc->encoding); xs_warn( "push decoded string into SV" );
From: JDW
On Wed Jan 18 08:50:52 2006, LGODDARD wrote: Show quoted text
> It did help, thank you. This server mangles the patch, handing it out > as a Base64 string, which when decoded reads:
Thanks for that! Any chance of getting this updated in CPAN? It's been broken for (at least) two months and apparently the fix has been sitting here the whole time. FWIW, we encountered this problem on FreeBSD 4.x running gcc 2.95.4. -JDW
From: Phil Mitchell
On Tue Aug 09 10:35:59 2005, guest wrote: Show quoted text
> Hello, I had the same problem under Solaris 9, with SUN CC. > > The little patch attached solved the problem. > Hope this helps. >
Yes, same problem on Debian with gcc 2.95.4 -- and this patch fixed it. Thank you!!
From: pidbuzz
Hi, Excuse me I'm French and I don't speak English very well. How can I apply this patch ?? I untar XML-LibXML-1.58.tar.gz and I applied the changes with the good things which I saw in the patch. I create a new tar file, but when I'm on cpan and I want to launch "install XML::LibXML" I have a cheksum problem. I never use cpan before this. I know it's a stupid question but I didn't find the solution. Thanks for all :) Bye Le Jeu. Mai. 18 20:03:42 2006, guest a écrit : Show quoted text
> On Tue Aug 09 10:35:59 2005, guest wrote:
> > Hello, I had the same problem under Solaris 9, with SUN CC. > > > > The little patch attached solved the problem. > > Hope this helps. > >
> > Yes, same problem on Debian with gcc 2.95.4 -- and this patch fixed it. > Thank you!! >