Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where to start?



On Monday, March 25, 2002, at 06:27  PM, email@hidden wrote:

I would like to get this program running on OS X:

http://tree.sourceforge.net/

Now the question is where do I start?  Is there a cookbook someplace
listing the steps one needs to take to do this "porting?"  Tutorials?
Recommendations on a good book?  Any help pointing me in the right
direction will be greatly appreciated.  First step is to get it running
from the terminal; integrating with a Cocoa application comes later.
Thanks all.

Unfortunately, it doesn't use automake/autoconf/libtool-- the port would then be trivial.Tree is set up for two architectures-- linux and hpux.

On a lark, I tried to port it using the linux architecture-- got to start somewhere...

The Makefile.config is setup to use gcc and g++. These should be changed to cc and c++.

The source errors are grouped roughly into three categories
1. Most source files need to include <sys/errno.h>-- otherwise the compiler complains about errno not being defined.
2. Calls to lockf need to be translated into calls to flock. This is probably trivial, although I
don't have experience with this
3. A bunch of files include <sys/resources.h> without including <sys/time.h>-- resulting in errors about timeval being undefined.


You will need the gdbm library form somewhere. Fink has a port. I wasn't able to resolve
the various linking issues-- my guess is that job is nontrivial.


Jeremy Erwin
<email@hidden>
_______________________________________________
unix-porting mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/unix-porting
Do not post admin requests to the list. They will be ignored.



References: 
 >Where to start? (From: email@hidden)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.