This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hello, We are having run time problems with the code built in gcc version 3.2.1 on solaris systems. However the same source code works fine with gcc version 2.95.3 and other compilers like VC++. Brief synopsis about the code:- There are two dynamically loaded libraries. An object ( PS_MyMsg ) is created in one of the library (my_msg_lib.cpp) and "smart" pointer ( PCA_Ptr<IPSMessage> ) to one of object's interfaces is passed on to the other library(my_pac_lib.cpp). The second library (my_pac_lib.cpp) tries to cast this pointer to another interface ( PCA_Ptr<IPSMsgParameters> ) of that object and fails. There is a commented section in my_main.cpp (class RuntimeSite). This section does the same casting as the second library(my_pac_lib.cpp). If this section is uncommented, casting succeeds here and in such case, casting succeeds in the second library (my_pac_lib.cpp) too. If this section is commented then the test fails to cast in the second library (my_pac_lib.cpp). I'm attaching a zipped file which contains .cpp and .h files. It also has a small "make_me" file. Instructions to view the problem:- 1. unzip the files to any directory. 2. run make_me. This will generate two .so files and my_test executable. 3. run my_test and it fails to do dynamic casting. 4. The same set of files could be built with gcc version 2.95.3 and run successfully. The following are configuration information about the compiler and the system:- gcc --v Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/specs Configured with: ../configure --disable-nls --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld Thread model: posix gcc version 3.2.1 uname -a SunOS hamp 5.8 Generic_108528-07 sun4u sparc SUNW,Ultra-60 If you need any clarifications please contact either of the following: Rosa Lisin email:rlisin@pactolus.com Lokesh email:lchandra@pactolus.com Thanks in advance Platform group Pactolus Communication Software 69 Milk St Suite 308 Westborough MA 01581 Tel: 508 616 0900 www.pactolus.com <<lib_test_mod.tar.gz>>
Attachment:
lib_test_mod.tar.gz
Description: Binary data
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |