help-octave
[Top][All Lists]
Advanced

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

Unidentified subject!


From: Michael A O Ash
Subject: Unidentified subject!
Date: Tue, 01 Feb 2000 14:25:49 -0500 (EST)

I have what must be a very simple installation problem on a unix DEC Alpha
(OSF1 emily.oit.umass.edu V4.0 878 alpha).  I have run--successfully, I
think--the configure program to install octave in /tmp/octave.  The source
code is in /tmp/octave-2.0.16, and I am running configure and make from
that directory.

emily:/tmp/octave-2.0.16% ./configure --prefix=/tmp/octave

  [lots of output that looks right, finds the right compilers, etc., etc.]

I am installing to /tmp/octave because I don't have access to /usr/local
or room in my home directory for the moment, but I don't think that this
should be relevant for my installation problem.  The problem appears
immediately after I enter the make command:

emily:/tmp/octave-2.0.16% make
Make: Makeconf: Must be a separator on line 71.  Stop.

I am an amateur user of make; so I am quite puzzled by this error.  The
offending lines include:

# Clean up INCFLAGS a bit if we are not compiling in a separate
# directory.
ifeq ($(srcdir),.)
  TMP_IF_1 = -I.
else
  TMP_IF_1 = -I. -I$(srcdir)
endif

I have also included the entire Makeconf file below if that will help. Any
tips will be greatly appreciated.  BTW, I subscribed to octave-help today;
so I may not receive a response to the list.  I will participate actively
on the list, but please be so kind as to e-mail me directly today.

Regards,

Michael Ash, Assistant Professor
  of Economics and Public Policy             address@hidden
Department of Economics                    tel 413/545-6329 [off]
University of Massachusetts-Amherst            413/545-2921 [fax]
Amherst, MA 01003            http://www-unix.oit.umass.edu/~maash



# Generated automatically from Makeconf.in by configure.
#
# Common configuration rules for all of octave's Makefiles.
#
# John W. Eaton
# address@hidden
# University of Wisconsin-Madison
# Department of Chemical Engineering
 
SHELL = /bin/sh

#### Start of system configuration section. ####

EXE = 

LEX = flex
LFLAGS = -t -I
LEXLIB = 

YACC = bison -y
YFLAGS = -dv

AR = ar
ARFLAGS = rc 

RANLIB = ranlib

LN_S = ln -s

RUNTEST = 

TEXI2DVI = $(top_srcdir)/texi2dvi

DEFAULT_PAGER = less

WITH_DL = true
WITH_SHL = false

WITH_DYNAMIC_LINKING = true

OCTAVE_LITE = false

SHARED_LIBS = false
SHLEXT = so

STATIC_LIBS = true
LIBEXT = a

# Fortran to C translator and associated flags.

F2C = 
F2CFLAGS = 

# Fortran compiler flags.

FC = f77
F77 = f77
FFLAGS = -fpe1 -O
FPICFLAG = 
FORTRAN_MAIN_FLAG = 
ALL_FFLAGS = $(FFLAGS)

# cc and associated flags.

DLFCN_INCFLAGS = 
GLOB_INCFLAGS = -I$(top_srcdir)/glob -I$(TOPDIR)/glob

# Clean up INCFLAGS a bit if we are not compiling in a separate
# directory.
ifeq ($(srcdir),.)
  TMP_IF_1 = -I.
else
  TMP_IF_1 = -I. -I$(srcdir)
endif
ifeq ($(TOPDIR),$(top_srcdir))
  TMP_IF_2 = -I$(TOPDIR) -I$(TOPDIR)/liboctave -I$(TOPDIR)/src \
        -I$(TOPDIR)/libcruft/misc
else
  TMP_IF_2 = -I$(TOPDIR) -I$(TOPDIR)/liboctave -I$(TOPDIR)/src \
        -I$(TOPDIR)/libcruft/misc -I$(top_srcdir) \
        -I$(top_srcdir)/liboctave -I$(top_srcdir)/src \
        -I$(top_srcdir)/libcruft/misc
endif
INCFLAGS = $(TMP_IF_1) $(TMP_IF_2) $(DLFCN_INCFLAGS) $(GLOB_INCFLAGS)

LIBFLAGS = -L$(TOPDIR)

DEFS = -DHAVE_CONFIG_H

