Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* perl-4.036 on OSF/1 V 2.0
@ 1994-05-31  1:16 Ken Miller
  1994-05-31 20:28 ` Mike Iglesias
  0 siblings, 1 reply; 2+ messages in thread
From: Ken Miller @ 1994-05-31  1:16 UTC (permalink / raw)


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;

-- 


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: perl-4.036 on OSF/1 V 2.0
  1994-05-31  1:16 perl-4.036 on OSF/1 V 2.0 Ken Miller
@ 1994-05-31 20:28 ` Mike Iglesias
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Iglesias @ 1994-05-31 20:28 UTC (permalink / raw)


You'll want this patch as well.

*** toke.c.pl36	Wed Mar  3 16:00:50 1993
--- toke.c	Wed Mar  3 18:25:44 1993
***************
*** 1749,1765 ****
  	    arg->arg_type = O_ITEM;
  	    arg[1].arg_type = A_DOUBLE;
  	    arg[1].arg_ptr.arg_str = str_smake(str);
! 	    d = scanident(d,bufend,buf);
  	    (void)stabent(buf,TRUE);		/* make sure it's created */
  	    for (; d < e; d++) {
  		if (*d == '\\')
  		    d++;
  		else if (*d == '$' && d[1] && d[1] != '|' && d[1] != ')') {
! 		    d = scanident(d,bufend,buf);
  		    (void)stabent(buf,TRUE);
  		}
  		else if (*d == '@') {
! 		    d = scanident(d,bufend,buf);
  		    if (strEQ(buf,"ARGV") || strEQ(buf,"ENV") ||
  		      strEQ(buf,"SIG") || strEQ(buf,"INC"))
  			(void)stabent(buf,TRUE);
--- 1749,1765 ----
  	    arg->arg_type = O_ITEM;
  	    arg[1].arg_type = A_DOUBLE;
  	    arg[1].arg_ptr.arg_str = str_smake(str);
! 	    d = scanident(d,e,buf);
  	    (void)stabent(buf,TRUE);		/* make sure it's created */
  	    for (; d < e; d++) {
  		if (*d == '\\')
  		    d++;
  		else if (*d == '$' && d[1] && d[1] != '|' && d[1] != ')') {
! 		    d = scanident(d,e,buf);
  		    (void)stabent(buf,TRUE);
  		}
  		else if (*d == '@') {
! 		    d = scanident(d,e,buf);
  		    if (strEQ(buf,"ARGV") || strEQ(buf,"ENV") ||
  		      strEQ(buf,"SIG") || strEQ(buf,"INC"))
  			(void)stabent(buf,TRUE);

-- 
Mike Iglesias                        Internet:    iglesias@draco.acs.uci.edu
University of California, Irvine     phone:       (714) 856-6926
Office of Academic Computing         FAX:         (714) 725-2069
Distributed Computing Support        


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-05-31 20:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-05-31  1:16 perl-4.036 on OSF/1 V 2.0 Ken Miller
1994-05-31 20:28 ` Mike Iglesias

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox