Mir

/usr/include/mirclient/mir_toolkit/events/event.h:24:32: fatal error: mir_toolkit/common.h: No such file or directory

Bug #1649696 reported by Ken VanDine
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Invalid
High
Unassigned
0.25
Invalid
High
Unassigned
mir (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

A header from libmirclient-dev has an include for a file that used to be in libmircommon-dev, which seems to have been removed in 0.25.0+16.04.20161203-0ubuntu1

libmircommon-dev=0.24.1+16.04.20160928-0ubuntu1 did have mir_toolkit/common.h

kevin gunn (kgunn72)
Changed in mir:
assignee: nobody → Brandon Schaefer (brandontschaefer)
Changed in mir (Ubuntu):
assignee: nobody → Brandon Schaefer (brandontschaefer)
Revision history for this message
Alan Griffiths (alan-griffiths) wrote : Re: [Bug 1649696]/usr/include/mirclient/mir_toolkit/events/event.h:24:32: fatal error: mir_toolkit/common.h: No such file or directory

On Tuesday, 13 December 2016 21:29:23 GMT, kevin gunn
<email address hidden> wrote:
> ** Changed in: mir
> Assignee: (unassigned) => Brandon Schaefer (brandontschaefer)
>
> ** Also affects: mir (Ubuntu)
> Importance: Undecided
> Status: New
>
> ** Changed in: mir (Ubuntu)
> Assignee: (unassigned) => Brandon Schaefer (brandontschaefer)
>

The header moved to mircore-dev, which is a dependency of miclient-dev and
mirserver-dev. Reinstall one of them.

--
Alan Griffiths. +44 (0)798 9938 758
Octopull Limited. http://www.octopull.co.uk/

Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

Testing on a fresh install of 0.25 in zesty, and content hub is building for me. Using:
0.25.0+16.04.20161203-0ubuntu1 libmirclient9
0.25.0+16.04.20161203-0ubuntu1 libmircommon7
0.25.0+16.04.20161203-0ubuntu1 libmircore1

Is there a different package you were talking about?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Confirmed, mir_toolkit/common.h has moved from libmircommon-dev to libmircore-dev, and libmirclient-dev is lacking correct dependencies on that new package. So external projects will probably fail to build since they can't find mir_toolkit/common.h

The pkg-config dependency seems to be in place already, but no deb dependency of libmirclient-dev on libmircore-dev.

A simple workaround should be to manually install libmircore-dev.

Changed in mir:
assignee: Brandon Schaefer (brandontschaefer) → nobody
importance: Undecided → High
milestone: none → 0.26.0
status: New → Triaged
assignee: nobody → Daniel van Vugt (vanvugt)
status: Triaged → In Progress
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Wait, no. libmirclient-dev depends on libmircommon-dev depends on libmircore-dev already.

So perhaps you do have common.h installed, but we're lacking correct "-Iinclude_paths" which *.pc/*.pc.in should provide.

Changed in mir:
assignee: Daniel van Vugt (vanvugt) → nobody
status: In Progress → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Ken, can you please check your project's pkg-config and ensure you're getting mircore.pc? You should be getting it automatically by indirection and that should be giving you the include path to find the new location of common.h automatically.

Please also list all your 'dpkg -l | grep mir'.

Changed in mir:
status: New → Incomplete
Changed in mir (Ubuntu):
status: New → Incomplete
assignee: Brandon Schaefer (brandontschaefer) → nobody
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

http://paste.ubuntu.com/23627055/ Xenial + O with pbuilder compiling content hub.

Is there a different package you were trying to test? I dont see any comment on it

Revision history for this message
Ken VanDine (ken-vandine) wrote :

I've confirmed that a reinstall of libmircommon-dev, libmirclient-dev and libmircore-dev seemed to have fixed it. Not sure what was up with that!

Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

Good to hear!

Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

(also strange an upgrade didnt just auto do that for you?)

Changed in mir:
status: Incomplete → Invalid
Changed in mir (Ubuntu):
status: Incomplete → Invalid
Changed in mir:
milestone: 0.26.0 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.