Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56154 - gtk-sharp-1.0 compilation fails
Summary: gtk-sharp-1.0 compilation fails
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-05 11:24 UTC by Nguyen Thai Ngoc Duy (RETIRED)
Modified: 2004-08-16 18:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2004-07-05 11:24:55 UTC
make[3]: Entering directory `/mnt/tmp/portage/portage/gtk-sharp-1.0/work/gtk-sha
rp-1.0/gdk'
cp ./gdk-api.raw gdk-api.xml
chmod u+w gdk-api.xml
/usr/bin/mono ../parser/gapi-fixup.exe --api=gdk-api.xml --metadata=./Gdk.metadata
rm -f generated/* &&    \
/usr/bin/mono ../generator/gapi_codegen.exe --generate gdk-api.xml ./gdk-symbols.xml                    \
--include ../pango/pango-api.xml --outdir=generated --customdir=. --assembly-name=gdk-sharp     \
--gluelib-name=gdksharpglue --glue-filename=glue/generated.c                   \
&& touch generated-stamp
Invalid XML file.
System.Xml.XmlException: Invalid XML declaration.
in <0x00709> System.Xml.XmlDeclaration:ParseInput (string)
in <0x00011> System.Xml.XmlDeclaration:set_Value (string)
in <0x003ca> System.Xml.XmlDocument:ReadNode (System.Xml.XmlReader)
in <0x0004f> System.Xml.XmlDocument:Load (System.Xml.XmlReader)
in <0x0004c> System.Xml.XmlDocument:Load (System.IO.Stream)
in <0x00060> GtkSharp.Generation.Parser:Load (string)


Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
in <0x00075> GtkSharp.Generation.SymbolTable:AddTypes (GtkSharp.Generation.IGeneratable[])
in <0x00337> GtkSharp.Generation.CodeGenerator:Main (string[])

make[3]: *** [generated-stamp] Error 1
make[3]: Leaving directory `/mnt/tmp/portage/portage/gtk-sharp-1.0/work/gtk-sharp-1.0/gdk'


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Peter Johanson (RETIRED) gentoo-dev 2004-07-07 18:58:28 UTC
Odd, can you try running xmllint on the generated XML file and see if it is really an invalid XML file for me?
Comment 2 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2004-07-08 16:15:29 UTC
All XML files are valid. Fortunately I found the problem. If i remove 'encoding="UTF-8"' from XML decl in gdk-symbols.xml (also {gtk,art}-symbols.xml), the problem's gone.
Comment 3 Peter Johanson (RETIRED) gentoo-dev 2004-08-16 18:13:38 UTC
Okay, marking WONTFIX. Seems like a locale issue, if you care to dig up more info and get something productive, please feel free to reopen.