Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!dali!milton!uw-beaver!sumax!amc-gw!thebes!campbell From: campbell@Thalatta.COM (Bill Campbell) Newsgroups: comp.unix.xenix Subject: Re: Please help me make Perl under Xenix Message-ID: <4266@thebes.Thalatta.COM> Date: 27 May 90 19:33:09 GMT References: <1990May27.010055.5591@dasys1.uucp> Reply-To: campbell@Thalatta.COM (Bill Campbell) Organization: Thalatta Corporation, Bellevue WA Lines: 33 In article <1990May27.010055.5591@dasys1.uucp> tbetz@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 does some typedefs that are duplicated in . I removed the duplicated typedef from and inserted an #include in the 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