UGLY_DEFS = -DOCTAVE_SOURCE=1 -DSEPCHAR=\':\' -DSEPCHAR_STR=\\\\\":\\\\\" 
-DUSE_READLINE=1 -D__NO_MATH_INLINES=1 -DHAVE_LIBM=1 -DF77_APPEND_UNDERSCORE=1 
-DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_ALLOCA_H=1 
-DHAVE_ALLOCA=1 -DSTDC_HEADERS=1 -DHAVE_DIRENT_H=1 -DTIME_WITH_SYS_TIME=1 
-DHAVE_SYS_WAIT_H=1 -DHAVE_ASSERT_H=1 -DHAVE_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=1 -DHAVE_PIPE=1 
-DHAVE_PUTENV=1 -DHAVE_RENAME=1 -DHAVE_RINDEX=1 -DHAVE_RMDIR=1 -DHAVE_SELECT=1 
-DHAVE_SETGRENT=1 -DHAVE_SETPWENT=1 -DHAVE_SETVBUF=1 -DHAVE_SIGACTION=1 
-DHAVE_SIGPENDING=1 -DHAVE_SIGPROCMASK=1 -DHAVE_SIGSUSPEND=1 -DHAVE_STAT=1 
-DHAVE_STRCASECMP=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRNCASECMP=1 
-DHAVE_TEMPNAM=1 -DHAVE_UMASK=1 -DHAVE_UNLINK=1 -DHAVE_USLEEP=1 
-DHAVE_VFPRINTF=1 -DHAVE_VSPRINTF=1 -DHAVE_WAITPID=1 -DHAVE_DLOPEN=1 
-DHAVE_DLSYM=1 -DHAVE_DLERROR=1 -DHAVE_DLCLOSE=1 -DWITH_DL=1 
-DWITH_DYNAMIC_LINKING=1 -DHAVE_FINITE=1 -DHAVE_ISNAN=1 -DHAVE_ACOSH=1 
-DHAVE_ASINH=1 -DHAVE_ATANH=1 -DHAVE_ERF=1 -DHAVE_ERFC=1
=1 -DHAVE_ST_RDEV=1 -DHAVE_TM_ZONE=1 -DHAVE_GR_PASSWD=1 -DEXCEPTION_IN_MATH=1 
-DRETSIGTYPE=void -DHAVE_SYS_SIGLIST=1 -DHAVE_POSIX_SIGNALS=1 
-DHAVE_GETRUSAGE=1 -DHAVE_TIMES=1

CC = gcc
CC_VERSION = 2.7.2.2
CFLAGS = -g -O2 -Wall
CPICFLAG = 
XTRA_CFLAGS = 
ALL_CFLAGS = $(INCFLAGS) $(DEFS) $(XTRA_CFLAGS) $(CFLAGS)
BUG_CFLAGS = $(DEFS) $(XTRA_CFLAGS) $(CFLAGS)

CXX = c++
CXX_VERSION = 2.7.2.2
CXXCPP = c++ -E
CXXFLAGS = -g -O2 -Wall
CXXPICFLAG = 
XTRA_CXXFLAGS =  -fno-rtti -fno-implicit-templates
ALL_CXXFLAGS = $(INCFLAGS) $(DEFS) $(XTRA_CXXFLAGS) $(CXXFLAGS)
UGLY_ALL_CXXFLAGS = $(INCFLAGS) $(UGLY_DEFS) $(XTRA_CXXFLAGS) $(CXXFLAGS)
BUG_CXXFLAGS = $(DEFS) $(XTRA_CXXFLAGS) $(CXXFLAGS)

CPPFLAGS = 

LDFLAGS = -g
LD_STATIC_FLAG = 
ALL_LDFLAGS = $(LIBFLAGS) $(FORTRAN_MAIN_FLAG) \
  $(LD_STATIC_FLAG) $(CPICFLAG) $(LDFLAGS)

SH_LD = c++
SH_LDFLAGS = -shared -Xlinker -expect_unresolved -Xlinker '*'

RDYNAMIC_FLAG = -rdynamic

RLD_FLAG = -Xlinker -rpath -Xlinker $(octlibdir)

FLIBS =  -lUfor -lfor -lFutil -lm_4sqrt -lm -lots -lm

