source: trunk/essentials/dev-lang/perl/hints/irix_5.sh

Last change on this file was 3181, checked in by bird, 18 years ago

perl 5.8.8

File size: 2.4 KB
Line 
1# irix_5.sh
2# Tue Jan 9 16:04:38 EST 1996
3# Add note about socket patch.
4#
5# Tue Jan 2 14:52:36 EST 1996
6# Apparently, there's a stdio bug that can lead to memory
7# corruption using perl's malloc, but not SGI's malloc.
8usemymalloc='n'
9
10ld=ld
11i_time='define'
12i_inttypes='undef'
13
14case "$cc" in
15*gcc*) ccflags="$ccflags -D_BSD_TYPES" ;;
16*)
17 # The warnings turned off are:
18 # 608: Undefined the ANSI standard library defined macro stderr (nostdio.h)
19 # 658: bit-field 'th_off' type required to be int, unsigned int, or signed int. <netinet/tcp.h>
20 # 734: enum declaration must contain enum literals <sys/vnode.h>
21 # 799: 'long long' is not standard ANSI.
22 ccflags="$ccflags -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 4300 -woff 608,658,734,799"
23# Without this the cc thinks that a struct timeval * is not equivalent to
24# a struct timeval *. Yeah, you read that right.
25pp_sys_cflags='ccflags="$ccflags -DPERL_IRIX5_SELECT_TIMEVAL_VOID_CAST"'
26 ;;
27esac
28
29lddlflags="-shared"
30# For some reason we don't want -lsocket -lnsl or -ldl. Can anyone
31# contribute an explanation?
32set `echo X "$libswanted "|sed -e 's/ socket / /' -e 's/ nsl / /' -e 's/ dl / /'`
33shift
34libswanted="$*"
35
36# IRIX 5.x does not have -woff for ld.
37# Don't groan about unused libraries.
38# case "$ldflags" in
39# *-Wl,-woff,84*) ;;
40# *) ldflags="$ldflags -Wl,-woff,84" ;;
41# esac
42
43# Date: Fri, 22 Dec 1995 11:49:17 -0800
44# From: Matthew Black <black@csulb.edu>
45# Subject: sockets broken under IRIX 5.3? YES...how to fix
46# Anyone attempting to use perl4 or perl5 with SGI IRIX 5.3 may discover
47# that sockets are essentially broken. The syslog interface for perl also
48# fails because it uses the broken socket interface. This problem was
49# reported to SGI as bug #255347 and it can be fixed by installing
50# patchSG0000596. The patch can be downloaded from Advantage OnLine (SGI's
51# WWW server) or from the Support Advantage 9/95 Patch CDROM. Thanks to Tom
52# Christiansen and others who provided assistance.
53
54case "$usethreads" in
55$define|true|[yY]*)
56 cat >&4 <<EOM
57IRIX `uname -r` does not support POSIX threads.
58You should upgrade to at least IRIX 6.2 with pthread patches.
59EOM
60 exit 1
61 ;;
62esac
63
64case " $use64bits $use64bitint $use64bitall " in
65*" $define "*|*" true "*|*" [yY] "*)
66 cat >&4 <<EOM
67IRIX `uname -r` does not support 64-bit types.
68You should upgrade to at least IRIX 6.2.
69Cannot continue, aborting.
70EOM
71 exit 1
72esac
73
Note: See TracBrowser for help on using the repository browser.