After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 779835 - Error: undefined symbol: atspi_table_cell_get_row_index
Error: undefined symbol: atspi_table_cell_get_row_index
Status: RESOLVED FIXED
Product: at-spi
Classification: Platform
Component: at-spi2-core
unspecified
Other Linux
: Normal major
: ---
Assigned To: At-spi maintainer(s)
At-spi maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-03-10 06:14 UTC by Joanmarie Diggs (IRC: joanie)
Modified: 2017-03-13 22:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Joanmarie Diggs (IRC: joanie) 2017-03-10 06:14:07 UTC
When I call Atspi.TableCell.get_row_index(), I get the following error:

GLib.Error: g-invoke-error-quark: Could not locate atspi_table_cell_get_row_index: 'atspi_table_cell_get_row_index': /lib64/libatspi.so.0: undefined symbol: atspi_table_cell_get_row_index (1)

I can, however, get the gi.FunctionInfo for the method. I'm not (thus far) seeing this issue with other TableCell interface methods (e.g. Atspi.TableCell.get_column_index().
Comment 1 Joanmarie Diggs (IRC: joanie) 2017-03-10 06:15:41 UTC
Steps to reproduce (in Python3 console):

>>> from gi.repository import Atspi
>>> Atspi.TableCell.get_row_index
gi.FunctionInfo(get_row_index)
>>> Atspi.TableCell.get_row_index()
Traceback (most recent call last):
  • File "<stdin>", line 1 in <module>
GLib.Error: g-invoke-error-quark: Could not locate atspi_table_cell_get_row_index: 'atspi_table_cell_get_row_index': /lib64/libatspi.so.0: undefined symbol: atspi_table_cell_get_row_index (1)

If you try the same with get_column_index, you get the appropriate TypeError due to lack of argument, but the symbol is not undefined.
>>> Atspi.TableCell.get_column_index
gi.FunctionInfo(get_column_index)
>>> Atspi.TableCell.get_column_index()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: Atspi.TableCell.get_column_index() takes exactly 1 argument (0 given)
Comment 2 Mike Gorse 2017-03-13 22:23:35 UTC
There were a few problems. Neither GetRowIndex nor GetColumnIndex are implemented in at-spi2-atk. Instead, there is a GetPosition that returns the row and the column.
atspi_table_cell_get_position was implemented but was missing a prototype.
I've added a prototype and removed atspi_table_cell_get_column_index; it wouldn't have worked anyway.
Calling Atspi.TableCell.get_position should get you what you need.
Comment 3 Joanmarie Diggs (IRC: joanie) 2017-03-13 22:35:38 UTC
Thanks Mike! Any chance you could put the fix in 3.22 and roll a new release when you next have a chance?