From bug-octave-request at bevo dot che dot wisc dot edu Tue Nov 10 23:52:17 1998 Subject: error compiling octave 2.0.13 on HP-UX 10.20 From: "John W. Eaton" To: "Dr.-Ing. Torsten Finke" Cc: bug-octave at bevo dot che dot wisc dot edu Date: Tue, 10 Nov 1998 23:51:44 -0600 (CST) On 10-Nov-1998, Dr.-Ing. Torsten Finke wrote: | Without success I tried to compile OCTAVE on my HP-UX 10.20. | I got the following applications: | - GNU Make version 3.77 | - gcc version 2.8.1 | - f77 | | ------- | | then I tried various forms of configuring for example the following, but the resulting | error does not depend on the configuration: | | CC='gcc -traditional' DEFS='-DNO_SYS_SIGLIST' configure --prefix=/opt/octave --enable-shared --enable-shl I'm pretty sure that you don't want to use -traditional. Also, I don't think setting DEFS should be necessary. I've successfully compiled Octave on a HP-UX 10.20 system by just running ./configure make make install and making one small bug-fix to the HP header files: | /usr/include/sys/time.h:337: `extern' can only be specified for objects and functions I think this is a bug in the HP header files. The line extern struct sigevent; at line 337 in /usr/include/sys/time.h appears to be incorrect. I changed it to struct sigevent; which allows gcc to compile the file. To be safe, I made a copy of the file in gcc's private include file directory (normally something like /usr/local/lib/gcc-lib/ARCH/VERSION/include, where ARCH and VERSION depend on your system and the version of the compiler you are using). You should probably do that too, rather than edit the system header files directly. jwe