diff options
author | Andy Dougherty <doughera@lafcol.lafayette.edu> | 1995-06-05 02:03:44 +0000 |
---|---|---|
committer | Andy Dougherty <doughera@lafcol.lafayette.edu> | 1995-06-05 02:03:44 +0000 |
commit | c296029969658ed2c8d9a223d4b09026463ca970 (patch) | |
tree | aa1524c2a7ae100bfbfcb083cf37a7626aeab87b /hints | |
parent | 16d20bd98cd29be76029ebf04027a7edd34d817b (diff) | |
download | perl-c296029969658ed2c8d9a223d4b09026463ca970.tar.gz |
This is my patch patch.1j for perl5.001.
To apply, change to your perl directory and apply with
patch -p1 -N < thispatch.
After you apply this patch, I would recommend:
rm config.sh
sh Configure [whatever options you use]
make depend
make
make test
Here are the highlights:
Linux fixes: Now correctly sets & uses stdio _ptr and _cnt
tricks only when feasible (Configure, config_h.SH, config_H,
doio.c, sv.c x2p/str.c)
#!path-to-perl fixed to use $binexp instead of $bin. This should
really be fixed to do the correct perl start-up stuff. Volunteers?
(c2ph.SH, h2ph.SH, h2xs.SH, makeaperl.SH, perldoc.SH,
pod/pod2*.SH, x2p/find2perl.SH, x2p/s2p.SH)
hint updates: hints/apollo.sh, hints/linux.sh, hints/freebsd.sh,
hints/sco_3.sh.
xsubpp version 1.7. (includes CASE support)
pod/perlbot updates.
my lib/AutoLoader patch (to use @INC).
[ON]DBM_File/Makefile.PL now have a few hint files.
Other sundry small things.
Patch and enjoy,
Andy Dougherty doughera@lafcol.lafayette.edu
Dept. of Physics
Lafayette College Easton, PA 18042
Here's the file-by-file breakdown of what's included:
Configure
Checks if File_ptr(fp) and File_cnt(fp) can be assigned to.
Fix typo: s/sytem/system/
MANIFEST
Include new extension hint files.
README
Some clarifications, thanks to John Stoeffel. Tell users how to
not use dynamic loading.
c2ph.SH
Use $binexp instead of $bin.
config_H
Updated to match config_h.SH.
config_h.SH
Include defines for whether File_ptr(fp) and File_cnt(fp)
can be assigned to.
doio.c
Use defines for whether File_ptr(fp) and File_cnt(fp) can be assigned to.
ext/DynaLoader/DynaLoader.pm
Improve error messages and a little documentation.
ext/NDBM_File/hints/solaris.pl
New hint file.
ext/ODBM_File/Makefile.PL
Removed -ldbm.nfs, since it's now in the sco hint file.
ext/ODBM_File/hints/sco.pl
ext/ODBM_File/hints/solaris.pl
ext/ODBM_File/hints/svr4.pl
New hint files.
h2ph.SH
h2xs.SH
Use $binexp instead of $bin.
hints/apollo.sh
hints/freebsd.sh
hints/linux.sh
hints/sco_3.sh
Updated.
lib/AutoLoader.pm
Eliminate else clause in sub import.
Handle case where @INC contains relative paths.
lib/ExtUtils/xsubpp
Update to version 1.7. This includes CASE support.
lib/I18N/Collate.pm
Updated documentation.
lib/ftp.pl
Look for socket.ph or sys/socket.ph
lib/getcwd.pl
Use defined().
makeaperl.SH
Use $binexp instead of $bin.
perl.c
fputs("\tUnofficial patchlevel 1j.\n",stdout);
perldoc.SH
Use $binexp instead of $bin.
Turn off debugging messages.
pod/perlbot.pod
Updated.
pod/pod2html.SH
pod/pod2latex.SH
pod/pod2man.SH
Use $binexp instead of $bin.
sv.c
Use defines for whether File_ptr(fp) and File_cnt(fp) can be assigned to.
toke.c
Fix spelling of ambiguous.
x2p/find2perl.SH
x2p/s2p.SH
Use $binexp instead of $bin.
x2p/str.c
Use defines for whether File_ptr(fp) and File_cnt(fp) can be assigned to.
Diffstat (limited to 'hints')
-rw-r--r-- | hints/apollo.sh | 35 | ||||
-rw-r--r-- | hints/freebsd.sh | 6 | ||||
-rw-r--r-- | hints/linux.sh | 27 | ||||
-rw-r--r-- | hints/sco_3.sh | 4 |
4 files changed, 56 insertions, 16 deletions
diff --git a/hints/apollo.sh b/hints/apollo.sh index dd06084c3f..2618039634 100644 --- a/hints/apollo.sh +++ b/hints/apollo.sh @@ -1,6 +1,20 @@ -optimize='' -ccflags='-A cpu,mathchip -W0,-opt,2' +# Info from Johann Klasek <jk@auto.tuwien.ac.at> +# Merged by Andy Dougherty <doughera@lafcol.lafayette.edu> +# Last revised Fri Jun 2 11:21:27 EDT 1995 +# uname -a looks like +# DomainOS newton 10.4.1 bsd4.3 425t + +# We want to use both BSD includes and some of the features from the +# /sys5 includes. +ccflags="$ccflags -A cpu,mathchip -I/usr/include -I/sys5/usr/include" + +# These adjustments are necessary (why?) to compile malloc.c. +freetype='void' +i_malloc='undef' +malloctype='void *' + +# This info is left over from perl4. cat <<'EOF' Some tests may fail unless you use 'chacl -B'. Also, op/stat test 2 may fail occasionally because Apollo doesn't guarantee @@ -8,6 +22,8 @@ that mtime will be equal to ctime on a newly created unmodified file. Finally, the sleep test will sometimes fail. See the sleep(3) man page to learn why. +See hints/apollo.sh for hints on running h2ph. + And a note on ccflags: Lastly, while -A cpu,mathchip generates optimal code for your DN3500 @@ -18,3 +34,18 @@ And a note on ccflags: -- Steve Vinoski EOF + +# Running h2ph, on the other hand, presents a challenge. + +#The perl header files have to be generated with following commands + +#sed 's|/usr/include|/sys5/usr/include|g' h2ph >h2ph.new && chmod +x h2ph.new +#(set cdir=`pwd`; cd /sys5/usr/include; $cdir/h2ph.new sys/* ) +#(set cdir=`pwd`; cd /usr/include; $cdir/h2ph * sys/* machine/*) + +#The SYS5 headers (only sys) are overlayed by the BSD headers. It seems +#all ok, but once I am going into details, a lot of limitations from +#'h2ph' are coming up. Lines like "#define NODEV (dev_t)(-1)" result in +#syntax errors as converted by h2ph. + +# Generally, h2ph might need a lot of help. diff --git a/hints/freebsd.sh b/hints/freebsd.sh index c3a9830a89..74bae055bf 100644 --- a/hints/freebsd.sh +++ b/hints/freebsd.sh @@ -33,7 +33,7 @@ case "$osvers" in ;; 1.1*) d_dlopen="$define" cccdlflags='-DPIC -fpic' - lddlflags='-Bshareable $lddlflags' + lddlflags="-Bshareable $lddlflags" malloctype='void *' groupstype='int' d_setregid='undef' @@ -44,7 +44,7 @@ case "$osvers" in 2.0-RELEASE*) d_dlopen="$define" cccdlflags='-DPIC -fpic' - lddlflags='-Bshareable $lddlflags' + lddlflags="-Bshareable $lddlflags" d_setregid='undef' d_setreuid='undef' d_setrgid='undef' @@ -58,7 +58,7 @@ case "$osvers" in 2.0.5*|2.0-BUILD|2.1*) d_dlopen="$define" cccdlflags='-DPIC -fpic' - lddlflags='-Bshareable $lddlflags' + lddlflags="-Bshareable $lddlflags" # Are these defines necessary? Doesn't Configure find them # correctly? d_setregid='define' diff --git a/hints/linux.sh b/hints/linux.sh index 66c28dc01c..b8dbc25698 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -80,8 +80,8 @@ else You don't have an ELF gcc. I will use dld if possible. If you are using a version of DLD earlier than 3.2.6, or don't have it at all, you should probably upgrade. If you are forced to use 3.2.4, you should -uncomment a couple of lines in hints/linux.sh and rerun Configure to -disallow shared libraries. +uncomment a couple of lines in hints/linux.sh and restart Configure so +that shared libraries will be disallowed. EOM lddlflags="-r $lddlflags" @@ -96,23 +96,28 @@ EOM #ldflags="-static" #so='none' fi -rm -rf try.c a.out -case "$BASH_VERSION" in -1.14.3*) - cat <<'EOM' +rm -f try.c a.out -If you get failure of op/exec test #5 during the test phase, you probably -have a buggy version of bash. Upgrading to a recent version (1.14.4 or -later) should fix the problem. +if /bin/bash -c exit; then + echo You appear to have a working bash. Good. +else + cat << 'EOM' +Warning: it would appear you have a defective bash shell installed. This is +likely to give you a failure of op/exec test #5 during the test phase of the +build, Upgrading to a recent version (1.14.4 or later) should fix the +problem. EOM -;; -esac + +fi # In addition, on some systems there is a problem with perl and NDBM, which # causes AnyDBM and NDBM_File to lock up. This is evidenced in the tests as # AnyDBM just freezing. Currently we disable NDBM for all linux systems. # If someone can suggest a more robust test, that would be appreciated. +# This will generate a harmless message: +# Hmm...You had some extra variables I don't know about...I'll try to keep 'em. +# Propagating recommended variable d_dbm_open d_dbm_open=undef diff --git a/hints/sco_3.sh b/hints/sco_3.sh index 11682e1968..daf3aec008 100644 --- a/hints/sco_3.sh +++ b/hints/sco_3.sh @@ -39,3 +39,7 @@ usenm='false' # If you want to use nm, you'll probably have to use nm -p. The # following does that for you: nm_opt='-p' + +# I have received one report that you can't include utime.h in +# pp_sys.c. Uncomment the following line if that happens to you: +# i_utime=undef |