Ticket #142 (closed defect: fixed)

Opened 5 months ago

Last modified 5 months ago

Compilation error with libmpdclient

Reported by: maxwell Owned by: ekilfoil
Priority: minor Milestone:
Component: gui Version: 0.0
Keywords: Cc:

Description

Trying to compile the latest svn Mangler with MPD integration (and HAVE_LIBMPDCLIENT=1) gives me the following error:

manglerintegration.cpp: In member function ‘bool ManglerIntegration::update(bool, const gchar*)’:
manglerintegration.cpp:80: error: jump to case label
manglerintegration.cpp:64: error: crosses initialization of ‘mpd_song* current_song’
manglerintegration.cpp:61: error: crosses initialization of ‘int current_song_pos’
manglerintegration.cpp:52: error: crosses initialization of ‘mpd_state current_state’
manglerintegration.cpp:49: error: crosses initialization of ‘mpd_status* status’
manglerintegration.cpp:40: error: crosses initialization of ‘mpd_idle idle_status’
make[2]: *** [manglerintegration.o] Error 1

Change History

Changed 5 months ago by radu

I have exactly that, too (rev 672).
I think the issue might be the libmpdclient we're using. Let me explain:
I'm using Kubuntu Karmic, 64-bit. There's no libmpdclient in it. Installing all the dev packages related to mpd wasn't useful, as configure didn't found client.h:

checking mpd/client.h usability... no
checking mpd/client.h presence... no
checking for mpd/client.h... no

So I downloaded libmpdclient-2.1. Is this the one you used? Because without libmpdclient, the svn compiles and runs just fine.

Changed 5 months ago by ekilfoil

  • status changed from new to closed
  • resolution set to fixed

fixed in r673... still don't know if libmpd actually works because I have no way to test it, but it should at least compile now.

Changed 5 months ago by maxwell

I'm on Ubuntu Lucid, which has libmpdclient in the repo. I had the problem with both the repo and the self compiled version, but everything is working fine again now. Thanks!

Note: See TracTickets for help on using tickets.