Bug 5234 - Linker fails with binding project, libraries not copied correctly (or so it looks)
Summary: Linker fails with binding project, libraries not copied correctly (or so it l...
Status: RESOLVED NORESPONSE
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: 5.2
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-05-22 09:10 UTC by kenny goers
Modified: 2013-06-04 21:24 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 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:
RESOLVED NORESPONSE

Description kenny goers 2012-05-22 09:10:53 UTC
With a simple and strait forward bindings project, linker fails to find the dependent library.  Attached is the sample solution to reproduce.

Running MonoTouch 5.2.11, MonoDevelop 3.0


Building: BindingTest (Debug|iPhoneSimulator)
Performing main compilation...
/Developer/MonoTouch/usr/bin/smcs /noconfig "/out:/Users/mac/Projects/BindingTest/BindingTest/bin/iPhoneSimulator/Debug/BindingTest.exe" "/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/mac/Projects/BindingTest/BindingLib/bin/Debug/BindingLib.dll" /nologo /warn:4 /debug:full /optimize- /codepage:utf8 "/define:DEBUG"  /t:exe "/Users/mac/Projects/BindingTest/BindingTest/Main.cs" "/Users/mac/Projects/BindingTest/BindingTest/AppDelegate.cs" 
Build complete -- 0 errors, 0 warnings

Compiling to native code
/Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Developer" -v --nomanifest --nosign -sim "/Users/mac/Projects/BindingTest/BindingTest/bin/iPhoneSimulator/Debug/BindingTest.app" -r "/Users/mac/Projects/BindingTest/BindingLib/bin/Debug/BindingLib.dll" -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" -debug -profiling -nolink -sdk "5.0" -targetver "3.2" "/Users/mac/Projects/BindingTest/BindingTest/bin/iPhoneSimulator/Debug/BindingTest.exe"
MonoTouch version 5.2.11 using framework: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk
Copied /Users/mac/Projects/BindingTest/BindingTest/bin/iPhoneSimulator/Debug/BindingTest.exe to /Users/mac/Projects/BindingTest/BindingTest/bin/iPhoneSimulator/Debug/BindingTest.app/BindingTest.exe
Copied /Developer/MonoTouch/usr/lib/mono/2.1/mscorlib.dll to /Users/mac/Projects/BindingTest/BindingTest/bin/iPhoneSimulator/Debug/BindingTest.app/mscorlib.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll to /Users/mac/Projects/BindingTest/BindingTest/bin/iPhoneSimulator/Debug/BindingTest.app/monotouch.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.dll to /Users/mac/Projects/BindingTest/BindingTest/bin/iPhoneSimulator/Debug/BindingTest.app/System.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/Mono.Security.dll to /Users/mac/Projects/BindingTest/BindingTest/bin/iPhoneSimulator/Debug/BindingTest.app/Mono.Security.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll to /Users/mac/Projects/BindingTest/BindingTest/bin/iPhoneSimulator/Debug/BindingTest.app/System.Core.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll to /Users/mac/Projects/BindingTest/BindingTest/bin/iPhoneSimulator/Debug/BindingTest.app/System.Xml.dll
Generated /var/folders/1k/j_m1n5150kz1n6vhlf4_dkgm0000gn/T/tmp3d78ab3b.tmp/main.m
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++ -arch i386 -gdwarf-2 -fobjc-legacy-dispatch -fobjc-abi-version=2 -miphoneos-version-min=5.0 -arch i386  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator.sdk/usr/include -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -c /var/folders/1k/j_m1n5150kz1n6vhlf4_dkgm0000gn/T/tmp3d78ab3b.tmp/main.m -o /var/folders/1k/j_m1n5150kz1n6vhlf4_dkgm0000gn/T/tmp3d78ab3b.tmp/main.x86.o -DDEBUG  
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++ -arch i386 -gdwarf-2 -fobjc-legacy-dispatch -fobjc-abi-version=2 -miphoneos-version-min=5.0   -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk /var/folders/1k/j_m1n5150kz1n6vhlf4_dkgm0000gn/T/tmp3d78ab3b.tmp/main.x86.o -o /var/folders/1k/j_m1n5150kz1n6vhlf4_dkgm0000gn/T/tmp3d78ab3b.tmp/BindingTest -framework CFNetwork -framework Foundation -framework GameKit -framework MapKit -framework MediaPlayer -framework MessageUI -framework OpenGLES -framework StoreKit -framework UIKit -framework AddressBookUI -framework SystemConfiguration -framework AddressBook -framework AudioToolbox -framework AVFoundation -framework QuartzCore -framework CoreFoundation -framework CoreGraphics -framework CoreLocation -framework Security -framework CoreData -framework ExternalAccessory -weak_framework AssetsLibrary -weak_framework Accounts -weak_framework CoreBluetooth -weak_framework CoreTelephony -weak_framework EventKit -weak_framework EventKitUI -weak_framework CoreMotion -weak_framework GLKit -weak_framework NewsstandKit -weak_framework Twitter -weak_framework iAd -weak_framework CoreImage -weak_framework CoreText -weak_framework ImageIO -weak_framework CoreMedia -weak_framework CoreVideo -weak_framework QuickLook -lz -u _mono_pmip -u _CreateZStream -u _CloseZStream -u _Flush -u _ReadZStream -u _WriteZStream -liconv -lmono-2.0 -lmonotouch -L/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator.sdk/usr/lib -u _catch_exception_raise -force_load /var/folders/1k/j_m1n5150kz1n6vhlf4_dkgm0000gn/T/tmp3d78ab3b.tmp/libArcGIS.a
Process exited with code 1, command:
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++ -arch i386 -gdwarf-2 -fobjc-legacy-dispatch -fobjc-abi-version=2 -miphoneos-version-min=5.0   -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk /var/folders/1k/j_m1n5150kz1n6vhlf4_dkgm0000gn/T/tmp3d78ab3b.tmp/main.x86.o -o /var/folders/1k/j_m1n5150kz1n6vhlf4_dkgm0000gn/T/tmp3d78ab3b.tmp/BindingTest -framework CFNetwork -framework Foundation -framework GameKit -framework MapKit -framework MediaPlayer -framework MessageUI -framework OpenGLES -framework StoreKit -framework UIKit -framework AddressBookUI -framework SystemConfiguration -framework AddressBook -framework AudioToolbox -framework AVFoundation -framework QuartzCore -framework CoreFoundation -framework CoreGraphics -framework CoreLocation -framework Security -framework CoreData -framework ExternalAccessory -weak_framework AssetsLibrary -weak_framework Accounts -weak_framework CoreBluetooth -weak_framework CoreTelephony -weak_framework EventKit -weak_framework EventKitUI -weak_framework CoreMotion -weak_framework GLKit -weak_framework NewsstandKit -weak_framework Twitter -weak_framework iAd -weak_framework CoreImage -weak_framework CoreText -weak_framework ImageIO -weak_framework CoreMedia -weak_framework CoreVideo -weak_framework QuickLook -lz -u _mono_pmip -u _CreateZStream -u _CloseZStream -u _Flush -u _ReadZStream -u _WriteZStream -liconv -lmono-2.0 -lmonotouch -L/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator.sdk/usr/lib -u _catch_exception_raise -force_load /var/folders/1k/j_m1n5150kz1n6vhlf4_dkgm0000gn/T/tmp3d78ab3b.tmp/libArcGIS.a
ld: file not found: /var/folders/1k/j_m1n5150kz1n6vhlf4_dkgm0000gn/T/tmp3d78ab3b.tmp/libArcGIS.a
collect2: ld returned 1 exit status

mtouch exited with code 1

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

Build: 1 error, 0 warnings
Comment 1 kenny goers 2012-05-22 09:14:58 UTC
Attempted to give a complete solution and project for the bug submitted, I don't have a place to share it from, the size is 25MB and won't attach because of the large 3rd party library.

Contact me for the download.
Comment 2 kenny goers 2012-05-22 09:15:14 UTC
Attempted to give a complete solution and project for the bug submitted, I don't have a place to share it from, the size is 25MB and won't attach because of the large 3rd party library.

Contact me for the download.
Comment 3 kenny goers 2012-05-22 09:24:40 UTC
Even though I didn't see it listed, it looks like it is fixed in 5.2.12, I updated to the beta from the stable and the linking started working.

As I am running again, please lower the priority.
Comment 4 Sebastien Pouliot 2012-05-22 11:56:22 UTC
Kenny I don't recall a change that would fix this. 
Maybe you can share the solution with me using Google's Drive ?
Comment 5 Sebastien Pouliot 2013-06-04 21:24:03 UTC
Please re-open if this ever occurs again.