OSX Porting Problems

"Morgan Howe" <[email protected]> Tue, 13 Mar 2007 08:35:05 -0700
Newsgroups gmane.os.openbeos.kernel.devel
Message-ID <[email protected]>
Hey guys,

I've followed Ingo's advice on porting haiku to OSX, and have run into a few
snags.  I've set it up to use the proper build target (instead of trying to
cheat and using freebsd ;), and am still getting the following errors:

generated/cross-tools/lib/gcc/i586-pc-haiku/4.1.2/../../../../include/c++/4.1.2/new:84:
error: 'operator new' takes type 'size_t' ('long unsigned int') as first
parameter

This error actually occurs on each of the 6 definitions of operator new in
the mentioned file.  (Lines 84, 85, 88, 89, 94, 95)  Simply deleting them
does get rid of the problem, though I'm pretty sure that this is not the
best course of action.  Is there a proper way to fix this?

The second error I'm getting is this:

headers/private/kernel/util/DoublyLinkedList.h:17: error: template with C
linkage

This occurs in several places in DoublyLinkedList.h, as well as a number of
other header files (if run without the -q switch).  Apparently what this
means is that an `extern "C" {' block did not get closed prior to the
compiler running into C++ code.  I've pulled the build command for the very
first file built (Volume.o), and am manually running it to try and debug.  I
used the gcc switch -E so that only the preprocessor gets run and I can skim
through and try to find the missing closing bracket.  This is a pretty time
consuming and painful process, but hopefully it will turn up some results.
If I'm lucky it will be one header file that gets included frequently and a
single fix will take care of the problem throughout Haiku.

I suppose that does make me wonder -- why doesn't that problem occur on
Linux?  Advice on either issue is appreciated.

Regards,
Morgan

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Open-beos-kernel-devel mailing list
Open-beos-kernel-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/open-beos-kernel-devel