Dec Alpha installation

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Dec Alpha installation

A S Hodel
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:
====================================================================

I've started over building octave: copied OCST-ss-970409.tar.gz into
into gnu/scripts, did configure, then make all.

It bombed in glob with:
make[2]: Entering directory `/S1/mooreom/octave-2.0.5/glob'
gcc -I. -I. -c \
      -DSTDC_HEADERS=1 -DHAVE_MEMORY_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DH
AVE_DIRENT_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_STRCOLL=1   -O2 glob.c -
o glob.o
glob.c: In function `glob':
glob.c:275: `GLOB_ALTDIRFUNC' undeclared (first use this function)
glob.c:275: (Each undeclared identifier is reported only once
glob.c:275: for each function it appears in.)
glob.c:275: `GLOB_BRACE' undeclared (first use this function)
glob.c:275: `GLOB_NOMAGIC' undeclared (first use this function)
glob.c:275: `GLOB_TILDE' undeclared (first use this function)
glob.c:562: `GLOB_MAGCHAR' undeclared (first use this function)
glob.c: In function `glob_in_dir':
glob.c:790: `GLOB_MAGCHAR' undeclared (first use this function)
glob.c:792: `GLOB_ALTDIRFUNC' undeclared (first use this function)
glob.c:840: `GLOB_NOMAGIC' undeclared (first use this function)
make[2]: *** [glob.o] Error 1


These GLOB_* are in glob.h, but I don't know what to do with this.

I looked at config.log and notice several failures like:

configure:3989: checking for quiet_nan in -lsunmath
configure:4008: gcc -o conftest -O2  -g conftest.c -lsunmath -lm  1>&5
as0: Warning: /tmp/ccaagjda.s, line 1: extraneous values on version stamp ignore
d
      .verstamp 3 11 2 7 2
collect2: ld returned 1 exit status
/usr/bin/ld:
Can't locate file for: -lsunmath
configure: failed program was:
#line 3997 "configure"


I did a find on libsunmath.a and it wasn't found.  I don't know whether
this should be considered inportant or not.  I do know that library is.

The config.log is about 1000 lines long; I also have a typescript that
contains everything that went to the screen during config.  

Reply | Threaded
Open this post in threaded view
|

Dec Alpha installation

John W. Eaton-6
On  6-May-1997, A. Scottedward Hodel <[hidden email]> 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