[Top][All Lists]

[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 for HP and got the following error
| message:
| ===========================================================================
| gmake[2]: Entering directory `/signal/rafael/octave-'
| 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
| In file included from /usr/include/sys/resource.h:21,
|                  from 
|                  from 
|                  from /opt/gcc/include/g++/cstdlib:6,
|                  from Array.h:32,
|                  from MArray.h:31,
|                  from dColVector.h:30,
|                  from Bounds.h:32,
|                  from
| /usr/include/sys/time.h:337: `extern' can only be specified for objects and 
| gmake[2]: *** [Bounds.o] Error 1
| gmake[2]: Leaving directory `/signal/rafael/octave-'
| gmake[1]: *** [liboctave] Error 2
| gmake[1]: Leaving directory `/signal/rafael/octave-'
| gmake: *** [all] Error 2
| ===========================================================================
| Here are my configure options :
| ./configure --prefix=/public/local.hp9000s700 --enable-shared --enable-shl 
| It looks like file /usr/include/sys/time.h for the HP system is buggy.


| 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/  
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 *);
-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...


reply via email to

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