help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dec Alpha installation


From: John W. Eaton
Subject: Dec Alpha installation
Date: Tue, 6 May 1997 10:30:17 -0500

On  6-May-1997, A. Scottedward Hodel <address@hidden> wrote:

| A colleague is installing Octave-2.0.5 on a Dec Alpha and is unable to
| complete compilation.  The symtoms are listed below; any tips on what to
| do would be appreciated:

The following patch should fix the problem compiling glob.c.  It also
disables optimization for kpathsea/hash.c, which makes Octave actually
work on DU 4.0 systems (there seems to be a bug in g++ that doesn't
show up on earlier versions of DU).  You'll need to run configure
again after applying the patch.

I've also made a binary distribution for DU 4.0 (though it probably
doesn't matter because the binary for 3.2 is statically linked and
also works on systems running 4.0).  In any case, it's available from
ftp.che.wisc.edu in the directory /pub/octave/BINARIES/2.0.5.

jwe


diff -cNr octave-2.0.5/glob/glob.h octave-2.0.5.local/glob/glob.h
*** octave-2.0.5/glob/glob.h    Wed Feb 26 13:22:51 1997
--- octave-2.0.5.local/glob/glob.h      Tue May  6 09:49:44 1997
***************
*** 52,58 ****
                         GLOB_PERIOD|GLOB_ALTDIRFUNC|GLOB_BRACE|     \
                         GLOB_NOMAGIC|GLOB_TILDE)
  
! #if !defined (_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 2 || defined (_BSD_SOURCE)
  #define       GLOB_MAGCHAR    (1 << 8)/* Set in gl_flags if any metachars 
seen.  */
  #define GLOB_ALTDIRFUNC       (1 << 9)/* Use gl_opendir et al functions.  */
  #define GLOB_BRACE    (1 << 10)/* Expand "{a,b}" to "a" "b".  */
--- 52,58 ----
                         GLOB_PERIOD|GLOB_ALTDIRFUNC|GLOB_BRACE|     \
                         GLOB_NOMAGIC|GLOB_TILDE)
  
! #if !defined (_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 2 || defined (_GNU_SOURCE)
  #define       GLOB_MAGCHAR    (1 << 8)/* Set in gl_flags if any metachars 
seen.  */
  #define GLOB_ALTDIRFUNC       (1 << 9)/* Use gl_opendir et al functions.  */
  #define GLOB_BRACE    (1 << 10)/* Expand "{a,b}" to "a" "b".  */
diff -cNr octave-2.0.5/kpathsea/Makefile.in 
octave-2.0.5.local/kpathsea/Makefile.in
*** octave-2.0.5/kpathsea/Makefile.in   Tue Feb 18 21:58:36 1997
--- octave-2.0.5.local/kpathsea/Makefile.in     Tue May  6 09:56:08 1997
***************
*** 147,152 ****
--- 147,163 ----
          -DDEFAULT_FONT_SIZES='"$(default_texsizes)"'\
          -c $(srcdir)/tex-file.c -o $@
  
+ # Don't optimize.
+ 
+ XCC = $(patsubst -O%, , $(CC))
+ XCFLAGS = $(patsubst -O%, , $(CFLAGS))
+ 
+ hash.o:
+       $(XCC) $(CPPFLAGS) $(XCFLAGS) -c $(srcdir)/hash.c
+ 
+ pic/hash.o:
+       $(XCC) $(CPPFLAGS) $(CPICFLAG) $(XCFLAGS) -c $(srcdir)/hash.c -o $@
+ 
  # Need the -DHAVE_CONFIG_H.
  gmalloc.o:
        $(CC) $(CPPFLAGS) @DEFS@ $(CFLAGS) -c $(srcdir)/gmalloc.c


reply via email to

[Prev in Thread] Current Thread [Next in Thread]