From owner-freebsd-current@FreeBSD.ORG Tue Jun 3 01:01:59 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B622837B401; Tue, 3 Jun 2003 01:01:59 -0700 (PDT) Received: from bluejay.mail.pas.earthlink.net (bluejay.mail.pas.earthlink.net [207.217.120.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C48A43F3F; Tue, 3 Jun 2003 01:01:59 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from user-2ivfj2f.dialup.mindspring.com ([165.247.204.79] helo=mindspring.com) by bluejay.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19N6jy-0003KT-00; Tue, 03 Jun 2003 01:01:55 -0700 Message-ID: <3EDC55A4.774728E1@mindspring.com> Date: Tue, 03 Jun 2003 01:00:36 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Martin Blapp , kan@freebsd.org, freebsd-current@freebsd.org, "M. Warner Losh" References: <20030602180313.S71313@cvs.imp.ch> <3EDC53B7.A6AF5A60@mindspring.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a42d9572b2fc6bd3a28946c5acd853e49293caf27dac41a8fd350badd9bab72f9c350badd9bab72f9c Subject: Re: OpenOffice-devel: repeatable coredump with sun autodocinlibstd++ X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2003 08:02:00 -0000 Terry Lambert wrote: > Martin Blapp wrote: > > > -frtti is required for dynamic_cast(expr) to work. so if it is > > > broken, then you've got big problems. > > > > Lokks like you are definitly right: > > > > grep dynamic `find ./ -name "*.c*"` > > ./source/ary/cpp/c_class.cxx: ary::cpp::Display * pD = dynamic_cast< > > ary::cpp::Display* >(&o_rOut); > > [ ... ] > > I have seen this type of error and core dump with a new C++ > and old rtti header files. Make sure you are not mixing them, > since these header files definitely have to match the compiler. BTW: On older FreeBSD, you can't use a ports C++ to compile C++ code, since bsd.prog.mk and bsd.lib.mk reset the include path and will get you the older headers all the time, if DESTDIR is set, which it will be. If you are using a ports C++, then to see if you have this problem, type the following: cd /usr/share/mk grep include/g++ * If you see: bsd.lib.mk:CXXINCLUDES+= -I${DESTDIR}/usr/include/g++ bsd.prog.mk:CXXINCLUDES+= -I${DESTDIR}/usr/include/g++ Then you have the problem. This is fixed in 5.x; I'm not sure if it has been MFC'ed into more recent -stable, or not (i.e. it may not be a problem on 4.8; the above is from a 4.6 system). -- Terry