After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 661947 - banshee does not compile against current libgpod
banshee does not compile against current libgpod
Status: RESOLVED DUPLICATE of bug 655660
Product: banshee
Classification: Other
Component: Device - iPod
2.2.x
Other Linux
: Normal enhancement
: ---
Assigned To: Banshee Maintainers
Banshee Maintainers
: 673432 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-10-16 23:14 UTC by Christian Krause
Modified: 2012-04-03 14:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to fix the issue (1.07 KB, patch)
2011-10-16 23:14 UTC, Christian Krause
none Details | Review

Description Christian Krause 2011-10-16 23:14:34 UTC
Created attachment 199160 [details] [review]
patch to fix the issue

current behavior:
banshee does not compile against current libgpod release 0.8.2:

how to reproduce:
- compile banshee with ipod / appledevice support
- in my case: latest official mono release 2.10.6

current behavior:
[...]
Making all in Banshee.Dap.AppleDevice
/usr/bin/gmcs -define:RELEASE -nowarn:0278 -nowarn:0078 -debug -target:library -out:../../../bin/Banshee.Dap.AppleDevice.dll -r:../../../bin/Banshee.Core.dll -r:../../../bin/Banshee.Dap.dll -r:../../../bin/Banshee.Services.dll -r:../../../bin/Banshee.ThickClient.dll -r:../../../bin/Banshee.Widgets.dll -r:../../../bin/Hyena.Data.Sqlite.dll -r:../../../bin/Hyena.Gui.dll -r:../../../bin/Hyena.dll -r:../../../bin/Lastfm.dll -r:../../../bin/Mono.Media.dll -r:../../../bin/MusicBrainz.dll -r:/usr/lib/libgpod/libgpod-sharp.dll -r:/usr/lib/mono/dbus-sharp-1.0/dbus-sharp.dll -r:/usr/lib/mono/dbus-sharp-glib-1.0/dbus-sharp-glib.dll -r:/usr/lib/mono/gtk-sharp-2.0/atk-sharp.dll -r:/usr/lib/mono/gtk-sharp-2.0/gdk-sharp.dll -r:/usr/lib/mono/gtk-sharp-2.0/glib-sharp.dll -r:/usr/lib/mono/gtk-sharp-2.0/gtk-sharp.dll -r:/usr/lib/mono/gtk-sharp-2.0/pango-sharp.dll -r:/usr/lib/mono/mono-addins/Mono.Addins.Setup.dll -r:/usr/lib/mono/mono-addins/Mono.Addins.dll -r:/usr/lib/mono/taglib-sharp/taglib-sharp.dll -r:ICSharpCode.SharpZipLib -r:Mono.Cairo -r:Mono.Posix -r:System -resource:./Banshee.Dap.AppleDevice.addin.xml,Banshee.Dap.AppleDevice.addin.xml ./Banshee.Dap.AppleDevice/AppleDeviceSource.cs ./Banshee.Dap.AppleDevice/AppleDeviceTrackInfo.cs ../../../src/AssemblyInfo.cs
./Banshee.Dap.AppleDevice/AppleDeviceTrackInfo.cs(218,24): error CS0266: Cannot implicitly convert type `int' to `uint'. An explicit conversion exists (are you missing a cast?)
Compilation failed: 1 error(s), 0 warnings
make[4]: *** [../../../bin/Banshee.Dap.AppleDevice.dll] Error 1

According to libgpod's API the type of Track.Size seems to be "uint" instead of "int":

libgpod/bindings/mono/libgpod-sharp/Track.cs:
[...]
  public uint             Size                            { get { return ((Itdb_Track *) Native)->size; }
                                                           set { ((Itdb_Track *) Native)->size = value; } }
[...]

The issue is in release 2.2 as well as in git head. I have attached a patch to fix the problem.
Comment 1 Andrés G. Aragoneses (IRC: knocte) 2011-10-16 23:38:59 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 655660 ***
Comment 2 Andrés G. Aragoneses (IRC: knocte) 2012-04-03 14:58:18 UTC
*** Bug 673432 has been marked as a duplicate of this bug. ***