Bug 109253

Summary: Amarok 1.4.5 doesn't compile when configured with MTP option
Product: Ports & Packages Reporter: Rechistov Grigory <ggg_mail>
Component: Individual Port(s)Assignee: Michael Landin <mich>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Rechistov Grigory 2007-02-17 09:00:11 UTC
The recent version of amarok (1.4.5) produces an error when compiling if it was configured to support MTP mediadevices (first lines of output of make):

In file included from mtpmediadevice.cpp:28:
mtpmediadevice.h:78: error: expected `)' before '*' token
mtpmediadevice.h:188: error: ISO C++ forbids declaration of `LIBMTP_album_t' with no type

As I suppose, this is due to very old version of libmtp in ports collection - 0.0.21, when the current version is 0.1.3. 
My attempt to compile libmtp 0.1.x from sources was also unsuccesful 

albumart.c: In function `main':
albumart.c:96: error: `LIBMTP_filesampledata_t' undeclared (first use in this function)

It's strange, because LIBMTP_filesampledata_t is defined in sources but I haven't yet figured out why there is an error.

So MTP support is broken at present.

How-To-Repeat: # cd /usr/ports/audio/amarok
# make rmconfig
# make config
Enable MTP support
# make
A compile error happens.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-02-17 09:52:42 UTC
Responsible Changed
From-To: freebsd-ports-bugs->mich

Over to maintainer
Comment 2 Michael Landin freebsd_committer freebsd_triage 2007-03-07 14:34:23 UTC
State Changed
From-To: open->feedback

Please try to recompile Amarok 1.4.5 with the recently committed  
libmtp-0.1.3 port installed. Thanks.
Comment 3 Michael Landin freebsd_committer freebsd_triage 2007-03-08 19:20:25 UTC
State Changed
From-To: feedback->closed

Submitter reports that problem has been resolved.