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 777484 - while building pygobject buildis failing at compiling regress.c
while building pygobject buildis failing at compiling regress.c
Status: RESOLVED OBSOLETE
Product: gobject-introspection
Classification: Platform
Component: general
1.51.x
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-01-19 09:13 UTC by Anoop Chandu
Modified: 2018-02-08 12:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
added declaration for regress_test_fundamental_hidden_sub_object_get_type (1.15 KB, patch)
2017-01-19 09:23 UTC, Anoop Chandu
none Details | Review
tests: fix compilation with -Werror=missing-prototypes (888 bytes, patch)
2017-01-23 20:26 UTC, Lionel Landwerlin
none Details | Review
Static declaration added (840 bytes, patch)
2017-02-01 12:57 UTC, Anoop Chandu
none Details | Review

Description Anoop Chandu 2017-01-19 09:13:20 UTC
When building pygobject it is showing error while compiling /jhbuild/install/share/gobject-introspection-1.0/tests/regress.c due undeclared regress_test_fundamental_hidden_sub_object_get_type(). compiler is showing this as error and build is stopped.
 This is tested on master right now.
Comment 1 Anoop Chandu 2017-01-19 09:23:42 UTC
Created attachment 343785 [details] [review]
added declaration for regress_test_fundamental_hidden_sub_object_get_type

added declaration for regress_test_fundamental_hidden_sub_object_get_type
Comment 2 Emmanuele Bassi (:ebassi) 2017-01-23 19:22:44 UTC
Review of attachment 343785 [details] [review]:

I'm not sure what the point of the test is...

::: tests/scanner/regress.c
@@ +3446,3 @@
 
+_GI_TEST_EXTERN
+GType regress_test_fundamental_hidden_sub_object_get_type(void);

This is meant to be a hidden type, so it should not be an extern symbol.

@@ +3449,3 @@
+
+#define _regress_test_fundamental_hidden_sub_object_get_type \
+  regress_test_fundamental_hidden_sub_object_get_type

You're reversing how this works.
Comment 3 Lionel Landwerlin 2017-01-23 20:26:41 UTC
Created attachment 344071 [details] [review]
tests: fix compilation with -Werror=missing-prototypes

I'm not too familiar with how the scanner works.
What we want to avoid is to add Gir data for RegressTestFundamentalHiddenSubObject. So maybe just adding a prototype works?
Comment 4 Emmanuele Bassi (:ebassi) 2017-01-23 21:55:39 UTC
If the type is public then it's not hidden. :-)
Comment 5 Anoop Chandu 2017-02-01 12:57:56 UTC
Created attachment 344707 [details] [review]
Static declaration added

Emmanuele Bassi: Now I added static declaration and didn't reverse macro definition. I think this wont expose "_regress_test_fundamental_hidden_sub_object_get_type" globally.
Comment 6 GNOME Infrastructure Team 2018-02-08 12:44:43 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/169.