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

Bug#577961: libstdc++6-4.5-dev: Using some part of the STL increase the linkage requirement



On 15/04/2010 17:04, Vincent Danjean wrote:
> The STL emits a weak pthread_cancel symbols into the object file of the main program.
> 
> I'm not sure this is a bug because I understand what happens. But it seems strange to me
> that libraries required for an application depends on libraries linked to libraries
> linked to the application...
> It seems to me that this behavior defeat one goal of using weak symbols.
> 
> What do you think ?

  Some more thoughts:
- if the linkage of the mymain with libpthread is not required, why g++-4.5
  requires it ? => it would be a bug in g++-4.5
- if the linkage is required, then this means that the linkage of a library
  is part of its ABI. Ie, the soname of a library A must change when
  the list of libraries (B, C, ...) that A links with changes, even
  if no types or symbols of libraries B, C, ... are exported by the library A.
  => dh_makeshlibs/dh_shlibdeps should be adapted

> 
>   Regards,
>     Vincent


-- 
Vincent Danjean       GPG key ID 0x9D025E87         vdanjean@debian.org
GPG key fingerprint: FC95 08A6 854D DB48 4B9A  8A94 0BF7 7867 9D02 5E87
Unofficial packages: http://moais.imag.fr/membres/vincent.danjean/deb.html
APT repo:  deb http://perso.debian.org/~vdanjean/debian unstable main




Reply to: