Opened 13 years ago

Closed 11 years ago

Last modified 11 years ago

#32021 closed defect (fixed)

fop fails to build X11 documentation with "local: can only be used in a function"

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: fop

Description

On Mac OS X 10.5.8 (9L31a, PPC) the upgrade fails because fop @1.0_1 fails to create Xserver-spec.pdf:

/opt/local/bin/xmlto --searchpath "/opt/local/share/sgml/X11" --searchpath "/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_ports_x11_xorg-server-devel/xorg-server-devel/work/xorg-server-devel-1.11.99.0.20111025" --stringparam img.src.path=/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_ports_x11_xorg-server-devel/xorg-server-devel/work/xorg-server-devel-1.11.99.0.20111025/doc/ -x /opt/local/share/sgml/X11/xorg-fo.xsl --with-fop pdf Xserver-spec.xml
/opt/local/bin/xmlto: line 319: local: can only be used in a function
/opt/local/bin/xmlto: line 319: local: can only be used in a function
Making portrait pages on a4 paper (210mmx297mm)
10.11.2011 23:37:59 org.apache.fop.events.LoggingEventListener processEvent
WARNUNG: Unknown formatting object "{http://xml.apache.org/fop/extensions}outline" encountered (a child of fo:root}. (Siehe Position 2:12559)
10.11.2011 23:38:00 org.apache.fop.events.LoggingEventListener processEvent
WARNUNG: Unknown formatting object "{http://xml.apache.org/fop/extensions}label" encountered (a child of outline}. (Siehe Position 2:12570)
10.11.2011 23:38:00 org.apache.fop.events.LoggingEventListener processEvent
WARNUNG: Unknown formatting object "{http://xml.apache.org/fop/extensions}outline" encountered (a child of fo:root}. (Siehe Position 2:12755)
10.11.2011 23:38:00 org.apache.fop.events.LoggingEventListener processEvent
WARNUNG: Unknown formatting object "{http://xml.apache.org/fop/extensions}label" encountered (a child of outline}. (Siehe Position 2:12766)
10.11.2011 23:38:00 org.apache.fop.events.LoggingEventListener processEvent
WARNUNG: Unknown formatting object "{http://xml.apache.org/fop/extensions}outline" encountered (a child of fo:root}. (Siehe Position 2:12903)
10.11.2011 23:38:00 org.apache.fop.events.LoggingEventListener processEvent
WARNUNG: Unknown formatting object "{http://xml.apache.org/fop/extensions}label" encountered (a child of outline}. (Siehe Position 2:12914)
10.11.2011 23:38:00 org.apache.fop.cli.Main startFOP
SCHWERWIEGEND: Exception
javax.xml.transform.TransformerException: org.apache.fop.apps.FOPException: file:/tmp/xmlto.vDuW9J/Xserver-spec.proc:2:13058: Error(2/13058): No element mapping definition found for (Namespace URI: "http://xml.apache.org/fop/extensions", Local Name: "destination")
	at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:302)
	at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
	at org.apache.fop.cli.Main.startFOP(Main.java:174)
	at org.apache.fop.cli.Main.main(Main.java:205)
Caused by: javax.xml.transform.TransformerException: org.apache.fop.apps.FOPException: file:/tmp/xmlto.vDuW9J/Xserver-spec.proc:2:13058: Error(2/13058): No element mapping definition found for (Namespace URI: "http://xml.apache.org/fop/extensions", Local Name: "destination")
	at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:501)
	at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299)
	... 3 more
Caused by: org.apache.fop.apps.FOPException: file:/tmp/xmlto.vDuW9J/Xserver-spec.proc:2:13058: Error(2/13058): No element mapping definition found for (Namespace URI: "http://xml.apache.org/fop/extensions", Local Name: "destination")
	at org.apache.fop.fo.ElementMappingRegistry.findFOMaker(ElementMappingRegistry.java:144)
	at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.findFOMaker(FOTreeBuilder.java:396)
	at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:271)
	at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171)
	at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
	at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
	at org.apache.xerces.xinclude.XIncludeHandler.emptyElement(Unknown Source)
	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
	... 4 more

---------

javax.xml.transform.TransformerException: org.apache.fop.apps.FOPException: file:/tmp/xmlto.vDuW9J/Xserver-spec.proc:2:13058: Error(2/13058): No element mapping definition found for (Namespace URI: "http://xml.apache.org/fop/extensions", Local Name: "destination")
	at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:501)
	at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299)
	at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
	at org.apache.fop.cli.Main.startFOP(Main.java:174)
	at org.apache.fop.cli.Main.main(Main.java:205)
