source: trunk/third/perl/hints/irix_5.sh @ 14545

Revision 14545, 1.6 KB checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r14544, which included commits to RCS files with non-trunk default branches.
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'
12
13case "$cc" in
14*gcc*) ccflags="$ccflags -D_BSD_TYPES" ;;
15*) ccflags="$ccflags -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 4000" ;;
16esac
17
18lddlflags="-shared"
19# For some reason we don't want -lsocket -lnsl or -ldl.  Can anyone
20# contribute an explanation?
21set `echo X "$libswanted "|sed -e 's/ socket / /' -e 's/ nsl / /' -e 's/ dl / /'`
22shift
23libswanted="$*"
24
25# Date: Fri, 22 Dec 1995 11:49:17 -0800
26# From: Matthew Black <black@csulb.edu>
27# Subject: sockets broken under IRIX 5.3? YES...how to fix
28# Anyone attempting to use perl4 or perl5 with SGI IRIX 5.3 may discover
29# that sockets are essentially broken.  The syslog interface for perl also
30# fails because it uses the broken socket interface.  This problem was
31# reported to SGI as bug #255347 and it can be fixed by installing
32# patchSG0000596.  The patch can be downloaded from Advantage OnLine (SGI's
33# WWW server) or from the Support Advantage 9/95 Patch CDROM.  Thanks to Tom
34# Christiansen and others who provided assistance.
35
36case "$usethreads" in
37$define|true|[yY]*)
38        cat >&4 <<EOM
39IRIX `uname -r` does not support POSIX threads.
40You should upgrade to at least IRIX 6.2 with pthread patches.
41EOM
42        exit 1
43        ;;
44esac
45
46case " $use64bits $use64bitint $use64bitall " in
47*" $define "*|*" true "*|*" [yY] "*)
48        cat >&4 <<EOM
49IRIX `uname -r` does not support 64-bit types.
50You should upgrade to at least IRIX 6.2.
51Cannot continue, aborting.
52EOM
53        exit 1
54esac
55
Note: See TracBrowser for help on using the repository browser.