[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
2.1.31 on IRIX64
From: |
Daniel Heiserer |
Subject: |
2.1.31 on IRIX64 |
Date: |
Thu, 16 Nov 2000 07:38:44 +0100 |
Hi,
I had problems compiling 2.1.31 on IRIX64 using g++ 2.95.2
The problem was the file
./liboctave/oct-time.cc
using the file oct-time from 2.1.28 version 2.1.31 it compiled
sucessfully.
BUILD/octave-2.1.31/liboctave > ll oct-time.*
lrwxr-x--- 1 q127038 ek-20 18 Nov 16 15:14 oct-time.cc ->
oct-time.cc.2.1.31
-rw-r----- 1 q127038 ek-20 4957 Nov 13 16:29
oct-time.cc.2.1.28
-rw-r----- 1 q127038 ek-20 5810 Nov 13 16:29
oct-time.cc.2.1.31
-rw-r----- 1 q127038 ek-20 3328 Nov 13 16:30 oct-time.d
-rw-r----- 1 q127038 ek-20 7057 Feb 1 2000 oct-time.h
BUILD/octave-2.1.31/liboctave > gmake
c++ -c -I. -I.. -I../liboctave -I../src -I../libcruft/misc -I../glob
-I../glob -DHAVE_CONFIG_H -fno-rtti -fno-exceptions
-fno-implicit-templates -g -O2 -Wall oct-time.cc -o oct-time.o
oct-time.cc: In method `void octave_time::stamp()':
oct-time.cc:112: aggregate `struct timeval tp' has incomplete type and
cannot be initialized
oct-time.cc:117: confused by earlier errors, bailing out
gmake: *** [oct-time.o] Error 1
BUILD/octave-2.1.31/liboctave > diff oct-time.cc.2.1.28
oct-time.cc.2.1.31
26a27,45
> // I am told that without _BSD_SOURCE, tm_zone won't be declared on
> // some systems. Defining _XOPEN_SOURCE provides the declaration for
> // strptime on some others.
> //
> // These defines go here, before any system header files are included,
> // because the system header files may define other macros that are
> // actually used to determine the feature set. If we wait until after
> // some system header file is included, it may be too late.
>
> #if !defined (_BSD_SOURCE)
> #define _BSD_SOURCE 1
> #define OCTAVE_UNDEFINE_BSD_SOURCE
> #endif
>
> #if !defined (_XOPEN_SOURCE)
> #define _XOPEN_SOURCE 1
> #define OCTAVE_UNDEFINE_XOPEN_SOURCE
> #endif
>
29a49,55
> #ifdef HAVE_UNISTD_H
> #ifdef HAVE_SYS_TYPES_H
> #include <sys/types.h>
> #endif
> #include <unistd.h>
> #endif
>
32d57
< #define __USE_XOPEN
33a59,66
>
> #if defined (OCTAVE_UNDEFINE_BSD_SOURCE)
> #undef _BSD_SOURCE
> #endif
>
> #if defined (OCTAVE_UNDEFINE_XOPEN_SOURCE)
> #undef _XOPEN_SOURCE
> #endif
daniel
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- 2.1.31 on IRIX64,
Daniel Heiserer <=