Still problems with gcc 3.4 and visibility

Michael Pyne pynm0001 at comcast.net
Mon Nov 29 02:33:59 GMT 2004


On Sunday 28 November 2004 07:04 am, you wrote:
> Since you're listing kded_walled.so, this are how they're supposed to; the
> symbols are imported. Please list libkdeinit_kded.so, which is where the
> symbol is supposed to be:
>
> $ readelf -a /usr/local/kde3/lib/libkdeinit_kded.so | grep TI10KDEDModule
> 00021b44  00021801 R_386_32          00021be0   _ZTI10KDEDModule
> 00021ba4  00021801 R_386_32          00021be0   _ZTI10KDEDModule
>    536: 00021be0    32 OBJECT  WEAK   DEFAULT   21 _ZTI10KDEDModule
>    641: 00021be0    32 OBJECT  WEAK   DEFAULT   21 _ZTI10KDEDModule
>
> The important thing isn't the object's weakness, but its visibility. In
> this case, it's exported ("default").

OK, here it is:

With -fvisibility=hidden
kde-cvs at broadway kdelibs $ readelf -a 
~/kdecvs/temp-build/kdelibs/kded/.libs/libkdeinit_kded.so | grep 
TI10KDEDModule
000198e4  00012401 R_386_32          00019980   _ZTI10KDEDModule
00019944  00012401 R_386_32          00019980   _ZTI10KDEDModule
   292: 00019980    32 OBJECT  WEAK   DEFAULT   14 _ZTI10KDEDModule
  1138: 00019980    32 OBJECT  WEAK   DEFAULT   14 _ZTI10KDEDModule

With -fvisibility=default
kde-cvs at broadway kdelibs $ readelf -a ~/kde/lib/libkdeinit_kded.so | grep 
TI10KDEDModule
00015804  00012401 R_386_32          000158a0   _ZTI10KDEDModule
00015864  00012401 R_386_32          000158a0   _ZTI10KDEDModule
   292: 000158a0    32 OBJECT  WEAK   DEFAULT   14 _ZTI10KDEDModule
  1092: 000158a0    32 OBJECT  WEAK   DEFAULT   14 _ZTI10KDEDModule

So they appear to both have the same visibility now.  So again, I probably 
screwed up somewhere along the way the first time I tried it. :(

Regards,
 - Michael Pyne




More information about the kde-core-devel mailing list