TERMLIBS =  -lncurses
LIBGLOB = $(TOPDIR)/glob/libglob.$(LIBEXT)
LIBPLPLOT = 
LIBDLFCN = 
LIBREADLINE = $(TOPDIR)/readline/libreadline.$(LIBEXT)
LIBKPATHSEA = $(TOPDIR)/kpathsea/libkpathsea.$(LIBEXT)
LIBOCTINTERP = $(TOPDIR)/src/liboctinterp.$(LIBEXT)
LIBOCTAVE = $(TOPDIR)/liboctave/liboctave.$(LIBEXT)
LIBCRUFT = $(TOPDIR)/libcruft/libcruft.$(LIBEXT)
SPECIAL_MATH_LIB = 

# The arguments passed to configure.
config_opts =  --prefix=/tmp/octave --srcdir=/tmp/octave-2.0.16

# A shell command to extract the version number from version.h.
getversion = sed -e '/VERSION/!d' -e 's/.*"\(.*\)".*$$/\1/' -e q

# Look for version.h to get version information.
xfiles := $(TOPDIR)/src/version.h $(srcdir)/$(TOPDIR)/src/version.h
version_file := $(firstword $(foreach file, $(xfiles), $(wildcard $(file))))
version := $(shell $(getversion) $(version_file))

# ==================== Where To Install Things ====================

# The default location for installation.  Everything is placed in
# subdirectories of this directory.  The default values for many of
# the variables below are expressed in terms of this one, so you may
# not need to change them.  This defaults to /usr/local.
prefix = /tmp/octave

# Like `prefix', but used for architecture-specific files.
exec_prefix = ${prefix}

# Where to install Octave and other binaries that people will want to
# run directly.
bindir = ${exec_prefix}/bin

# Where to install architecture-independent data files.  ${fcnfiledir}
# and ${localfcnfiledir} are subdirectories of this.
datadir = ${prefix}/share

libdir = ${exec_prefix}/lib

# Where to install and expect libraries like libcruft.a, liboctave.a,
# and other architecture-dependent data.
octlibdir = $(libdir)/octave-$(version)

# Where to install and expect executable programs to be run by Octave
# rather than directly by users.
libexecdir = ${exec_prefix}/libexec

# The prefix for Octave's include file directory.  The default is
# ${prefix}/include
includedir = ${prefix}/include

# Where to install Octave's include files.  The default is
# ${includedir}/octave-${version}
octincludedir = $(includedir)/octave-$(version)

# Where to install Octave's man pages, and what extension they should
# have.  The default is ${prefix}/man/man1
mandir = ${prefix}/man
man1dir = $(mandir)/man1
man1ext = .1

# Where to install and expect the info files describing Octave..
infodir = ${prefix}/info

# The fill path to the default info file.
infofile = $(infodir)/octave.info

# ==================== Octave-specific directories ====================

# These variables hold the values Octave will actually use.  They are
# based on the values of the standard Make variables above.

# Where to install the function file distributed with
# Octave.  This includes the Octave version, so that the
# function files for different versions of Octave will install
# themselves in separate directories.
fcnfiledir = $(datadir)/octave/$(version)/m

# Directories Octave should search for function files specific
# to this site (i.e. customizations), before consulting
# ${fcnfiledir}.  This should be a colon-separated list of
# directories.
localfcnfiledir = $(datadir)/octave/site/m
localfcnfilepath = $(localfcnfiledir)//

# Where to put executables to be run by Octave rather than
# the user.  This path usually includes the Octave version
# and configuration name, so that multiple configurations
# for multiple versions of Octave may be installed at once.
archlibdir = $(libexecdir)/octave/$(version)/exec/$(canonical_host_type)

# Where to put executables to be run by Octave rather than by the
# user that are specific to this site.
localarchlibdir = $(libexecdir)/octave/site/exec/$(canonical_host_type)

# Where to put object files that will by dynamically loaded.
# This path usually includes the Octave version and configuration
# name, so that multiple configurations for multiple versions of
# Octave may be installed at once. 
octfiledir = $(libexecdir)/octave/$(version)/oct/$(canonical_host_type)

# Directories Octave should search for object files that will be
# dynamically loaded and that are specific to this site
# (i.e. customizations), before consulting ${octfiledir}.  This should
# be a colon-separated list of directories.
localoctfiledir = $(libexecdir)/octave/site/oct/$(canonical_host_type)
localoctfilepath = $(localoctfiledir)//

# Where Octave will search to find its function files.  Before
# changing this, check to see if your purpose wouldn't
# better be served by changing localfcnfilepath.  This
# should be a colon-separated list of directories.
fcnfilepath = 
.:$(localoctfilepath):$(localfcnfilepath):$(octfiledir)//:$(fcnfiledir)//

