From owner-freebsd-hackers Tue Nov 13 14:25:49 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from avocet.prod.itd.earthlink.net (avocet.mail.pas.earthlink.net [207.217.120.50]) by hub.freebsd.org (Postfix) with ESMTP id A4E3737B416 for ; Tue, 13 Nov 2001 14:25:46 -0800 (PST) Received: from dialup-209.245.141.251.dial1.sanjose1.level3.net ([209.245.141.251] helo=mindspring.com) by avocet.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 163lzy-0005qO-00; Tue, 13 Nov 2001 14:25:42 -0800 Message-ID: <3BF19E14.C6105E35@mindspring.com> Date: Tue, 13 Nov 2001 14:26:28 -0800 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "PSI, Mike Smith" Cc: hackers@freebsd.org Subject: Re: C++ and ISO sockets References: <3BF179CA.14EC4554@mitre.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "PSI, Mike Smith" wrote: > I am using FreeBSD 3.2 (no comments please - I've given plenty of > "comments" to the powers that be without results). I am currently > rewriting it in C to determine if C++ may be the problem. > > Any clues?? The GCC in FreeBSD 3.2 does not support per thread exception stacks; this is most likely your problem. Jeremy Allison (of SAMBA) may still have a copy of the patch that he and I did to fix this for that version of C++. Alternately, you will need to install the latest version of GCC, in particular, to get the crt0.o stuff that does the per thread exception stack registration. Note that if you do this, you will need to work to add the patchs to the installed new C++ header files if you are using BSD .mk files to build your code, since it overrides the paths with the system paths (this is abug in FreeBSD's .mk file system) if DESTDIR is set. This is required to support RTTI, among other things needed for reasonable exception handling. You will have to hack the compiler definition line in your Makefile to put the explicit path first for the includes and the library paths (ugly; but it works around the FreeBSD .mk file bug). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message