Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!srhqla!nrcvax!kosman!kevin From: kevin@kosman.UUCP (Kevin O'Gorman) Newsgroups: comp.sources.bugs Subject: #include bug in Perl 3.0.6 Message-ID: <1035@kosman.UUCP> Date: 28 Nov 89 19:41:55 GMT Organization: K.O.'s Manor - Vital Computer Systems, Oxnard, CA 93035 Lines: 28 I just updated my Perl to patchlevel 6. I ran into a bug I didn't see when it was patchlevel 1. In compiling perl.c, my compiler (gcc 1.35) choked on a redefinition of struct tm in the include file time.h. I tracked it down to some convoluted #ifdef-ing in perl.h. I fixed it by removing a line in perl.h. I think I have reconstructed it correctly below, but in any event the only change was to delete the flagged line (which I may not have restored exactly -- if so, you can easily tell). Everything else worked as expected: four files had to be compiled by hand because my 3b1 doesn't have enough virtual memory for the gcc optimizer in full cry, but 'make test' is now completely clean. - #if defined(TMINSYS) || defined(I_SYSTIME) - #include - #ifdef I_TIMETOO - #include - #endif - #else - #include - #ifdef I_SYSTIMETOO - #include <-- this is the line I deleted. - #endif - #endif - - #include