Please help me make Perl under Xenix

Bill Campbell campbell at Thalatta.COM
Mon May 28 05:33:09 AEST 1990


In article <1990May27.010055.5591 at dasys1.uucp> tbetz at dasys1.UUCP (Tom Betz) writes:
>I'm trying unsuccessfully to compile Perl 3.0, PL 8, under Xenix
>2.3.1.  I have the PL4 Xenix patch, but it seems to break later
>patches, so I have not installed it.  
>
>The make is failing while trying to compile dolist.c with
>repetetive "error C2037: left of 'tm_*' specifies undefined
>struct/union" messages, where '*' is replaced with
>'sec','min','hour','mday','mon','year','wday','yday', and 'isdat'.
>
...deleted

The problem is somewhat buggy include files in xenix, particularly 
<time.h> does some typedefs that are duplicated in <sys/types.h>.
I removed the duplicated typedef from <time.h> and inserted an
#include <sys/types.h> in the <time.h> file.

This requires that you put ``wrappers'' on all your include files
so that it doesn't matter if they are included more than once:

#ifndef H_FILENAME	/*{*/
#define H_FILENAME
. body of include
#endif /* H_FILENAME }*/

Where H_FILENAME is unique to each include file.  This allows you
to include the file more than once without problems since the
second time through the first ifndef is false.
-- 
....microsoft--\                    Bill Campbell; Celestial Software
...uw-entropy----!thebes!camco!bill 6641 East Mercer Way
....fluke------/                    Mercer Island, Wa 98040
....hplsla----/                     (206) 232-4164



More information about the Comp.unix.xenix mailing list