Re: C++ code in a kernel module?

2003-09-09 Thread Peter Jeremy
On Mon, Sep 08, 2003 at 11:12:59PM -0400, Alexander Kabaev wrote: On Mon, 8 Sep 2003 23:02:33 -0400 Matthew Emmerton [EMAIL PROTECTED] wrote: I've been silently following this thread, and unless I missed something, has anyone asked John why he wants/needs to use C++ in the kernel? Tools, not

Re: OpenBFS (was Re: C++ code in a kernel module?)

2003-09-09 Thread Doug Barton
On Mon, 8 Sep 2003, Pedro F. Giffuni wrote: Hi; Attached is a good reasons why someone my want to use C++ in the kernel. Sorry, I don't see anything here except this is all we know how to do. But, I'm a curmudgeon. :) Doug -- This .signature sanitized for your protection

Re: C++ code in a kernel module?

2003-09-09 Thread John Giacomoni
On Tuesday, Sep 9, 2003, at 00:29 America/Denver, Peter Jeremy wrote: On Mon, Sep 08, 2003 at 11:12:59PM -0400, Alexander Kabaev wrote: On Mon, 8 Sep 2003 23:02:33 -0400 Matthew Emmerton [EMAIL PROTECTED] wrote: I've been silently following this thread, and unless I missed something, has anyone

Re: C++ code in a kernel module?

2003-09-09 Thread Justin C. Walker
On Tuesday, September 9, 2003, at 08:58 AM, John Giacomoni wrote: On Tuesday, Sep 9, 2003, at 00:29 America/Denver, Peter Jeremy wrote: On Mon, Sep 08, 2003 at 11:12:59PM -0400, Alexander Kabaev wrote: On Mon, 8 Sep 2003 23:02:33 -0400 Matthew Emmerton [EMAIL PROTECTED] wrote: [snip] simple, I

Re: C++ code in a kernel module?

2003-09-09 Thread Fred Gilham
I don't know about __gxx_personaility_v0, but your best bet is to look at the .o's and find where it is referenced. Then back track it to what function, then to what construct and go from there. The __gxx_personality_v0 stuff is actually related to distinguishing between C++ and Java

Re: OpenBFS (was Re: C++ code in a kernel module?)

2003-09-09 Thread Pedro F. Giffuni
--- Doug Barton [EMAIL PROTECTED] wrote: On Mon, 8 Sep 2003, Pedro F. Giffuni wrote: Hi; Attached is a good reasons why someone my want to use C++ in the kernel. Sorry, I don't see anything here except this is all we know how to do. But, I'm a curmudgeon. :) To be good in C++ you

Re: C++ code in a kernel module?

2003-09-09 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Matthew Emmerton [EMAIL PROTECTED] writes: : I've been silently following this thread, and unless I missed something, has : anyone asked John why he wants/needs to use C++ in the kernel? I refrained from posting the name of a good neurologist in Boulder

Re: C++ code in a kernel module?

2003-09-09 Thread Jordan K Hubbard
I can't believe nobody has yet suggested that FreeBSD switch to IOKit... On Sep 9, 2003, at 12:38 PM, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Matthew Emmerton [EMAIL PROTECTED] writes: : I've been silently following this thread, and unless I missed something, has :

Re: C++ code in a kernel module?

2003-09-09 Thread Vaclav Haisman
Apart from -fno-rtti and -fno-exceptions you will probably need to use also -ffreestanding. Excerpt from gcc man page: -ffreestanding Assert that compilation takes place in a freestanding environment. This implies -fno-builtin. A freestanding environment is one in

C++ code in a kernel module?

2003-09-08 Thread John Giacomoni
How would one go about creating a kernel module which utilizes C++ code? I was planning on using the macro __cplusplus to toggle using extern C { }, however the bsd.kmod.mk style Makefiles seem to force the language to -std=c99 even when compiling with c++ . my initial steps have been as follows

Re: C++ code in a kernel module?

2003-09-08 Thread Enache Adrian
On Mon, Sep 08, 2003 a.d., John Giacomoni wrote: as long as I do not make any calls into kernel functions things seem to work (load), however when I make a call to mtx_init then on load i get the following error: __gxx_personality_v0 undefined. thoughts/ideas/suggestions? That's nice. Your

Re: C++ code in a kernel module?

2003-09-08 Thread Raunchy McSmutbag
would a -static when compiling fix it? From: Enache Adrian [EMAIL PROTECTED] To: John Giacomoni [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: C++ code in a kernel module? Date: Mon, 8 Sep 2003 23:48:43 +0300 MIME-Version: 1.0 Received: from mx2.freebsd.org ([216.136.204.119]) by mc10-f22

Re: C++ code in a kernel module?

2003-09-08 Thread M. Warner Losh
In message: [EMAIL PROTECTED] John Giacomoni [EMAIL PROTECTED] writes: : How would one go about creating a kernel module which utilizes : C++ code? That's a tough row to hoe. : I was planning on using the macro __cplusplus to toggle using : extern C { }, however the bsd.kmod.mk

Re: C++ code in a kernel module?

2003-09-08 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Raunchy McSmutbag [EMAIL PROTECTED] writes: : would a -static when compiling fix it? no. There are big issues that one needs to know about. C++ in the kernel is hard at best. Warner ___ [EMAIL PROTECTED]

Re: C++ code in a kernel module?

2003-09-08 Thread Alexander Kabaev
On Mon, 8 Sep 2003 11:35:37 -0600 John Giacomoni [EMAIL PROTECTED] wrote: I was planning on using the macro __cplusplus to toggle using extern C { }, however the bsd.kmod.mk style Makefiles seem to force the language to -std=c99 even when compiling with c++ . my initial steps have been

Re: C++ code in a kernel module?

2003-09-08 Thread Matthew Emmerton
On Mon, 8 Sep 2003 11:35:37 -0600 John Giacomoni [EMAIL PROTECTED] wrote: I was planning on using the macro __cplusplus to toggle using extern C { }, however the bsd.kmod.mk style Makefiles seem to force the language to -std=c99 even when compiling with c++ . my initial steps have

Re: C++ code in a kernel module?

2003-09-08 Thread Alexander Kabaev
On Mon, 8 Sep 2003 23:02:33 -0400 Matthew Emmerton [EMAIL PROTECTED] wrote: I've been silently following this thread, and unless I missed something, has anyone asked John why he wants/needs to use C++ in the kernel? Tools, not policy :) -- Alexander Kabaev

OpenBFS (was Re: C++ code in a kernel module?)

2003-09-08 Thread Pedro F. Giffuni
Hi; Attached is a good reasons why someone my want to use C++ in the kernel. cheers, Pedro. (FWIW, OpenBFS is under an MIT license) _ http://open-beos.sourceforge.net/tms/team.php?id=2 OpenBFS, as all file systems under BeOS, is being developed as a kernel add-on.