From: Andy Dougherty Date: Wed, 18 Jan 1995 02:27:49 +0000 (+0000) Subject: perl 5.000d : [hint file updates] X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f4cb4c40de81ad9c5a8e775c2298ec5a52130124;p=p5sagit%2Fp5-mst-13.2.git perl 5.000d : [hint file updates] This patch consolidates most of the hint file updates I've been collecting since perl5.000's release. Some of the updates don't make any sense until you also apply the Configure patches in patch.0g. (A few late arrivals are also in patch.0g.) --- diff --git a/hints/bsd386.sh b/hints/bsd386.sh index 8303a18..6a1b8bc 100644 --- a/hints/bsd386.sh +++ b/hints/bsd386.sh @@ -29,6 +29,3 @@ case "$osvers" in esac ;; esac - -# BSD/386 has an older header file. -DB_File_cflags='ccflags="$ccflags -DDBXS_HASH_TYPE=int -DDBXS_PREFIX_TYPE=int"' diff --git a/hints/convexos.sh b/hints/convexos.sh new file mode 100644 index 0000000..f0ce409 --- /dev/null +++ b/hints/convexos.sh @@ -0,0 +1,20 @@ +# convexos.sh +# Thanks to David Starks-Browning +# Date: Tue, 17 Jan 1995 10:45:03 -0500 (EST) +# Subject: Re: Hints for ConvexOS 10.2 +# +# uname -a output looks like +# ConvexOS xxxx C38xx 10.2 convex +# Configure may incorrectly assign $3 to $osvers. +# +set X $myuname +shift +osvers=$4 +# ConvexOS 10.2 uses POSIX process group semantics for getpgrp but +# BSD semantics for setpgrp. Perl assumes you don't have such +# a mixed system, so we undef d_getpgrp. +# Andy Dougherty doughera@lafcol.lafayette.edu +# +case "$osvers" in +10.2) d_getpgrp='undef' ;; +esac diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh index 1f9d71f..311a786 100644 --- a/hints/dec_osf.sh +++ b/hints/dec_osf.sh @@ -1,5 +1,7 @@ # hints/dec_osf.sh -optimize="-g" +case "$optimize" in +'') optimize="-g" ;; +esac ccflags="$ccflags -DSTANDARD_C -DDEBUGGING" # Version 1 has problems with -no_archive if only an archive # lib is available. diff --git a/hints/esix4.sh b/hints/esix4.sh index 6d8f266..c8dec8a 100644 --- a/hints/esix4.sh +++ b/hints/esix4.sh @@ -6,7 +6,6 @@ case "$cc" in '') cc='/bin/cc' test -f $cc || cc='/usr/ccs/bin/cc' - cccdlflags='-Kpic' ;; esac ldflags='-L/usr/ccs/lib -L/usr/ucblib' @@ -15,7 +14,6 @@ ccflags='-I/usr/include -I/usr/ucbinclude' libswanted=`echo " $libswanted " | sed -e 's/ malloc / /' ` d_index='undef' d_suidsafe=define -lddlflags="-G $ldflags" usevfork='false' if test "$osvers" = "3.0"; then d_gconvert='undef' @@ -31,9 +29,13 @@ EOM fi rm -f /tmp/esix$$ fi -# dlopen routines exist but they don't work with perl. -# The case statement allows experimenters to override hint with -# Configure -D usedl -case "$usedl" in -'') usedl="$undef" ;; -esac + +cat <<'EOM' + +If you wish to use dynamic linking, you must use + LD_LIBRARY_PATH=`pwd`; export LD_LIBRARY_PATH +or + setenv LD_LIBRARY_PATH `pwd` +before running make. + +EOM diff --git a/hints/freebsd.sh b/hints/freebsd.sh index 8a46326..4efca6a 100644 --- a/hints/freebsd.sh +++ b/hints/freebsd.sh @@ -24,5 +24,3 @@ case "$osvers" in esac # Avoid telldir prototype conflict in pp_sys.c (FreeBSD uses const DIR *) pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"' -# FreeBSD has an older header file. -DB_File_cflags='ccflags="$ccflags -DDBXS_HASH_TYPE=int -DDBXS_PREFIX_TYPE=int"' diff --git a/hints/irix_5.sh b/hints/irix_5.sh index dcbcfba..113312b 100644 --- a/hints/irix_5.sh +++ b/hints/irix_5.sh @@ -2,9 +2,6 @@ i_time='define' ccflags="$ccflags -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 3000" lddlflags="-shared" -case "$usedl" in -'') usedl='y' ;; -esac set `echo X "$libswanted "|sed -e 's/ socket / /' -e 's/ nsl / /' -e 's/ dl / /'` shift libswanted="$*" diff --git a/hints/irix_6.sh b/hints/irix_6.sh new file mode 100644 index 0000000..79363bb --- /dev/null +++ b/hints/irix_6.sh @@ -0,0 +1,38 @@ +# irix_6.sh +# from Krishna Sethuraman, krishna@mit.edu +# Date: Wed Jan 18 11:40:08 EST 1995 +# added `-32' to force compilation in 32-bit mode. +# otherwise, copied from irix_5.sh. + +# Perl built with this hints file under IRIX 6.0.1 passes +# all tests (`make test'). + +i_time='define' +cc="cc -32" +ccflags="$ccflags -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 3000" +lddlflags="-32 -shared" +set `echo X "$libswanted "|sed -e 's/ socket / /' -e 's/ nsl / /' -e 's/ dl / +/'` +shift +libswanted="$*" + +# The following might be of interest if you wish to try 64-bit mode: +# irix_6.sh +# Krishna Sethuraman, krishna@mit.edu +# This will build a 64-bit perl 5 executable under IRIX 6.x. +# I had to remove socket, sun, crypt, nsl, and dl from the +# link line because there are no 64-bit libraries with these +# names (as of IRIX 6.0.1). + +# I don't know if this will actually build a fully working perl because I +# can't tell if the symbols normally provided by these libraries +# are provided by other libraries which remain on the link line. +# In any case, perl does build with this file without unresolved +# symbol complaints. + +# i_time='define' +# ccflags="$ccflags -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 3000" +# lddlflags="-shared" +# set `echo X "$libswanted "|sed -e 's/ socket / /' -e 's/ sun / /' -e 's/ crypt / /' -e 's/ nsl / /' -e 's/ dl / /'` +# shift +# libswanted="$*" diff --git a/hints/sunos_4_1.sh b/hints/sunos_4_1.sh index 070a8e0..ba469b3 100644 --- a/hints/sunos_4_1.sh +++ b/hints/sunos_4_1.sh @@ -12,4 +12,3 @@ else # sys5 fi # we don't set gidtype because unistd.h says gid_t getgid() but man # page says int getgid() for bsd. utils.c includes unistd.h :-( - diff --git a/hints/svr4.sh b/hints/svr4.sh index c707eb8..f8536a1 100644 --- a/hints/svr4.sh +++ b/hints/svr4.sh @@ -1,9 +1,9 @@ # svr4 hints, System V Release 4.x +# Last modified 1994/12/03 by Tye McQueen, tye@metronet.com # Use Configure -Dcc=gcc to use gcc. case "$cc" in '') cc='/bin/cc' test -f $cc || cc='/usr/ccs/bin/cc' - cccdlflags='-Kpic' # Probably needed for dynamic loading ;; esac test -d /usr/local/man || mansrc='none' @@ -17,17 +17,15 @@ libswanted=`echo $libswanted | tr ' ' '\012' | egrep -v '^(malloc|ucb)$'` # -lucb: Defines setreuid() and other routines Perl wants but they don't # add any/much functionality and often won't ld properly. # -lmalloc: Anyone know what problems this caused? -if [ "" = "$i_ndbm" -a ! -f /usr/ucblib/libndbm.a ]; then -# UnixWare 1.1 may install /usr/ucbinclude/ndbm.h w/o /usr/ucblib/libndbm.a - i_ndbm="$undef" # so Configure tries to build ext/NDBM_File and ld -fi # can't find dbm_open()! "./Configure -D i_ndbm=define" overrides. -d_index='undef' -d_suidsafe=define # "./Configure -d" can't figure this out -lddlflags="-G $ldflags" # Probably needed for dynamic loading +d_index='undef' # Even if libucb.a used, use strchr() not index(). +d_suidsafe=define # "./Configure -d" can't figure this out easilly usevfork='false' -# dlopen routines exist but they don't work with perl. -# The case statement allows experimenters to override hint with -# Configure -D usedl -case "$usedl" in -'') usedl="$undef" ;; -esac +cat <<'EOM' + +If you wish to use dynamic linking, you must use + LD_LIBRARY_PATH=`pwd`; export LD_LIBRARY_PATH +or + setenv LD_LIBRARY_PATH `pwd` +before running make. + +EOM diff --git a/hints/ultrix_4.sh b/hints/ultrix_4.sh index c7a8c2c..654a6a1 100644 --- a/hints/ultrix_4.sh +++ b/hints/ultrix_4.sh @@ -1,23 +1,31 @@ -optimize=-g -tmp=`(uname -a) 2>/dev/null` -case "$tmp" in -*RISC*) cat < +# Wed Nov 2 13:41:14 EST 1994 +# +# I don't know if -g is really needed. (AD) +case "$optimize" in +'') optimize=-g ;; +esac +case "$myuname" in +*risc*) cat <