Issue 29347 - Enable RTTI
Summary: Enable RTTI
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: current
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: hjs
QA Contact: issues@porting
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-19 13:09 UTC by jens-heiner.rechtien
Modified: 2004-09-29 13:36 UTC (History)
1 user (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description jens-heiner.rechtien 2004-05-19 13:09:19 UTC
Enable RTTI (run time type info) via build environment.
Comment 1 jens-heiner.rechtien 2004-05-19 13:12:31 UTC
Done on CWS hr4.
Comment 2 jens-heiner.rechtien 2004-05-19 13:12:49 UTC
Verified.
Comment 3 jens-heiner.rechtien 2004-05-24 13:15:05 UTC
Closing.
Comment 4 caolanm 2004-09-15 17:36:50 UTC
This change only happened in unxlngi5.mk not in unxlngi4.mk as far as I can see.
So now in 1.9.m54 vcl uses dynamic_casts which can only work with rtti enabled.
So crash on startup with

/usr/home/cmc/office/SRC680_m54/program/libvcl680li.so(_ZN12OutputDevice25ImplDrawGradientWallpaperEllllRK9Wallpaper+0x1c0)[0x4018bc20]
/usr/home/cmc/office/SRC680_m54/program/libvcl680li.so(_ZN12OutputDevice17ImplDrawWallpaperEllllRK9Wallpaper+0x90)[0x4018beda]
/usr/home/cmc/office/SRC680_m54/program/libvcl680li.so(_ZN12OutputDevice5EraseEv+0x91)[0x4018c12d]
/usr/home/cmc/office/SRC680_m54/program/libvcl680li.so(_ZN6Window13ImplCallPaintEPK6Regiont+0x373)[0x40284b45]
/usr/home/cmc/office/SRC680_m54/program/libvcl680li.so(_ZN6Window13ImplCallPaintEPK6Regiont+0x465)[0x40284c37]
/usr/home/cmc/office/SRC680_m54/program/libvcl680li.so(_ZN6Window20ImplCallOverlapPaintEv+0x5f)[0x40284d51]
/usr/home/cmc/office/SRC680_m54/program/libvcl680li.so(_ZN6Window18ImplHandlePaintHdlEPv+0x4f)[0x40284e09]
/usr/home/cmc/office/SRC680_m54/program/libvcl680li.so(_ZN6Window26LinkStubImplHandlePaintHdlEPvS0_+0x26)[0x40284db2]
/usr/home/cmc/office/SRC680_m54/program/libvcl680li.so(_ZN5Timer7TimeoutEv+0x1f)[0x400e998b]
/usr/home/cmc/office/SRC680_m54/program/libvcl680li.so(_Z21ImplTimerCallbackProcv+0x83)[0x400e9693]
Comment 5 pavel 2004-09-16 23:33:50 UTC
hjs: because hr is on vacation.

Confirmed - the same stack here.
Comment 6 pavel 2004-09-17 09:31:20 UTC
This fixed the problem:

--- unxlngi4.mk.~1.28.~	2004-09-15 00:29:25.000000000 +0200
+++ unxlngi4.mk	2004-09-17 00:30:28.000000000 +0200
@@ -110,7 +110,7 @@
 # Flags for disabling exception handling
 CFLAGS_NO_EXCEPTIONS=-fno-exceptions
 
-CFLAGSCXX= -pipe $(ARCH_FLAGS) -fno-rtti
+CFLAGSCXX= -pipe $(ARCH_FLAGS)
 
 # HACK: enable Hamburg developers to build on glibc-2.2 machines but compile
vs. glibc-2.1 headers
 .IF "$(BUILD_SPECIAL)"==""
Comment 7 hjs 2004-09-17 17:44:53 UTC
removed "-fno-rtti" from unxlngi4.mk
Comment 8 hjs 2004-09-17 17:45:53 UTC
.
Comment 9 hjs 2004-09-29 13:36:09 UTC
.