This article is from the MachTen & CodeBuilder FAQ, by Jaime Julca firstname.lastname@example.org with numerous contributions by others.
G3.a. Where are the 48-bit random number generating functions (srand48,
These functions are part of UNIX System V. Since MachTen is BSD, these
functions are not included.
G3.b. Why doesn't gprof tell me anything useful about gcc generated code?
Gprof does not work for any version of gcc right now. We are working to
G3.c. Why can't I get STL containers to work with g++ 2.7.2?
G++'s template support isn't quite up to the task yet. FSF thinks g++ 2.8.0
will be able to fully utilize the STL.
G3.d. How do I use gcc math functions?
The math functions aren't in the libraries that are included by default when
you compile. Try
% cc test.c -lm
to include the math libraries.
G3.e. Where are the xdr libraries in MachTen?
They are included in CU1 for Power MachTen, which is on the PowerPC Ported
Apps CD and on our FTP site.
G3.f. I live outside the US and I need crypt.h to compile a program. Where
Due to munitions export regulations, it was not possible to include this
with MachTen for foreign distribution. You should have no problem finding
crypt.h on a non-US FTP site.
G3.g. When I run perl 5.003 under Power MachTen it seems that I'm missing
some essential libraries. What's the fix?
Perl 5.003 source, binaries, and the necessary libraries are included on the
PowerPC Ported Apps CD and on our FTP site.
G3.h. How do I update GNAT on CodeBuilder from 3.07 to 3.09?
Download the file
ftp://cs.nyu.edu/pub/gnat/powermac/. Move it
to your CodeBuilder_HFS directory. Start up CodeBuilder and log in as root.
Change to the /hfs directory and run
dfork -i gnat3.09-Codebuilder_ppc.tar.gz
tar -zxvf /hfs/gnat3.09-Codebuilder-ppc.tar.gz
Now you may have to rebuild your Ada libraries, to do so:
gcc -c -gnatp /usr/include/ada/MacOS/*.ad[sb]
This should only take a few minutes inside the FFS.
G3.i. Can a stand alone Mac application use the Tenon libraries for a hybrid
application that makes MacOS API calls and Mach calls without the
CodeBuilder environment running?
No, the calls could be made, but they rely on the interprocess communication
to talk to the Mach microkernel. Without this microkernel process, they
won't work. Technically, some calls might, but most of them will really need
to have CodeBuilder (or MachTen) running.
G3.j. Will apps written for or ported to MachTen/CodeBuilder run under
MachTen supports the same APIs as Rhapsody's core OS, so anything that runs
on MachTen will be able to run on Rhapsody.