[Open Office] RE: OpenOffice.org 2.0.1 (Experimantal) issue with
-fvisibility=hidden
Devaiah, Naren
naren.devaiah at intel.com
Fri Jan 13 00:27:29 EST 2006
Martin,
The reason we have segfaults is simple.
When you say -fvisibility=hidden, GCC 4.x will by default make every
symbol no explicitly marks as 'visibile', hidden. This affects the
loader/linker because these symbols are no longer visibile to the
linker/loader when the library is loaded for relocation leading to
problems. This is specially true when doing dl_open because there is no
easy way to check if a symbol is visibile or not beforehand.
The only way to prevent this without disabling -fvisibility is to
determine all required symbols and marking them as 'visibile' (using
SAL_DLLPUBLIC macro) for example.
Granted this will be time consuming and potentially difficult, but that
is the only way I know to solve this problem given the constraints.
HTH,
Naren
>-----Original Message-----
>From: Martin Kretzschmar [mailto:martin.kretzschmar at googlemail.com]
>Sent: Thursday, January 12, 2006 9:50 AM
>To: OOo-Build; Devaiah, Naren
>Subject: Fwd: OpenOffice.org 2.0.1 (Experimantal) issue with
>-fvisibility=hidden
>
>Hi Naren,
>
>we got this report on the debian-openoffice list. As it seems to be not
>debian-specific at all and you are doing visibility stuff (IIRC), I'm
>forwarding it.
>
>So, do you know more about this, and if it's fixable without disabling
>-fvisibility
>completely?
>
>(Apologies if this was already discussed on IRC.)
>
>Regards,
>
>Martin
>
>---------- Forwarded message ----------
>From: YABUKI Yukiharu <yabuki at good-day.co.jp>
>Date: Tue, 10 Jan 2006 16:50:42 +0900
>Subject: OpenOffice.org 2.0.1 (Experimantal) issue with
>-fvisibility=hidden
>To: debian-openoffice at lists.debian.org
>
>I found a crash issue OpenOffice.org 2.0.1 in experimental.
>
>Please do not use g++(4.0) option which is "-fvisibility=hidden".
>See also:
>http://bugs.debian.org/307207
>[PR 22587] shared libraries built with -fvisibility=hidden segfaults
>
>
>When Japanse envirionment, Sometime Openoffice.org 2.0.1 crash in
>libdict_ja.so. But, I compile openoffice.org except
>"-fvisibility=hidden"
>option. libdict_ja.so is fine.
>
More information about the Openoffice
mailing list