[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Octave-2.1.31 on an alpha
From: |
A Scottedward Hodel |
Subject: |
Octave-2.1.31 on an alpha |
Date: |
Tue, 18 Jul 2000 12:53:07 -0500 |
I'm attempting to install Octave -2.1.31 on our alpha here. I have been unable
to compile since roughly version 2.1.28 (currently using 2.1.24).
The error message is below. I've spent some time digging in the configure
script and in liboctave/oct-time.cc to find the source of the problem.
For some reason, the compilation of oct-time.cc does not define _OSF_SOURCE
whereas the default configure script test case (using gcc or g++) does.
This is the test C program compiled by the configure script (with a
hand modification to confirm that _OSF_SOURCE is defined):
#line 6130 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#ifdef _OSF_SOURCE
#else
THIS SHOULD BE IGNORED
#endif
int main() {
struct tm tm; tm.tm_zone;
; return 0; }
The program compiles without error whether I use gcc conftest.c or
g++ conftest.cc as compilation commands, so apparently _OSF_SOURCE is
available by default. However, when running a compile in Octave, I get
c++ -c -I. -I.. -I../liboctave -I../src -I../libcruft/misc
-I../glob -I../glob -DHAVE_CONFIG_H -mieee-with-inexact -fno-rtti
-fno-exceptions -fno-implicit-templates -g -O2 -Wall oct-time.cc -o
oct-time.o
oct-time.cc: In method `octave_time::octave_time(const octave_base_tm &)':
oct-time.cc:89: `struct tm' has no member named `tm_zone'
oct-time.cc: In method `class string octave_base_tm::strftime(const
string &) const':
oct-time.cc:185: `struct tm' has no member named `tm_zone'
oct-time.cc: In method `void octave_base_tm::init(void *)':
oct-time.cc:232: `struct tm' has no member named `tm_zone'
oct-time.cc: In method `void octave_strptime::init(const string &,
const string &)':
oct-time.cc:276: `struct tm' has no member named `tm_zone'
The offending structure element is conditionally compiled in the time.h
header file based on _OSF_SOURCE being defined.
I can compile oct-time.cc by typing "make CXXFLAGS="$CXXFLAGS -D_OSF_SOURCE".
This looks like some change needs to be added to the alpha.*osf.*
part of the configure script. I tried using CXXPICFLAGS but that didn't
do the job.
Do other alpha users also have this problem?
If someone needs the "bug-octave" details:
Configuration (please do not edit this section):
-----------------------------------------------
uname output: OSF1 edalf1 V4.0 1091 alpha
configure opts: --prefix=/usr/people/hodelas/tmp/gnu
Fortran compiler: f77
FFLAGS: -fpe1 -O
F2C:
F2CFLAGS:
FLIBS: -lUfor -lfor -lFutil -lm -lots -lm
CPPFLAGS:
INCFLAGS: -I. -I. -I./liboctave -I./src -I./libcruft/misc
-I./glob -I./glob
C compiler: gcc, version 2.95.2 19991024 (release)
CFLAGS: -O -I/usr/local/gnu/include -L/usr/local/gnu/lib
CPICFLAG: -D_OSF_SOURCE
C++ compiler: c++, version 2.95.2 19991024 (release)
CXXFLAGS: -g -O2 -Wall
CXXPICFLAG:
LDFLAGS: -g
LIBFLAGS: -L.
RLD_FLAG: -Xlinker -rpath -Xlinker
/usr/people/hodelas/tmp/gnu/lib/octave-2.1.31
TERMLIBS: -lcurses
LIBS:
LEXLIB:
LIBPLPLOT:
LIBDLFCN:
LIBGLOB: ./glob/glob.o ./glob/fnmatch.o
DEFS:
-DOCTAVE_SOURCE=1 -DSEPCHAR=':' -DSEPCHAR_STR=":" -DUSE_READLINE=1
-D__NO_MATH_INLINES=1 -DCXX_NEW_FRIEND_TEMPLATE_DECL=1 -DHAVE_LIBM=1
-DHAVE_LIBZ=1 -DF77_APPEND_UNDERSCORE=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4
-DSIZEOF_LONG=8 -DSIZEOF_LONG_LONG=8 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1
-DNPOS=std::string::npos -DSTDC_HEADERS=1 -DHAVE_DIRENT_H=1
-DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_ASSERT_H=1
-DHAVE_CURSES_H=1 -DHAVE_DLFCN_H=1 -DHAVE_FCNTL_H=1 -DHAVE_FLOAT_H=1
-DHAVE_FNMATCH_H=1 -DHAVE_GLOB_H=1 -DHAVE_GRP_H=1 -DHAVE_LIMITS_H=1
-DHAVE_MEMORY_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VE_SIGPROCMASK=1 -DHAVE_SIGSUSPEND=1
-DHAVE_STAT=1 -DHAVE_STRCASECMP=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1
-DHAVE_STRFTIME=1 -DHAVE_STRNCASECMP=1 -DHAVE_STRPTIME=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_TIMEVAL=1 -DHAVE_FINITE=1
-DHAVE_ISNAN=1 -DHAVE_ACOSH=1 -DHAVE_ASINH=1 -DHAVE_ATANH=1
-DHAVE_ERF=1 -DHAVE_ERFC=1 -DHAVE_ST_BLKSIZE=1 -DHAVE_ST_BLOCKS=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
-DGNUPLOT_HAS_MULTIPLOT=1 -DGNUPLOT_HAS_FRAMES=1
--
A S Hodel Assoc. Prof. Dept Elect and Computer Eng, Auburn Univ,AL 36849-5201
On leave at NASA Marshall Space Flight Center (256) 544-1426
Address until 31 July 2000:Mail Code TD-55, MSFC, Alabama, 35812
http://www.eng.auburn.edu/~scotte
-----------------------------------------------------------------------
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
-----------------------------------------------------------------------
- Octave-2.1.31 on an alpha,
A Scottedward Hodel <=