bug-gettext
[Top][All Lists]
Advanced

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

0.22: symbol redirection change


From: Christian Weisgerber
Subject: 0.22: symbol redirection change
Date: Tue, 4 Jul 2023 16:34:47 +0200

libintl implements a symbol redirection scheme where the gettext
function names are prefixed with "libintl_" by way of preprocessor
magic in libintl.h.  Prior to 0.22, both the prefixed and unprefixed
symbols were present in libintl.  Starting with 0.22, the unprefixed
symbols are gone.  (I haven't actually found the corresponding
source change.)

This now causes configure scripts that directly check for gettext
symbols to fail.  A glaring example is python, which fails to build.
More insidious is a silent function loss where configure scripts
simply disable NLS support.  There is no telling just how many
configure scripts in circulation are affected.

I assume the issue is hidden on platforms that have gettext in libc,
but it affects those that don't, e.g. OpenBSD.

A fix on the affected platforms might be to disable symbol redirection
altogether in libintl.h.  Of course there are at least a few configure
scripts out there that already check for a prefixed symbol name...

./net/swirc.log:checking for libintl_setlocale()...no
./www/goaccess.log:checking for libintl_dgettext in -lintl... yes
./x11/gnustep/base.log:checking for libintl_fprintf in -lintl... no

Bug #64323 by fxcoudert reports the same issue.

As the packager for gettext on OpenBSD, I would appreciate some
guidance in this matter.

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de



reply via email to

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