From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3c8171f385a9c4f0,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-05-30 18:22:38 PST Path: gmd.de!nntp.gmd.de!Germany.EU.net!EU.net!uunet!usc!elroy.jpl.nasa.gov!netline-fddi.jpl.nasa.gov!nntp-server.caltech.edu!isis.klab.caltech.edu!ken From: ken@isis.klab.caltech.edu (Ken Miller) Newsgroups: comp.unix.osf.osf1 Subject: perl-4.036 on OSF/1 V 2.0 Date: 31 May 1994 01:16:35 GMT Organization: California Institute of Technology Message-ID: <2se35j$62n@gap.cco.caltech.edu> NNTP-Posting-Host: isis.klab.caltech.edu sinder@rrz.uni-koeln.de (Andreas Sindermann) writes: >Has anyone successfully compiled perl-4.036 on OSF/1 V2.0 (or even better >on T3.0)? Here's some patches that leads to compilation without significant warnings and passing of 'make test' of OSF1 V2.0. Probably not all strictly necessary, but anyhow, they work. Grabbed some from the net, added others of my own. Ken Miller ken@phy.ucsf.edu ---------------------------------------------------------------------------- CUT THIS LINE AND ALL ABOVE IT. *** perl.h.orig Thu Oct 07 10:02:39 1993 --- perl.h Thu Oct 07 09:49:34 1993 *************** *** 684,690 **** --- 684,694 ---- #ifdef CASTNEGFLOAT #define U_S(what) ((unsigned short)(what)) #define U_I(what) ((unsigned int)(what)) + # ifndef __alpha #define U_L(what) ((unsigned long)(what)) + # else + # define U_L(what) ((unsigned int)(what)) + # endif #else unsigned long castulong(); #define U_S(what) ((unsigned int)castulong(what)) *************** *** 1029,1035 **** --- 1033,1043 ---- #ifndef STANDARD_C /* All of these are in stdlib.h or time.h for ANSI C */ double atof(); + #ifdef __alpha + time_t time(); + #else long time(); + #endif struct tm *gmtime(), *localtime(); char *index(), *rindex(); char *strcpy(), *strcat(); *** eval.c.orig Fri May 27 02:54:19 1994 --- eval.c Fri May 27 02:55:02 1994 *************** *** 1671,1677 **** --- 1671,1681 ---- goto donumset; case O_TIME: #ifndef lint + #ifndef __alpha value = (double) time(Null(long*)); + #else + value = (double) time(Null(time_t *)); + #endif #endif goto donumset; case O_TMS: *** doio.c.orig Fri May 27 03:16:19 1994 --- doio.c Fri May 27 03:26:30 1994 *************** *** 291,297 **** #endif ) { int buflen = sizeof tokenbuf; ! if (getsockname(fileno(fp), tokenbuf, &buflen) >= 0 || errno != ENOTSOCK) stio->type = 's'; /* some OS's return 0 on fstat()ed socket */ /* but some return 0 for streams too, sigh */ --- 291,297 ---- #endif ) { int buflen = sizeof tokenbuf; ! if (getsockname(fileno(fp), (struct sockaddr *)tokenbuf, &buflen) >= 0 || errno != ENOTSOCK) stio->type = 's'; /* some OS's return 0 on fstat()ed socket */ /* but some return 0 for streams too, sigh */ *************** *** 1448,1454 **** #ifdef TAINT taintproper("Insecure dependency in bind"); #endif ! return bind(fileno(stio->ifp), addr, st[sp]->str_cur) >= 0; nuts: if (dowarn) --- 1448,1454 ---- #ifdef TAINT taintproper("Insecure dependency in bind"); #endif ! return bind(fileno(stio->ifp), (struct sockaddr *)addr, st[sp]->str_cur) > = 0; nuts: if (dowarn) *************** *** 1479,1485 **** #ifdef TAINT taintproper("Insecure dependency in connect"); #endif ! return connect(fileno(stio->ifp), addr, st[sp]->str_cur) >= 0; nuts: if (dowarn) --- 1479,1485 ---- #ifdef TAINT taintproper("Insecure dependency in connect"); #endif ! return connect(fileno(stio->ifp), (struct sockaddr *)addr, st[sp]->str_cur ) >= 0; nuts: if (dowarn) *************** *** 1670,1680 **** fd = fileno(stio->ifp); switch (optype) { case O_GETSOCKNAME: ! if (getsockname(fd, st[sp]->str_ptr, (int*)&st[sp]->str_cur) < 0) goto nuts2; break; case O_GETPEERNAME: ! if (getpeername(fd, st[sp]->str_ptr, (int*)&st[sp]->str_cur) < 0) goto nuts2; break; } --- 1670,1680 ---- fd = fileno(stio->ifp); switch (optype) { case O_GETSOCKNAME: ! if (getsockname(fd, (struct sockaddr *)st[sp]->str_ptr, (int*)&st[sp]->s tr_cur) < 0) goto nuts2; break; case O_GETPEERNAME: ! if (getpeername(fd, (struct sockaddr *)st[sp]->str_ptr, (int*)&st[sp]->s tr_cur) < 0) goto nuts2; break; } *** util.c.orig Fri May 27 03:29:40 1994 --- util.c Fri May 27 03:31:03 1994 *************** *** 575,586 **** } else { s = bigend - littlelen; ! if (*s == *little && bcmp(s,little,littlelen)==0) return (char*)s; /* how sweet it is */ else if (bigend[-1] == '\n' && little[littlelen-1] != '\n' && s > big) { s--; ! if (*s == *little && bcmp(s,little,littlelen)==0) return (char*)s; } return Nullch; --- 575,586 ---- } else { s = bigend - littlelen; ! if (*s == *little && bcmp((char *)s,(char *)little,littlelen)==0) return (char*)s; /* how sweet it is */ else if (bigend[-1] == '\n' && little[littlelen-1] != '\n' && s > big) { s--; ! if (*s == *little && bcmp((char *)s,(char *)little,littlelen)==0 ) return (char*)s; } return Nullch; --