[Cbe-oss-dev] [PATCH 0/7] libspe2: Hide internal symbols

Christoph Hellwig hch at lst.de
Fri Jul 20 17:19:15 EST 2007


On Fri, Jul 20, 2007 at 03:49:10PM +0900, Kazunori Asayama wrote:
> It sounds good to me, and indeed I considered similar thing to your
> suggestion before. But I gave up doing that, since libspe12 (libspe
> 1.2 wrapper) refered to many of the internal symbols.
> 
> So we will need some additional works to eliminate such dependency,
> before hiding the internal symbols completely, e.g.:
> 
>   a. implement the libspe12 wrapper on the top of libspe2's external
>      interface, or
>   b. discard the libspe12 wrapper.
>
> 
> In my personal opinion, I prefer the option b, because libspe 1.x is
> deprecated and it's discouraged to continue using it, and because we
> have another more perfectly libspe1-compatible implementation for
> backward compatibility... i.e. the 'true' libspe 1.2 itself.

If we want to keep libspe12 we can introduce a LIBSPE_PRIVATE symbol
group, similar to the GLIBC_PRIVATE group used for symbols shared with
libc and libpthread (or others from the glibc family).  But as you
mentioned just getting rid of libspe12 might be a better idea.



More information about the cbe-oss-dev mailing list