Re: Need help setting up XCode project to port Solaris libraries
Re: Need help setting up XCode project to port Solaris libraries
- Subject: Re: Need help setting up XCode project to port Solaris libraries
- From: Philip Aker <email@hidden>
- Date: Thu, 16 Nov 2006 14:27:47 -0800
On 2006-11-16, at 12:14:19, Rick Mann wrote:
I thought there was documentation online addressing these kinds of
issues, but I really couldn't find it. I found some stuff for
porting Unix projects to Mac OS X, but that doesn't include the use
of XCode.
I'm working on a port of a Solaris project, and part of that
requires porting a little library called nvpair. If I can figure
out the best way to port this little library, then others should go
more easily.
nvpair in Solaris is made up of the following files:
usr/src/common/nvpair/nvpair.c
usr/src/common/nvpair/nvpair_alloc_system.c
usr/src/uts/common/sys/nvpair.h
usr/src/lib/libnvpair/libnvpair.h
usr/src/lib/libnvpair/libnvpair.c
As one might expect, libnvpair.c includes "libnvpair.h", which in
turn include <sys/nvpair.h>.
The problem is that nvpair.c includes things like <sys/varargs.h>
and <stdarg.h>.
Rick,
You might want to check whether or not varargs is necessary on recent
versions of OS X. For instance, I seem to recall it's been let go
from the Tcl source files (reason being stdarg now includes all the
functionality needed in Tcl). Secondly, I think the include would be
simply <varargs.h>.
I don't know how to properly (by "properly" I also mean a best-
practices kind of way) include files and configure search paths in
XCode to use the Mac OS X versions of these files when they exist,
and to use the Solaris versions, which I will include in my port,
when they don't.
Obviously, while I can make changes to the source files to
accommodate the differences in the Mac OS X versions of common
functionality, the fewer changes, the better (someday I'd love to
give these changes back to the Solaris community).
Thanks for all your help!
Philip Aker
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden