In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/2c133f5f540b708a80debef2851d74820aa65e94?hp=676447f97ffb271ba1d701a022cd865c74881286>

- Log -----------------------------------------------------------------
commit 2c133f5f540b708a80debef2851d74820aa65e94
Author: Jarkko Hietaniemi <[email protected]>
Date:   Wed Sep 24 22:07:20 2014 -0400

    Mention that freeware gdbm might be obsolete.

M       hints/irix_6.sh

commit 5b96080c2232c4c22364c08f21c03d491dba7474
Author: Jarkko Hietaniemi <[email protected]>
Date:   Tue Sep 23 09:21:55 2014 -0400

    Irix: the explicit <fcntl.h> is needed

M       hints/irix_6.sh

commit 0b6ebfadd8d2cfccc07203e94d583721305fd779
Author: Jarkko Hietaniemi <[email protected]>
Date:   Tue Sep 16 16:58:44 2014 -0400

    IRIX 6.5 (cc 7.4) needs -c99 to compile without whining.
    
    Without -c99 including C99 header files like <stdint.h> is an error.
    
    For gcc (used "freeware" 3.3), there just doesn't seem to be a way,
    so claim there's no <stdint.h>.

M       hints/irix_6.sh
-----------------------------------------------------------------------

Summary of changes:
 hints/irix_6.sh | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/hints/irix_6.sh b/hints/irix_6.sh
index e36d643..3fe1ae9 100644
--- a/hints/irix_6.sh
+++ b/hints/irix_6.sh
@@ -102,7 +102,12 @@ $cat > UU/cc.cbu <<'EOCCBU'
 # has prompted the user for the C compiler to use.
 
 case "$cc" in
-*gcc*) ;;
+*gcc*)
+  # With cc we can use -c99, but with gcc we just can't use C99 headers.
+  # (There is a hidden define __c99 that cc uses, but trying to use that
+  # with gcc leads into magnificent explosions.)
+  i_stdint='undef'
+  ;;
 *) ccversion=`cc -version 2>&1` ;;
 esac
 
@@ -237,6 +242,7 @@ case "$cc" in
 
        # Warnings to turn off because the source code hasn't
        # been cleaned up enough yet to satisfy the IRIX cc.
+       # 1047: macro redefinitions (in IRIX' own system headers!)
        # 1184: "=" is used where where "==" may have been intended.
        # 1552: The variable "foobar" is set but never used.
        woff=1184,1552
@@ -284,6 +290,9 @@ case "$cc" in
                '-O') optimize='-O3 -OPT:Olimit=0:space=ON' ;;
                *) ;;
             esac
+           # Perl source has just grown too chummy with c99
+           # (headerwise, not code-wise: we use <stdint.h> and such)
+           ccflags="$ccflags -c99"
             ;;
        *6.2*)                        # Ragnarok 6.2
             ccflags="$ccflags -D_BSD_TYPES -D_BSD_TIME -woff $woff"
@@ -408,6 +417,10 @@ case "$ldflags" in
     *) ldflags="$ldflags -Wl,-woff,84" ;;
 esac
 
+# IRIX freeware kits sometimes have only o32 libraries for gdbm.
+# You can try Configure ... -Dlibswanted='m' -Dnoextensions='GDBM_File'
+# since the libm seems to be pretty much the only really needed library.
+
 # Irix 6.5.6 seems to have a broken header <sys/mode.h>
 # don't include that (it doesn't contain S_IFMT, S_IFREG, et al)
 
@@ -645,3 +658,8 @@ EOCBU
 # Helmut Jarausch reports that Perl's malloc is rather unusable
 # with IRIX, and SGI confirms the problem.
 usemymalloc=${usemymalloc:-false}
+
+# Configure finds <fcntl.h> but then thinks it can use <sys/file.h>
+# instead; in IRIX this is not true because the prototype of fcntl()
+# requires explicit include of <fcntl.h>
+i_fcntl=define

--
Perl5 Master Repository

Reply via email to