[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Trouble building Octave on HP
From: |
John W. Eaton |
Subject: |
Trouble building Octave on HP |
Date: |
Mon, 12 Apr 1999 12:25:57 -0500 (CDT) |
On 12-Apr-1999, Rafael Laboissiere <address@hidden> wrote:
| I am trying to build Octave 1.2.13.95 for HP and got the following error
| message:
|
| ===========================================================================
| gmake[2]: Entering directory `/signal/rafael/octave-2.0.13.95/liboctave'
| 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 Bounds.cc
| In file included from /usr/include/sys/resource.h:21,
| from
/opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.8.1/include/sys/wait.h:83,
| from
/opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.8.1/include/stdlib.h:231,
| from /opt/gcc/include/g++/cstdlib:6,
| from Array.h:32,
| from MArray.h:31,
| from dColVector.h:30,
| from Bounds.h:32,
| from Bounds.cc:33:
| /usr/include/sys/time.h:337: `extern' can only be specified for objects and
functions
| gmake[2]: *** [Bounds.o] Error 1
| gmake[2]: Leaving directory `/signal/rafael/octave-2.0.13.95/liboctave'
| gmake[1]: *** [liboctave] Error 2
| gmake[1]: Leaving directory `/signal/rafael/octave-2.0.13.95'
| gmake: *** [all] Error 2
| ===========================================================================
|
| Here are my configure options :
|
| ./configure --prefix=/public/local.hp9000s700 --enable-shared --enable-shl
--enable-lite-kernel
|
| It looks like file /usr/include/sys/time.h for the HP system is buggy.
Yes.
| Does somebody knows what is wrong and how to fix this?
Here is the change I made when I encountered this problem. Note that
you should modify gcc's private copy of the header files, not the one
in /usr/include.
--- /usr/include/sys/time.h Thu May 30 02:00:00 1996
+++ /usr/local/gnu/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.7.2.3/include/sys/time.h
Tue Sep 15 12:08:22 1998
@@ -334,7 +334,7 @@
extern int clock_gettime(clockid_t, struct timespec *);
extern int clock_getres(clockid_t, struct timespec *);
# ifndef _SYS_SIGEVENT_INCLUDED
-extern struct sigevent;
+struct sigevent;
# endif /* _SYS_SIGEVENT_INCLUDED */
extern int timer_create(clockid_t, struct sigevent *, timer_t *);
I have no idea what the purpose of this statement is supposed to be.
It looks somewhat pointless to me. But then again, this is HP-UX...
jwe