From 4aa0a1f7324b8447469670a1b2427c3ac2428bae Mon Sep 17 00:00:00 2001 From: Andy Dougherty Date: Tue, 6 Jun 1995 01:41:07 +0000 Subject: This is my patch patch.1l for perl5.001. To apply, change to your perl directory, run the command above, then apply with patch -p1 -N < thispatch. This patch fixes all the Configure & build problems for which I have a solution. After you apply this patch, I would recommend: make distclean # or at the very least rm config.sh sh Configure [whatever options you use] make depend make make test Patch and enjoy, Andy Dougherty doughera@lafcol.lafayette.edu Dept. of Physics Lafayette College, Easton PA 18042 Here are the file-by-file contents: Changes.Conf Updated a bit. Configure Now honors hints on -related things (for CX/UX, in particular). Now honors previous values of d_stdio_ptr_lval and d_stdio_cnt_lval. DB test programs now conditionally include 'const'. MANIFEST Updated. config_H Updated. config_h.SH Include trailing /**/ on STDIO_..._LVALUE defines. hints/cxux.sh Simplified. Include info about failing test. hints/epix.sh A guess at a dynamic loading fix. hints/next_3.sh Add a few comments. lib/Benchmark.pm Ensure numeric context on number of loop iterations. op.c Spider's padlex and goto &$nonesuch patches. perl.c fputs("\tUnofficial patchlevel 1l.\n",stdout); pp_ctl.c pp_hot.c scope.c Spider's padlex and goto &$nonesuch patches. --- hints/cxux.sh | 33 +++++++++++---------------------- hints/epix.sh | 2 ++ hints/next_3.sh | 41 +++++++++++++++++++++++++++++++++++++++++ hints/next_3_2.sh | 38 -------------------------------------- 4 files changed, 54 insertions(+), 60 deletions(-) create mode 100644 hints/next_3.sh delete mode 100644 hints/next_3_2.sh (limited to 'hints') diff --git a/hints/cxux.sh b/hints/cxux.sh index 4946d0b05a..66608decef 100644 --- a/hints/cxux.sh +++ b/hints/cxux.sh @@ -75,30 +75,10 @@ ccdlflags='-Zelf -Zlink=dynamic -Wl,-Bexport -u sigaction' lddlflags='-Zlink=so' # Configure imagines that it sees a pw_quota field, but it is really in a -# different structure than the one it thinks it is looking at. WARNING: -# Setting this here in the hints file doesn't help. You need to fix this by -# editing config.sh after Configure asks you to fix things with a shell -# escape! (Maybe Configure should actually try to compile a routine to -# test each field, but what a pain that would be...). -# -# Perhaps I should create a config.over file and add this to it now? -# +# different structure than the one it thinks it is looking at. d_pwquota='undef' -echo '' -echo '' -echo WARNING: Edit config.sh when Configure offers to let you do so at the -echo end of the configuration process and manually change d_pwquota from -echo define to undef \(or you may want to create a config.over file now\). -echo '' -echo '' - -# The following silly shell variable is set just so it will be printed out -# immediately prior to asking the user to edit config.sh :-). -# -dont_forget_to_fix_d_pwquota_in_config_to_be_undef="really" - -# Configure sometime finds what it believes to be ndbm header files on the +# Configure sometimes finds what it believes to be ndbm header files on the # system and imagines that we have the NDBM library, but we really don't. # There is something there that once resembled ndbm, but it is purely # for internal use in some tool and has been hacked beyond recognition @@ -110,3 +90,12 @@ i_ndbm='undef' # d_mymalloc='undef' usemymalloc='n' + +cat <<'EOM' + +You will get a failure on lib/posix.t test 16 because ungetc() on +stdin does not work if no characters have been read from stdin. +If you type a character at the terminal where you are running +the tests, you can fool it into thinking it worked. + +EOM diff --git a/hints/epix.sh b/hints/epix.sh index 9fd5c90e3f..25e357328f 100644 --- a/hints/epix.sh +++ b/hints/epix.sh @@ -61,6 +61,8 @@ if [ -r /usr/ucblib/libucb.a ]; then # If using BSD-compat. library: fi lddlflags="-G $ldflags" # Probably needed for dynamic loading +# We _do_ want the -L paths in ldflags, but we don't want the -non_shared. +lddlflags=`echo $lddlflags | sed 's/-non_shared//'` cat <<'EOM' >&4 diff --git a/hints/next_3.sh b/hints/next_3.sh new file mode 100644 index 0000000000..7db901c738 --- /dev/null +++ b/hints/next_3.sh @@ -0,0 +1,41 @@ +# This file has been put together by Anno Siegel +# and Andreas Koenig . Comments, questions, and +# improvements welcome! +# +# These hints work for NeXT 3.2 and 3.3. 3.0 has it's own +# special hint file. + +ccflags='-DUSE_NEXT_CTYPE' +POSIX_cflags='ccflags="-posix $ccflags"' +ldflags='-u libsys_s' +libswanted='dbm gdbm db' + +lddlflags='-r' +# Give cccdlflags an empty value since Configure will detect we are +# using GNU cc and try to specify -fpic for cccdlflags. +cccdlflags=' ' + +i_utime='undef' +groupstype='int' +direntrytype='struct direct' +d_strcoll='undef' +# the simple program `for ($i=1;$i<38771;$i++){$t{$i}=123}' fails +# with Larry's malloc on NS 3.2 due to broken sbrk() +usemymalloc='n' +d_uname='define' +d_setpgid='define' +d_setsid='define' +d_tcgetpgrp='define' +d_tcsetpgrp='define' +# +# On some NeXT machines, the timestamp put by ranlib is not correct, and +# this may cause useless recompiles. Fix that by adding a sleep before +# running ranlib. The '5' is an empirical number that's "long enough." +# (Thanks to Andreas Koenig ) +ranlib='sleep 5; /bin/ranlib' +# +# There where reports that the compiler on HPPA machines +# fails with the -O flag on pp.c. +if [ `arch` = "hppa" ]; then +pp_cflags='optimize="-g"' +fi diff --git a/hints/next_3_2.sh b/hints/next_3_2.sh deleted file mode 100644 index 887082e2f3..0000000000 --- a/hints/next_3_2.sh +++ /dev/null @@ -1,38 +0,0 @@ -# This file has been put together by Anno Siegel -# and Andreas Koenig . Comments, questions, and -# improvements welcome! -ccflags='-DUSE_NEXT_CTYPE' -POSIX_cflags='ccflags="-posix $ccflags"' -ldflags='-u libsys_s' -libswanted='dbm gdbm db' - -lddlflags='-r' -# Give cccdlflags an empty value since Configure will detect we are -# using GNU cc and try to specify -fpic for cccdlflags. -cccdlflags=' ' - -i_utime='undef' -groupstype='int' -direntrytype='struct direct' -d_strcoll='undef' -# the simple program `for ($i=1;$i<38771;$i++){$t{$i}=123}' fails -# with Larry's malloc on NS 3.2 due to broken sbrk() -usemymalloc='n' -d_uname='define' -d_setpgid='define' -d_setsid='define' -d_tcgetpgrp='define' -d_tcsetpgrp='define' -# -# On some NeXT machines, the timestamp put by ranlib is not correct, and -# this may cause useless recompiles. Fix that by adding a sleep before -# running ranlib. The '5' is an empirical number that's "long enough." -# (Thanks to Andreas Koenig ) -ranlib='sleep 5; /bin/ranlib' -# -# There where reports that the compiler on HPPA machines -# fails with the -O flag on pp.c. -if [ `arch` = "hppa" ]; then -pp_cflags='optimize="-g"' -fi - -- cgit v1.2.1