vala bindings: undefined reference to `APP_IS_INDICATOR'

Bug #789588 reported by Michael Hofmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Unity Foundations
Fix Released
Medium
Michal Hruby
libappindicator
Fix Released
Medium
Michal Hruby

Bug Description

The vala bindings expect a type check function "APP_IS_INDICATOR", which leads to a compile error for the attached program.

$ valac --pkg=appindicator-0.1 --pkg=gtk+-2.0 test.vala
/tmp/ccT14AUO.o: In function `main_main':
test.vala.c:(.text+0x7d): undefined reference to `APP_IS_INDICATOR'
collect2: ld returned 1 exit status
error: cc exited with status 256
Compilation failed: 1 error(s), 0 warning(s)

IMHO this is caused by the definition of "App" and "app" as cprefix/lower_case_cprefix in libappindicator.vapi.

The real type check function has the name "IS_APP_INDICATOR", and a workaround to make the bindings work is to add (type_check_function = "IS_APP_INDICATOR") to the CCode annotation of the Indicator class in the vapi file.

Related branches

Revision history for this message
Michael Hofmann (mh21) wrote :
Revision history for this message
Ted Gould (ted) wrote :

I've attached a branch which adjusts the example so that it'll confirm this bug. Though, now we need to figure out how to attach the annotation automatically. I also confirmed the fix mentioned in the bug.

Changed in libappindicator:
importance: Undecided → Medium
status: New → Confirmed
Changed in unity-foundations:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → oneiric-final
Ted Gould (ted)
Changed in unity-foundations:
assignee: nobody → Michal Hruby (mhr3)
Changed in libappindicator:
assignee: nobody → Michal Hruby (mhr3)
status: Confirmed → Fix Committed
Changed in unity-foundations:
status: Confirmed → Fix Committed
Changed in libappindicator:
milestone: none → 0.4.0
Ted Gould (ted)
Changed in libappindicator:
status: Fix Committed → Fix Released
Ted Gould (ted)
Changed in unity-foundations:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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