bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: update gettext to handle expat-2.0.0


From: Mike Frysinger
Subject: Re: update gettext to handle expat-2.0.0
Date: Tue, 4 Apr 2006 22:47:46 -0400
User-agent: KMail/1.9.1

On Tuesday 04 April 2006 07:43, Bruno Haible wrote:
> Mike Frysinger wrote:
> > the trouble is the x-glade.c file tries to dlopen "libexpat.so.0" which
> > will obviously fail on systems that only have expat-2.0.0 ... would it be
> > safe to change the code to just dlopen("libexpat.so") or should it be
> > changed to read something like:
> > void *handle = dlopen ("libexpat.so.1", RTLD_LAZY);
> > if (handle == NULL)
> >     handle = dlopen ("libexpat.so.0", RTLD_LAZY);
>
> There is a reason why they changed the major version number of the library:
> Its binary API changed (functions were removed or function signatures
> changed or function return types were changed).

well the ABI changed in some way, but i didnt really look into why ...

> You cannot simply ignore 
> these changes and use whatever version of the library is found - except if
> by luck gettext was not using the API portions that were changed (which is
> not the case).

i just simply assumed the ABI changes didnt affect the functions gettext 
utilizes ... clearly that assumption made an ass out of someone ;)

> Find attached a patch.

thanks, i'll give it a run
-mike




reply via email to

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