Caused by: org.apache.fop.apps.FOPException: file:/tmp/xmlto.vDuW9J/Xserver-spec.proc:2:13058: Error(2/13058): No element mapping definition found for (Namespace URI: "http://xml.apache.org/fop/extensions", Local Name: "destination")
	at org.apache.fop.fo.ElementMappingRegistry.findFOMaker(ElementMappingRegistry.java:144)
	at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.findFOMaker(FOTreeBuilder.java:396)
	at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:271)
	at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171)
	at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
	at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
	at org.apache.xerces.xinclude.XIncludeHandler.emptyElement(Unknown Source)
	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
	... 4 more
---------
org.apache.fop.apps.FOPException: file:/tmp/xmlto.vDuW9J/Xserver-spec.proc:2:13058: Error(2/13058): No element mapping definition found for (Namespace URI: "http://xml.apache.org/fop/extensions", Local Name: "destination")
	at org.apache.fop.fo.ElementMappingRegistry.findFOMaker(ElementMappingRegistry.java:144)
	at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.findFOMaker(FOTreeBuilder.java:396)
	at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:271)
	at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171)
	at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
	at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
	at org.apache.xerces.xinclude.XIncludeHandler.emptyElement(Unknown Source)
	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
	at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299)
	at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
	at org.apache.fop.cli.Main.startFOP(Main.java:174)
	at org.apache.fop.cli.Main.main(Main.java:205)
make[2]: *** [Xserver-spec.pdf] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_ports_x11_xorg-server-devel/xorg-server-devel/work/xorg-server-devel-1.11.99.0.20111025/doc'

(I invoked 'env LANG=C port -vc upgrade outdated', but this environment settings gets lost.)

Attachments (1)

main.log (18.8 KB) - added by ballapete (Peter "Pete" Dyballa) 13 years ago.
main.log

Download all attachments as: .zip

Change History (11)

Changed 13 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

main.log

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jeremyhu@… removed
Owner: changed from macports-tickets@… to jeremyhu@…

comment:2 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Owner: changed from jeremyhu@… to boeyms@…
Port: xorg-server-devel removed

This is not a bug in xorg-server, it's a bug in fop.

comment:3 Changed 13 years ago by ballapete (Peter "Pete" Dyballa)

Cc: Peter_Dyballa@… added

Cc Me!

comment:4 Changed 13 years ago by ballapete (Peter "Pete" Dyballa)

Cc: Peter_Dyballa@… removed

Cc Me!

comment:5 in reply to:  2 ; Changed 13 years ago by ballapete (Peter "Pete" Dyballa)

Replying to jeremyhu@…:

This is not a bug in xorg-server, it's a bug in fop.

No, Jeremy, it is a bug in recent xorg-server-devel! See here, the top of the build process:

env LANG=C port -vc upgrade outdated
--->  Computing dependencies for xorg-server-devel.
--->  Fetching archive for xorg-server-devel
--->  xorg-server-devel-1.11.99.1_0+docs.darwin_9.ppc.tgz doesn't seem to exist in /opt/local/var/macports/software/xorg-server-devel
--->  Attempting to fetch xorg-server-devel-1.11.99.1_0+docs.darwin_9.ppc.tgz from http://packages.macports.org/xorg-server-devel
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Fetching xorg-server-devel
--->  Verifying checksum(s) for xorg-server-devel
--->  Extracting xorg-server-devel
--->  Applying patches to xorg-server-devel

The archive xorg-server-devel-1.11.99.1_0+docs.darwin_9.ppc.tgz cannot be fetched. So fop later has to fail.

comment:6 Changed 12 years ago by jmroot (Joshua Root)

Owner: changed from boeyms@… to macports-tickets@…

-> nomaintainer

comment:7 in reply to:  5 Changed 12 years ago by jmroot (Joshua Root)

Replying to Peter_Dyballa@…:

The archive xorg-server-devel-1.11.99.1_0+docs.darwin_9.ppc.tgz cannot be fetched. So fop later has to fail.

Nonsense. The fact that we don't provide binary archives for Leopard is not a bug in the port.

comment:8 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Summary: Xorg-server-devel-1.11.99.0.20111025 fails to build because its docs can't be builtfop fails to build X11 documentation with "local: can only be used in a function"

comment:9 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

Works for me with fop 1.1, r109277

comment:10 in reply to:  9 Changed 11 years ago by ballapete (Peter "Pete" Dyballa)

Replying to jeremyhu@…:

Works for me with fop 1.1, r109277

Fop 1.1_0 could be built on PPC Leopard and Tiger.

Note: See TracTickets for help on using tickets.