bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gettext] gettext leaking symbols into global namespace


From: Roumen Petrov
Subject: Re: [bug-gettext] gettext leaking symbols into global namespace
Date: Sat, 24 Feb 2018 15:17:48 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0 SeaMonkey/2.30

Dr. Michael Lauer wrote:
Hi,

I’m working on macOS 10.13.x. Since libc on macOS does not have the necessary
gettext functionality, I have compiled gettext as requirement for compiling 
Glib.

When compiling GLib though, I noticed that autotools wrongly believes that my 
platform has pipe2(2).

autotools? Hmm, not so clear.

This is due to gettext leaking this (and probably other symbols from gnu-lib) 
into the global namespace.

Is there any way to prevent this?
One of the ways is gettext build to use table with export symbols.

Another way is GLib configuration to use more precise detection of libraries, functions and etc.. For instance macros like AC_CHECK_LIB and AC_SEARCH_LIBS may add library to LIBS. If this is the case configure could be updated to save LIBS before macro invocation and later to restore.


Best regards,

Mickey.


Regards,
Roumen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]