# Where Octave will search to find image files.es.
imagedir = $(datadir)/octave/$(version)/imagelib
imagepath = .:$(imagedir)//

# The type of computer we are running on.
canonical_host_type = alpha-dec-osf4.0d

# The following pattern rules and the substitution functions require
# GNU make.  If you don't have it, get it!

# Rules for making object files from Fortran source.
#
# If we are using f2c there will be a command for the `%.c : %.f'
# pattern and no command for the `%.o : %.f' pattern, so that make
# will not invoke the fortran compiler by mistake.
#
# If we are not using f2c, it should be ok to have an empty rule for
# the pattern `%.c : %.f', but we don't want to replace make's default
# rule for making object from Fortran source files, so there should be
# no pattern or command for that.



%.c : %.f

%.o : %.f
        $(FC) -c $(ALL_FFLAGS) $<

pic/%.o : %.f
        $(FC) -c $(FPICFLAG) $(ALL_FFLAGS) $< -o $@


# How to make .o files:

%.o : %.c
        $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<

%.o : %.cc
        $(CXX) -c $(CPPFLAGS) $(ALL_CXXFLAGS) $<

pic/%.o : %.c
        $(CC) -c $(CPPFLAGS) $(CPICFLAG) $(ALL_CFLAGS) $< -o $@

pic/%.o : %.cc
        $(CXX) -c $(CPPFLAGS) $(CXXPICFLAG) $(ALL_CXXFLAGS) $< -o $@

# Here is a rule for generating dependencies for .cc files:

%.d : %.cc
        @echo making $@ from $<
        @rm -f $@
        @$(CXX) -M $(CPPFLAGS) $(ALL_CXXFLAGS) $< | \
          sed -e 's,$*\.o,pic/& & $@,g' > address@hidden
        @mv address@hidden $@

# And one for .c files.too:

%.d : %.c
        @echo making $@ from $<
        @rm -f $@
        @$(CC) -M $(CPPFLAGS) $(ALL_CFLAGS) $< | \
          sed -e 's,$*\.o,pic/& & $@,g' > address@hidden
        @mv address@hidden $@

define do-subdir-for-command
echo making $@ in $d; cd $d; $(MAKE) $@; cd ..;
endef

define subdir-for-command
$(foreach d, $(SUBDIRS), $(do-subdir-for-command))
endef

define do-subst-config-vals
echo "making $@ from $<"
sed < $< \
  -e "s;%BUG_CXXFLAGS%;\"${BUG_CXXFLAGS}\";" \
  -e "s;%CC%;\"${CC}\";" \
  -e "s;%CC_VERSION%;\"${CC_VERSION}\";" \
  -e "s;%CFLAGS%;\"${BUG_CFLAGS}\";" \
  -e "s;%CPICFLAG%;\"${CPICFLAG}\";" \
  -e "s;%CPPFLAGS%;\"${CPPFLAGS}\";" \
  -e "s;%CXX%;\"${CXX}\";" \
  -e "s;%CXXFLAGS%;\"${CXXFLAGS}\";" \
  -e "s;%CXXPICFLAG%;\"${CXXPICFLAG}\";" \
  -e "s;%CXX_VERSION%;\"${CXX_VERSION}\";" \
  -e "s;%F2C%;\"${F2C}\";" \
  -e "s;%F2CFLAGS%;\"${F2CFLAGS}\";" \
  -e "s;%F77%;\"${F77}\";" \
  -e "s;%FFLAGS%;\"${FFLAGS}\";" \
  -e "s;%FLIBS%;\"${FLIBS}\";" \
  -e "s;%FPICFLAG%;\"${FPICFLAG}\";" \
  -e "s;%INCFLAGS%;\"-I${includedir} -I${octincludedir}\";" \
  -e "s;%LDFLAGS%;\"${LDFLAGS}\";" \
  -e "s;%LEXLIB%;\"${LEXLIB}\";" \
  -e "s;%LIBDLFCN%;\"${LIBDLFCN}\";" \
  -e "s;%LIBFLAGS%;\"-L${octlibdir}\";" \
  -e "s;%LIBPLPLOT%;\"${LIBPLPLOT}\";" \
  -e "s;%LIBS%;\"${LIBS}\";" \
  -e "s;%RLD_FLAG%;\"${RLD_FLAG}\";" \
  -e "s;%SH_LD%;\"${SH_LD}\";" \
  -e "s;%SH_LDFLAGS%;\"${SH_LDFLAGS}\";" \
  -e "s;%CANONICAL_HOST_TYPE%;\"${canonical_host_type}\";" \
  -e "s;%TERMLIBS%;\"${TERMLIBS}\";" \
  -e "s;%VERSION%;\"${version}\";" \
  -e "s;%XTRA_CFLAGS%;\"${XTRA_CFLAGS}\";" \
  -e "s;%XTRA_CXXFLAGS%;\"${XTRA_CXXFLAGS}\";" \
  -e "s;%config_opts%;\"${config_opts}\";" | \
  sed  -e "s;%DEFS%;\"${UGLY_DEFS}\";" > address@hidden
$(top_srcdir)/move-if-change address@hidden $@
endef

define do-subst-default-vals
echo "making $@ from $<"
sed < $< > address@hidden \
  -e "s;%DEFAULT_PAGER%;\"${DEFAULT_PAGER}\";" \
  -e "s;%OCTAVE_ARCHLIBDIR%;\"${archlibdir}\";" \
  -e "s;%OCTAVE_BINDIR%;\"${bindir}\";" \
  -e "s;%OCTAVE_DATADIR%;\"${datadir}\";" \
  -e "s;%OCTAVE_LIBEXECDIR%;\"${libexecdir}\";" \
  -e "s;%OCTAVE_EXEC_PREFIX%;\"${exec_prefix}\";" \
  -e "s;%OCTAVE_FCNFILEDIR%;\"${fcnfiledir}\";" \
  -e "s;%OCTAVE_FCNFILEPATH%;\"${fcnfilepath}\";" \
  -e "s;%OCTAVE_IMAGEPATH%;\"${imagepath}\";" \
  -e "s;%OCTAVE_INFODIR%;\"${infodir}\";" \
  -e "s;%OCTAVE_INFOFILE%;\"${infofile}\";" \
  -e "s;%OCTAVE_LIBDIR%;\"${libdir}\";" \
  -e "s;%OCTAVE_OCTLIBDIR%;\"${octlibdir}\";" \
  -e "s;%OCTAVE_LOCALARCHLIBDIR%;\"${localarchlibdir}\";" \
  -e "s;%OCTAVE_LOCALFCNFILEDIR%;\"${localfcnfiledir}\";" \
  -e "s;%OCTAVE_LOCALFCNFILEPATH%;\"${localfcnfilepath}\";" \
  -e "s;%OCTAVE_LOCALOCTFILEPATH%;\"${localoctfilepath}\";" \
  -e "s;%OCTAVE_OCTFILEDIR%;\"${octfiledir}\";" \
  -e "s;%OCTAVE_PREFIX%;\"${prefix}\";" \
  -e "s;%CANONICAL_HOST_TYPE%;\"${canonical_host_type}\";"
$(top_srcdir)/move-if-change address@hidden $@
endef

# Make a relative symbolic link from $includedir/octave to $octincludedir. 

# XXX FIXME XXX -- this assumes that $octincludedir is a subdirectory
# of $includedir or is the same as $libdir.

define mk-includedir-link
src=`echo $(octincludedir) | sed 's|^$(includedir)/*||'` ; \
if [ "$$src" = "octave" ] || [ -z "$$src" ] ; then \
  true ; \
else \
  cd $(includedir) ; \
  rm -f octave ; \
  $(LN_S) $$src octave ; \
fi
endef

# Make a relative symbolic link from $libdir/octave to $octlibdir. 

# XXX FIXME XXX -- this assumes that $octlibdir is a subdirectory
# of $libdir or is the same as $libdir.

define mk-libdir-link
src=`echo $(octlibdir) | sed 's|^$(libdir)/*||'` ; \
if [ "$$src" = "octave" ] || [ -z "$$src" ] ; then \
  true ; \
else \
  if [ -d "$(libdir)/octave" ] ; then \
    true ; \
  else \
    cd $(libdir) ; \
    rm -f octave ; \
    $(LN_S) $$src octave ; \
  fi ; \
fi
endef




-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.che.wisc.edu/octave/octave.html
How to fund new projects:  http://www.che.wisc.edu/octave/funding.html
Subscription information:  http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------



reply via email to

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