Awn

previous definition of `PanelConnector' was here (building 0.6 bzr)

Bug #583546 reported by Graham Rogers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Awn
Fix Released
Undecided
Unassigned

Bug Description

I am attempting to build awn from the 0.6 branch and came upon this error:

awn-panel-connector.vapi:6.2-6.46: error: `Awn' already contains a definition for `PanelConnector'
 public interface PanelConnector : GLib.Object {
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
awn-panel-connector.vala:23.3-23.41: note: previous definition of `PanelConnector' was here
  public interface PanelConnector: Object
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compilation failed: 1 error(s), 0 warning(s)
make[2]: *** [awn-panel-connector.c] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Looking in the two files, it seems there is a mismatch in the definition of the interace 'PanelConnector'. In awn-panel-connector.vapi it is "public interface PanelConnector : GLib.Object", however in awn-panel-connector.vala it is "public interface PanelConnector : Object"

Changing the second definition to use GLib.Object allowed me to finish the build.

Revision history for this message
Michal Hruby (mhr3) wrote :

0.6 branch doesn't like parallel build, I think that's the issue you're actually seeing... Still what vala version are you using?

Changed in awn:
status: New → Incomplete
Revision history for this message
Graham Rogers (grogers3-14) wrote :

It seems to be fixed now. Maybe in a recent revision, I'm not sure. My vala version is 0.8.1, though it is probably not required now.

Changed in awn:
status: Incomplete → Fix Released
Revision history for this message
Michal Hruby (mhr3) wrote :

It's not fixed, as I said it's a problem in the build system, sometimes it'll work, other times not, we need to fix it.

Changed in awn:
status: Fix Released → Triaged
Revision history for this message
Graham Rogers (grogers3-14) wrote :

Your right see http://aur.archlinux.org/packages.php?ID=12294 - sometimes it works, sometimes it doesn't.

I have just looked in the branch and it does seem that the difference is there i.e. GLib.Object in the .vapi and Object in the .vala. Are they meant to be different, or does one of them need to be changed?

Revision history for this message
Michal Hruby (mhr3) wrote :

The vala code is fine, build system is screwed...

Still, 0.6 branch is highly experimental, (mostly) stable development is still going on in 0.4/trunk branch. Making 0.6 packages/aur is not a good idea at this point.

Povilas Kanapickas (p12)
Changed in awn:
status: Triaged → Fix Released
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.