[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Still problems with gcc 3.4 and visibility
From:       Michael Pyne <pynm0001 () comcast ! net>
Date:       2004-11-29 2:33:59
Message-ID: 200411282133.59130.pynm0001 () comcast ! net
[Download RAW message or body]

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@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@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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic