Article View: comp.sources.bugs
Article #254#include bug in Perl 3.0.6
From: Kevin O'Gorman
Date: Tue, 28 Nov 1989 19:41
Date: Tue, 28 Nov 1989 19:41
28 lines
1342 bytes
1342 bytes
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 <sys/time.h> - #ifdef I_TIMETOO - #include <time.h> - #endif - #else - #include <time.h> - #ifdef I_SYSTIMETOO - #include <time.h> <-- this is the line I deleted. - #endif - #endif - - #include <sys/times.h>
Technical Details
Message-ID:
<1035@kosman.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!srhqla!nrcvax!kosman!kevinShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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