On Thu, 15 Nov 2001, James Mastros wrote:
> Hey all.
> This implements a platforms system similar to what we were discussing
> earlier: each interface is a sepperate file, independent of the others, the
> hints file specifies what interfaces we use. This does create a large
> number of files, but minimizes code copying. All the peices are cated
> (effectively) together into a platform.c file. (We could make this a
> platform.h, if we want stuff to inline more easily.)
>
> It's given as a diff against Configure.pl, and tarballs of the hints and
> platforms directories.
Did you actually test this? It gave me a lot of annoying little problems
on Solaris. This was with a fresh checkout today.
1. The patch has both platform/whatever/*.* and
platform/platform/whatever/*.*, but doesn't fix up MANIFEST at all.
I got rid of the redundant platform/platform directories.
I don't know if the existing platform/'generic' files are to stay or go.
I guessed they stay.
2. Using perl5.00503, I get:
Use of reserved word "our" is deprecated at Configure.pl line 65.
Global symbol "%c" requires explicit package name at Configure.pl line 65.
Execution of Configure.pl aborted due to compilation errors.
So I removed the 'our'.
3. Next, I get:
Nobody has rewritten the "hints" file for your platform yet,
and nobody has written the configuration guesser yet. Write a
file hints/solaris.pl, using the existing files as examples
if your platform is fairly normal, it shouldn't be too hard.
So I wrote a hints/solaris.pl file.
4. Now Configure dies with:
"./include/parrot/parrot.h", line 28: cannot find include file: "parrot/platform.h"
cc: acomp failed for testparrotsizes.c
C compiler died! at Configure.pl line 363.
Even fiddling around with that, Makefile still seemed to want to build
platform.h somehow, but didn't know how.
--
Andy Dougherty [EMAIL PROTECTED]
Dept. of Physics
Lafayette College, Easton PA 18042