Bug 11785 - Fail to build LineaPro bound application
Summary: Fail to build LineaPro bound application
Status: VERIFIED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: 6.3.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: 6.4 (async)
Assignee: Rolf Bjarne Kvinge [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2013-04-15 03:48 UTC by Shy Alon
Modified: 2013-07-22 05:05 UTC (History)
5 users (show)

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


Attachments
The test project (427.91 KB, application/x-zip-compressed)
2013-04-25 03:10 UTC, Shy Alon
Details


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 Developer Community or GitHub 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:
VERIFIED FIXED

Description Shy Alon 2013-04-15 03:48:19 UTC
I am following the instructions in http://davidsandor.com/post/2011/01/05/iPhone-iTouch-barcode-scanning-Hello-World-application-with-MonoTouch-and-LineaSDK.aspx.
I incorporated Sebastien Pouliot's comment and tried various build option but it always fails.
The first error I see is "<stdin>:9990: error: expected declaration specifiers or '...' before 'UIOffset'" (as seen in the attached build log).

Compiling to native code
/Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" -v --cache "/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/obj/Debug/mtouch-cache" --nomanifest --nosign -dev "/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app" -r "/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" -r "/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" -r "/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" -r "/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" -r "/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/MonoTouch.Dialog.dll" -r "/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/LineaSDK.dll" -debug -nolink -sdk "4.3" -targetver "3.1" --abi=armv7 "-v" "--cxx" --gcc_flags "\"-L/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample\" \"-lLineaSDK\" \"-framework\" \"AudioToolbox\" \"-framework\" \"CoreGraphics\" \"-framework\" \"ExternalAccessory\" \"-ObjC\"" "/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.exe"
MonoTouch Business version 6.2.3.0 (8d98f5e) using framework: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk
Copied /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.exe to /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/MTBarcodeExample.exe
Copied /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll to /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/monotouch.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/mscorlib.dll to /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/mscorlib.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll to /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/System.Core.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.dll to /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/System.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/Mono.Security.dll to /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/Mono.Security.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll to /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/System.Xml.dll
Copied /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/MonoTouch.Dialog.dll to /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/MonoTouch.Dialog.dll
Copied /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/LineaSDK.dll to /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/LineaSDK.dll
MONO_PATH=/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --debug --aot=mtriple=armv7-darwin,full,static,asmonly,direct-icalls,no-direct-calls,iphone-abi,outfile=/var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/System.Core.dll.armv7.s "/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/System.Core.dll"
MONO_PATH=/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --debug --aot=mtriple=armv7-darwin,full,static,asmonly,direct-icalls,soft-debug,no-direct-calls,iphone-abi,outfile=/var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/LineaSDK.dll.armv7.s "/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/LineaSDK.dll"
Mono Ahead of Time compiler - compiling assembly /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/LineaSDK.dll
Missing method MonoTouch.ObjCRuntime.Messaging::void_objc_msgSend_int_Boolean(intptr,intptr,int,bool) in assembly /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/monotouch.dll, referenced in assembly /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/LineaSDK.dll
Code: 27884 Info: 430 Ex Info: 6583 Unwind Info: 354 Class Info: 892 PLT: 39 GOT Info: 719 GOT: 740 Offsets: 737
Output file: '/var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/LineaSDK.dll.armv7.s'.
Linking symbol: '_mono_aot_module_LineaSDK_info'.
Compiled 72 out of 139 methods (51%)
Methods without GOT slots: 0 (0%)
Direct calls: 0 (0%)
JIT time: 14 ms, Generation time: 17 ms, Assembly+Link time: 0 ms.

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++  -miphoneos-version-min=3.1 -arch armv7  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -x assembler-with-cpp -c /var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/LineaSDK.dll.armv7.s -o /var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/LineaSDK.dll.armv7.o
MONO_PATH=/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --debug --aot=mtriple=armv7-darwin,full,static,asmonly,direct-icalls,soft-debug,no-direct-calls,iphone-abi,outfile=/var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/MonoTouch.Dialog.dll.armv7.s "/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/MonoTouch.Dialog.dll"
Mono Ahead of Time compiler - compiling assembly /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/MonoTouch.Dialog.dll
Code: 300988 Info: 3484 Ex Info: 72343 Unwind Info: 2998 Class Info: 9452 PLT: 458 GOT Info: 7022 GOT: 5196 Offsets: 3504
Output file: '/var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/MonoTouch.Dialog.dll.armv7.s'.
Linking symbol: '_mono_aot_module_MonoTouch_Dialog_info'.
Compiled 559 out of 559 methods (100%)
Methods without GOT slots: 0 (0%)
Direct calls: 0 (0%)
JIT time: 106 ms, Generation time: 148 ms, Assembly+Link time: 0 ms.

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++  -miphoneos-version-min=3.1 -arch armv7  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -x assembler-with-cpp -c /var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/MonoTouch.Dialog.dll.armv7.s -o /var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/MonoTouch.Dialog.dll.armv7.o
MONO_PATH=/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --debug --aot=mtriple=armv7-darwin,full,static,asmonly,direct-icalls,no-direct-calls,iphone-abi,outfile=/var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/System.Xml.dll.armv7.s "/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/System.Xml.dll"
Mono Ahead of Time compiler - compiling assembly /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/System.Xml.dll
Code: 1983752 Info: 52775 Ex Info: 622480 Unwind Info: 10657 Class Info: 38696 PLT: 3428 GOT Info: 41919 GOT: 30492 Offsets: 38825
Output file: '/var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/System.Xml.dll.armv7.s'.
Linking symbol: '_mono_aot_module_System_Xml_info'.
Compiled 8069 out of 8069 methods (100%)
Methods without GOT slots: 4852 (60%)
Direct calls: 0 (0%)
JIT time: 1352 ms, Generation time: 1628 ms, Assembly+Link time: 0 ms.

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++  -miphoneos-version-min=3.1 -arch armv7  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -x assembler-with-cpp -c /var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/System.Xml.dll.armv7.s -o /var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/System.Xml.dll.armv7.o
Mono Ahead of Time compiler - compiling assembly /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/System.Core.dll
Code: 2475352 Info: 99648 Ex Info: 828534 Unwind Info: 10846 Class Info: 5619 PLT: 7549 GOT Info: 424100 GOT: 45304 Offsets: 61302
Output file: '/var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/System.Core.dll.armv7.s'.
Linking symbol: '_mono_aot_module_System_Core_info'.
Compiled 12813 out of 12813 methods (100%)
Methods without GOT slots: 7967 (62%)
Direct calls: 2 (0%)
JIT time: 2794 ms, Generation time: 3643 ms, Assembly+Link time: 0 ms.

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++  -miphoneos-version-min=3.1 -arch armv7  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -x assembler-with-cpp -c /var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/System.Core.dll.armv7.s -o /var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/System.Core.dll.armv7.o
MONO_PATH=/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --debug --aot=mtriple=armv7-darwin,full,static,asmonly,direct-icalls,no-direct-calls,iphone-abi,outfile=/var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/Mono.Security.dll.armv7.s "/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/Mono.Security.dll"
Mono Ahead of Time compiler - compiling assembly /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/Mono.Security.dll
Code: 446376 Info: 9459 Ex Info: 153238 Unwind Info: 6413 Class Info: 11894 PLT: 1096 GOT Info: 10924 GOT: 7812 Offsets: 9013
Output file: '/var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/Mono.Security.dll.armv7.s'.
Linking symbol: '_mono_aot_module_Mono_Security_info'.
Compiled 1975 out of 1975 methods (100%)
Methods without GOT slots: 1101 (55%)
Direct calls: 0 (0%)
JIT time: 382 ms, Generation time: 423 ms, Assembly+Link time: 0 ms.

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++  -miphoneos-version-min=3.1 -arch armv7  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -x assembler-with-cpp -c /var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/Mono.Security.dll.armv7.s -o /var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/Mono.Security.dll.armv7.o
MONO_PATH=/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --debug --aot=mtriple=armv7-darwin,full,static,asmonly,direct-icalls,no-direct-calls,iphone-abi,outfile=/var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/System.dll.armv7.s "/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/System.dll"
MONO_PATH=/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --debug --aot=mtriple=armv7-darwin,full,static,asmonly,direct-icalls,no-direct-calls,iphone-abi,outfile=/var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/mscorlib.dll.armv7.s "/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/mscorlib.dll"
Mono Ahead of Time compiler - compiling assembly /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/System.dll
Code: 1446080 Info: 41429 Ex Info: 515999 Unwind Info: 10156 Class Info: 38388 PLT: 4045 GOT Info: 74005 GOT: 31360 Offsets: 38210
Output file: '/var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/System.dll.armv7.s'.
Linking symbol: '_mono_aot_module_System_info'.
Compiled 7729 out of 7732 methods (99%)
3 methods have other problems (0%)
Methods without GOT slots: 4837 (62%)
Direct calls: 66 (0%)
JIT time: 1107 ms, Generation time: 2136 ms, Assembly+Link time: 0 ms.

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++  -miphoneos-version-min=3.1 -arch armv7  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -x assembler-with-cpp -c /var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/System.dll.armv7.s -o /var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/System.dll.armv7.o
Mono Ahead of Time compiler - compiling assembly /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/mscorlib.dll
Code: 3435060 Info: 95715 Ex Info: 1228732 Unwind Info: 13648 Class Info: 62275 PLT: 7823 GOT Info: 185444 GOT: 52752 Offsets: 88334
Output file: '/var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/mscorlib.dll.armv7.s'.
Linking symbol: '_mono_aot_module_mscorlib_info'.
Compiled 18731 out of 18731 methods (100%)
Methods without GOT slots: 12331 (65%)
Direct calls: 494 (1%)
JIT time: 2577 ms, Generation time: 5801 ms, Assembly+Link time: 0 ms.

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++  -miphoneos-version-min=3.1 -arch armv7  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -x assembler-with-cpp -c /var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/mscorlib.dll.armv7.s -o /var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/mscorlib.dll.armv7.o
MONO_PATH=/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --debug --aot=mtriple=armv7-darwin,full,static,asmonly,direct-icalls,no-direct-calls,iphone-abi,outfile=/var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/monotouch.dll.armv7.s "/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/monotouch.dll"
Mono Ahead of Time compiler - compiling assembly /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/monotouch.dll
Code: 4412272 Info: 158596 Ex Info: 1472742 Unwind Info: 15123 Class Info: 262667 PLT: 8694 GOT Info: 110846 GOT: 73340 Offsets: 145810
Output file: '/var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/monotouch.dll.armv7.s'.
Linking symbol: '_mono_aot_module_monotouch_info'.
Compiled 28620 out of 28620 methods (100%)
Methods without GOT slots: 8201 (28%)
Direct calls: 0 (0%)
JIT time: 3484 ms, Generation time: 4585 ms, Assembly+Link time: 0 ms.

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++  -miphoneos-version-min=3.1 -arch armv7  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -x assembler-with-cpp -c /var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/monotouch.dll.armv7.s -o /var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/monotouch.dll.armv7.o
MONO_PATH=/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --debug --aot=mtriple=armv7-darwin,full,static,asmonly,direct-icalls,soft-debug,no-direct-calls,iphone-abi,outfile=/var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/MTBarcodeExample.exe.armv7.s "/Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/MTBarcodeExample.exe"
Mono Ahead of Time compiler - compiling assembly /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/bin/iPhone/Debug/MTBarcodeExample.app/MTBarcodeExample.exe
Code: 8664 Info: 107 Ex Info: 2038 Unwind Info: 268 Class Info: 1519 PLT: 40 GOT Info: 407 GOT: 384 Offsets: 193
Output file: '/var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/MTBarcodeExample.exe.armv7.s'.
Linking symbol: '_mono_aot_module_MTBarcodeExample_info'.
Compiled 25 out of 25 methods (100%)
Methods without GOT slots: 0 (0%)
Direct calls: 0 (0%)
JIT time: 7 ms, Generation time: 10 ms, Assembly+Link time: 1 ms.

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++  -miphoneos-version-min=3.1 -arch armv7  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -x assembler-with-cpp -c /var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/MTBarcodeExample.exe.armv7.s -o /var/folders/t3/75_nrr713mqc4b439xfqyby80000gn/T/tmp72213915.tmp/MTBarcodeExample.exe.armv7.o
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++  -miphoneos-version-min=3.1 -gdwarf-2  -arch armv7  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -x objective-c -c  -o /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/obj/Debug/mtouch-cache/main.armv7.cache.gauc4gtGXCavbbZU32fSkIcUUQs=.o -
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++  -miphoneos-version-min=3.1 -gdwarf-2  -arch armv7  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -x objective-c -c  -o /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/obj/Debug/mtouch-cache/registrar.armv7.cache.IluG-xw7Bz6fk66g2emNHZZBPyQ=.o -
Process exited with code 1, command:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++  -miphoneos-version-min=3.1 -gdwarf-2  -arch armv7  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -x objective-c -c  -o /Users/apple/Downloads/MTBarcodeExample/MTBarcodeExample/obj/Debug/mtouch-cache/registrar.armv7.cache.IluG-xw7Bz6fk66g2emNHZZBPyQ=.o -
<stdin>:9990: error: expected declaration specifiers or '...' before 'UIOffset'
<stdin>: In function 'native_to_managed_trampoline_MonoTouch_UIKit_UIBarButtonItem_UIBarButtonItemAppearance_SetTitlePositionAdjustment':
<stdin>:9999: error: 'p0' undeclared (first use in this function)
<stdin>:9999: error: (Each undeclared identifier is reported only once
<stdin>:9999: error: for each function it appears in.)
<stdin>: At top level:
<stdin>:10069: error: expected declaration specifiers or '...' before 'UIOffset'
<stdin>: In function 'native_to_managed_trampoline_MonoTouch_UIKit_UIBarButtonItem_UIBarButtonItemAppearance_SetBackButtonTitlePositionAdjustment':
<stdin>:10078: error: 'p0' undeclared (first use in this function)
<stdin>: At top level:
<stdin>:13902: error: expected declaration specifiers or '...' before 'UIOffset'
<stdin>: In function 'native_to_managed_trampoline_MonoTouch_UIKit_UITabBarItem_UITabBarItemAppearance_set_TitlePositionAdjustment':
<stdin>:13911: error: 'p0' undeclared (first use in this function)
<stdin>: At top level:
<stdin>:14517: error: expected declaration specifiers or '...' before 'UIOffset'
<stdin>: In function 'native_to_managed_trampoline_MonoTouch_UIKit_UISegmentedControl_UISegmentedControlAppearance_SetContentPositionAdjustment':
<stdin>:14526: error: 'p0' undeclared (first use in this function)

error MT4109: Failed to compile the generated registrar code. Please file a bug report at http://bugzilla.xamarin.com

---------------------- Done ----------------------

Project does not have bundle identifier specified. Generated 'mtbarcodeexample' to match an installed provisioning profile.
Build: 1 error, 2 warnings
Comment 1 Rolf Bjarne Kvinge [MSFT] 2013-04-15 12:23:16 UTC
For a workaround add "--noregistrar" to the additional mtouch arguments in the project's iOS Build options page.
Comment 2 Shy Alon 2013-04-21 02:26:18 UTC
Thanks Rolf, that worked perfectly.
Comment 3 Rolf Bjarne Kvinge [MSFT] 2013-04-24 18:45:33 UTC
Can you attach your project so I can see if I can reproduce this myself? You do not need to include the LineaSDK.a library.
Comment 4 Shy Alon 2013-04-25 03:10:19 UTC
Created attachment 3872 [details]
The test project

This is the test project
Comment 5 Rolf Bjarne Kvinge [MSFT] 2013-04-25 07:47:32 UTC
Could you attach your LineaSDK.dll too (which is not the same as the native libLineaSDK.a library)?
Comment 6 Shy Alon 2013-04-25 07:53:30 UTC
It's David Sandor's DLL.
You can download it from http://blog.davidsandor.com/file.axd?file=LineaSDK_4.zip
Comment 7 Rolf Bjarne Kvinge [MSFT] 2013-04-25 08:12:35 UTC
Can you try using a more recent SDK than 4.3? It builds just fine for me with the 6.1 SDK. You can change this in the project's iOS build options (SDK version).
Comment 9 PJ 2013-07-09 05:02:13 UTC
Marking this one as RESOLVED, WORKSFORME for now. Please feel free to re-open if you can still reproduce and be sure to add full updated version information.
Comment 10 narayanp 2013-07-12 08:26:01 UTC
Today I have checked this issue with following builds:

X.S 4.0.10
Mono 3.1.1-2
Xamarin.iOS 6.3.8.5
Xcode 4.6.2

And I have open the attached project and added LineaSDK.dll file to project. When I build this project it is giving me 2 build error. I am not sure what step I am missing here this is the gist of build output: https://gist.github.com/atin360/4ab1a0bfeb36f912b480

Hence reopening this issue.
Comment 11 Rolf Bjarne Kvinge [MSFT] 2013-07-15 09:26:38 UTC
The build error is because the LineaSDK.dll is built against an old version of MonoTouch.

More information and a tool to fix old assemblies can be found here: https://github.com/rolfbjarne/iOSRefUpdater

Can you run the tool on LineaSDK.dll and try again?
Comment 12 narayanp 2013-07-16 04:03:59 UTC
Today I have checked this link which is mentioned on Comment#11 and tried to compile the iOSRefUpdater in XamarinStudio but I am not aware about the Path of third party where assembly.dll exists. I am not able to execute command in terminal "mono iOSRefUpdater.exe /path/to/third/party/assembly.dll"

I tried the path of MonoTouch used /Developer/MonoTouch/usr/lib/Mono/2.1 but not seeing the assembly.dll file there

Please suggest for the same.
Comment 13 narayanp 2013-07-16 04:56:10 UTC
I have again checked this issue with the help of PJ now I am successfully able to update reference LineaSDK.dll and I have added this reference in attached project and build the application, Now application builds and launch successfully.

X.S 4.0.10(build 5)
Mono 3.1.2
Xamarin.iOS 6.3.8-10

Hence closing this issue.
Comment 14 narayanp 2013-07-16 04:56:34 UTC
Changing the status to Verified.
Comment 15 d3020 2013-07-18 09:10:14 UTC
Hi Rolf - 

Hoping you are willing to continue to help here with this topic. I'm using:

Xamarin Studio - 4.0.9 (build 12) I believe the current beta version.
Mono - 3.0.12
Xamarin.iOS - 6.3.7.164 (Business Edition)

- I've included the LineaSDK.dll mentioned above from the mentioned blog post.
- I've updated it using the github project mentioned. 
- I've also included the .a file and that is set to Build - None. 
- In the iOS Build settings I have SDK Version set to 6.1. Linker behavior is set to Don't link. 
- In the mtouch arguments I have this...

-v -cxx -noregistrar -gcc_flags "-L${ProjectDir} -lLineaSDK -framework AudioToolbox -framework CoreGraphics -framework ExternalAccessory -ObjC" 

When I build it I get this...

Error MT5201: Native linking failed. Please review user flags provided to gcc: "-L/Users/ae/Projects/HelloWorld/HelloWorld" "-lLineaSDK" "-framework" "AudioToolbox" "-framework" "CoreGraphics" "-framework" "ExternalAccessory" "-ObjC" (MT5201) (HelloWorld)

Please help. I feel like I've tried what has been suggested here, and see that it's supposed to be resolved, so I must be missing something.
Comment 16 d3020 2013-07-18 09:43:24 UTC
Just wanted to also mention.

If I take out the mtouch arguments completely and build the project. I get...

Error MT2002: Failed to resolve "System.Void MonoTouch.ObjCRuntime.Messaging::void_objc_msgSend_int_Boolean(System.IntPtr,System.IntPtr,System.Int32,System.Boolean)" reference from "monotouch, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065" (MT2002) (HelloWorld)

Maybe I have those mtouch arguments wrong (please advise) but just wanted to mention the different error without them in case it helps you to help me.
Comment 17 Rolf Bjarne Kvinge [MSFT] 2013-07-22 05:05:14 UTC
d3020: Please attach/pastebin the full build output of the project (when you get the MT5201 error from comment 15).