Bug 1354 - Compiling failure for mono-uia, error CS1699
Summary: Compiling failure for mono-uia, error CS1699
Status: RESOLVED FEATURE
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Marek Safar
URL:
Depends on:
Blocks:
 
Reported: 2011-10-07 19:26 UTC by Jeremy Newton
Modified: 2013-05-08 03:37 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FEATURE

Description Jeremy Newton 2011-10-07 19:26:51 UTC
I downloaded mono-uia 2.1 from here: http://mono-a11y.org/releases/2.1/sources/

I tried to compile mono-uia and I got two errors. I tried tinkering with it to no avail. Here's my full output:

[jeremy@Jeremy-PC mono-uia-2.1]$ ./configure 
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking for pkg-config... /usr/bin/pkg-config
checking for a BSD-compatible install... /bin/install -c
checking for mono... /usr/bin/mono
checking for gmcs... /usr/bin/gmcs
checking for gacutil... /usr/bin/gacutil
checking for sn... /usr/bin/sn
checking pkg-config is at least version 0.9.0... yes
checking for NUNIT... yes
checking for MONO... yes
checking for Mono 2.0 GAC for WindowsBase.dll... found
checking for GLIB_SHARP_20... yes
checking for GTK_SHARP_20... yes
configure: creating ./config.status
config.status: creating WindowsBase/Makefile
config.status: creating WindowsBase/AssemblyInfo.cs
config.status: creating UIAutomationTypes/Makefile
config.status: creating UIAutomationTypes/AssemblyInfo.cs
config.status: creating UIAutomationBridge/Makefile
config.status: creating UIAutomationBridge/AssemblyInfo.cs
config.status: creating UIAutomationSource/Makefile
config.status: creating UIAutomationSource/AssemblyInfo.cs
config.status: creating UIAutomationClient/Makefile
config.status: creating UIAutomationClientTests/Makefile
config.status: creating UIAutomationClientTests/GtkForm/Makefile
config.status: creating UIAutomationClientTests/AtspiUiaClientTests/Makefile
config.status: creating UIAutomationClientTests/AtspiUiaClientTests/atspiuiaclienttest.sh
config.status: creating UIAutomationClientTests/SampleForm/Makefile
config.status: creating UIAutomationClientTests/UIAutomationClientTests/Makefile
config.status: creating UIAutomationClientTests/UIAutomationClientTests/swfclienttest.sh
config.status: creating UIAutomationClient/AssemblyInfo.cs
config.status: creating UIAutomationProvider/Makefile
config.status: creating UIAutomationProvider/AssemblyInfo.cs
config.status: creating data/Makefile
config.status: creating data/mono-uia.pc.in
config.status: creating data/mono-uia-openSUSE_11.2.spec
config.status: creating data/mono-uia-Fedora_12.spec
config.status: creating data/mono-uia-openSUSE_11.3.spec
config.status: creating data/mono-uia-Fedora_13.spec
config.status: creating Makefile
config.status: creating build/common/Consts.cs
[jeremy@Jeremy-PC mono-uia-2.1]$ make
Making all in UIAutomationTypes
make[1]: Entering directory `/tmp/yaourt-tmp-jeremy/aur-mono-uia/src/mono-uia-2.1/UIAutomationTypes'
mkdir -p ../bin
gmcs -lib:/usr/local/lib/mono/2.0 -lib:../bin -noconfig -codepage:utf8 -warn:4 -warnaserror -optimize+ -debug "-define:DEBUG" -d:NET_2_0 -out:../bin/UIAutomationTypes.dll -target:library './AssemblyInfo.cs' './../build/common/*.cs' './System.Windows.Automation.Text/AnimationStyle.cs' './System.Windows.Automation.Text/BulletStyle.cs' './System.Windows.Automation.Text/CapStyle.cs' './System.Windows.Automation.Text/FlowDirections.cs' './System.Windows.Automation.Text/HorizontalTextAlignment.cs' './System.Windows.Automation.Text/OutlineStyles.cs' './System.Windows.Automation.Text/TextDecorationLineStyle.cs' './System.Windows.Automation.Text/TextPatternRangeEndpoint.cs' './System.Windows.Automation.Text/TextUnit.cs' './System.Windows.Automation/AsyncContentLoadedEventArgs.cs' './System.Windows.Automation/AutomationElementIdentifiers.cs' './System.Windows.Automation/AutomationEvent.cs' './System.Windows.Automation/AutomationEventArgs.cs' './System.Windows.Automation/AutomationIdentifier.cs' './System.Windows.Automation/AutomationPattern.cs' './System.Windows.Automation/AutomationProperty.cs' './System.Windows.Automation/AutomationPropertyChangedEventArgs.cs' './System.Windows.Automation/AutomationTextAttribute.cs' './System.Windows.Automation/CaretPatternIdentifiers.cs' './System.Windows.Automation/ClipboardPatternIdentifiers.cs' './System.Windows.Automation/ControlType.cs' './System.Windows.Automation/DockPatternIdentifiers.cs' './System.Windows.Automation/DockPosition.cs' './System.Windows.Automation/EditableRangePatternIdentifiers.cs' './System.Windows.Automation/ElementNotAvailableException.cs' './System.Windows.Automation/ElementNotEnabledException.cs' './System.Windows.Automation/EmbeddedImagePatternIdentifiers.cs' './System.Windows.Automation/ExpandCollapsePatternIdentifiers.cs' './System.Windows.Automation/ExpandCollapseState.cs' './System.Windows.Automation/GridItemPatternIdentifiers.cs' './System.Windows.Automation/GridPatternIdentifiers.cs' './System.Windows.Automation/InsertDeleteTextPatternIdentifiers.cs' './System.Windows.Automation/InvokePatternIdentifiers.cs' './System.Windows.Automation/KeyEventArgs.cs' './System.Windows.Automation/MultipleViewPatternIdentifiers.cs' './System.Windows.Automation/NoClickablePointException.cs' './System.Windows.Automation/OrientationType.cs' './System.Windows.Automation/ProxyAssemblyNotLoadedException.cs' './System.Windows.Automation/RangeValuePatternIdentifiers.cs' './System.Windows.Automation/RowOrColumnMajor.cs' './System.Windows.Automation/ScrollAmount.cs' './System.Windows.Automation/ScrollItemPatternIdentifiers.cs' './System.Windows.Automation/ScrollPatternIdentifiers.cs' './System.Windows.Automation/SelectionItemPatternIdentifiers.cs' './System.Windows.Automation/SelectionPatternIdentifiers.cs' './System.Windows.Automation/StructureChangedEventArgs.cs' './System.Windows.Automation/StructureChangeType.cs' './System.Windows.Automation/SupportedTextSelection.cs' './System.Windows.Automation/TableItemPatternIdentifiers.cs' './System.Windows.Automation/TablePatternIdentifiers.cs' './System.Windows.Automation/TextPatternIdentifiers.cs' './System.Windows.Automation/TogglePatternIdentifiers.cs' './System.Windows.Automation/ToggleState.cs' './System.Windows.Automation/TransformPatternIdentifiers.cs' './System.Windows.Automation/TreeScope.cs' './System.Windows.Automation/ValuePatternIdentifiers.cs' './System.Windows.Automation/WindowClosedEventArgs.cs' './System.Windows.Automation/WindowInteractionState.cs' './System.Windows.Automation/WindowPatternIdentifiers.cs' './System.Windows.Automation/WindowVisualState.cs'      -r:WindowsBase    -r:System    -r:Mono.Posix  
./AssemblyInfo.cs(46,12): error CS1699: Use compiler option `delaysign' or appropriate project settings instead of `AssemblyDelaySign' attribute
./AssemblyInfo.cs(47,12): error CS1699: Use compiler option `keyfile' or appropriate project settings instead of `AssemblyKeyFile' attribute
Compilation failed: 2 error(s), 0 warnings
make[1]: *** [../bin/UIAutomationTypes.dll] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-jeremy/aur-mono-uia/src/mono-uia-2.1/UIAutomationTypes'
make: *** [all-recursive] Error 1


I have all the latest stable releases of all the requirements.
Comment 1 Marek Safar 2013-05-08 03:37:22 UTC
You/They are passing -warnaserror option which turns CS1699 warning into error. Fix the warning or not use waraserror for it.