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 635958 - Don't export private symbols in the library
Don't export private symbols in the library
Status: RESOLVED FIXED
Product: libnotify
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: William Jon McCann
Depends on:
Blocks:
 
 
Reported: 2010-11-27 23:15 UTC by Emilio Pozuelo Monfort
Modified: 2011-01-12 15:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Don't export private symbols in the shared library (831 bytes, patch)
2010-11-27 23:16 UTC, Emilio Pozuelo Monfort
none Details | Review
Only export notify_* symbols (834 bytes, patch)
2010-11-28 13:00 UTC, Emilio Pozuelo Monfort
committed Details | Review

Description Emilio Pozuelo Monfort 2010-11-27 23:15:39 UTC
Currently, private symbols (prefixed with an underscore) are exported in the shared library:

0000000000002ed0 T _notify_cache_add_notification
0000000000002eb0 T _notify_cache_remove_notification
0000000000002e60 T _notify_check_spec_version
0000000000002ef0 T _notify_get_proxy
0000000000004040 T _notify_notification_get_timeout
0000000000003610 T _notify_notification_has_nondefault_actions

The attached patch tells libtool to use -export-symbols-regex to not export _foo symbols.

Let me know if it's OK to push.
Comment 1 Emilio Pozuelo Monfort 2010-11-27 23:16:19 UTC
Created attachment 175391 [details] [review]
Don't export private symbols in the shared library
Comment 2 Christian Persch 2010-11-28 12:29:16 UTC
+	-export-symbols-regex "^[^_].*"

Probably better to specify which symbols should be exported, instead of which should not be exportedl. Sth like using "^notify_*".
Comment 3 Emilio Pozuelo Monfort 2010-11-28 13:00:58 UTC
Created attachment 175407 [details] [review]
Only export notify_* symbols

Sounds like a good idea. This new patch does exactly that.
Comment 4 Emilio Pozuelo Monfort 2010-12-07 16:49:57 UTC
ping? Can I push this?
Comment 5 Emilio Pozuelo Monfort 2011-01-11 23:35:35 UTC
Comment on attachment 175407 [details] [review]
Only export notify_* symbols

I've pushed this as 9d5e8582b38fd95e8aa32b427504ca9fefcb6a3c
Comment 6 Emilio Pozuelo Monfort 2011-01-11 23:35:55 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 7 André Klapper 2011-01-12 00:31:40 UTC
(In reply to comment #5)
> I've pushed this as 9d5e8582b38fd95e8aa32b427504ca9fefcb6a3c

Emilio: Where and by whom was this reviewed?
Comment 8 William Jon McCann 2011-01-12 00:53:41 UTC
He was already gently chastised on irc.  I'm assured it was tested and he'll fix any problems that arise. :)
Comment 9 Emilio Pozuelo Monfort 2011-01-12 15:24:27 UTC
Yes, I shouldn't have done that. I apoligize for it, and it won't happen again.

[ FTR: it was tested and verified to be working, and I've pushed similar changes to gnome-keyring and gnome-desktop at least. Not an excuse though, that doesn't justify my mistake ]