octave 1.1 on NeXT 3.2 (Intel)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

octave 1.1 on NeXT 3.2 (Intel)

Lars A. Stole
Hello everyone,

I am trying to compile octave 1.1 on a NextStep 3.2 operating system  
(running on a Pentium cpu).


I have performed the standard fixes for Nextstep which worked with octave  
1.0. Specifically, I compiled ./liboctave/dMatrix.cc and  
./liboctave/Array-d.cc without the "-g" flag. I have also extracted the  
termios.o file from the libposix.a library and placed it in the ./src/  
subdirectory.  Nonetheless, some problems seem to remain.

The main problem is that I am having trouble compiling  
./readline/complete.c.  I am using gcc 2.6.3, libg++ 2.6.2, and f2c if that  
is relevant. The error messages from my screen are ... [this is rather  
long, unfortunately]

......

make[2]: Entering directory `/lars/Development/octave-1.1.0/readline'
Makefile:70: warning: overriding commands for target `.c.o'
../Makeconf:214: warning: ignoring old commands for target `.c.o'
cc -c  -I. -I./.. -DOCTAVE_SOURCE=1 -DNPSOL_MISSING=1 -DQPSOL_MISSING=1  
-DFSQP_MISSING=1 -DHAVE_STRFTIME=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4  
-DSIZEOF_LONG=4 -DIEEE_LITTLE_ENDIAN=1 -DHAVE_ALLOCA=1  
-DF77_APPEND_UNDERSCORE=1 -DSTDC_HEADERS=1 -DHAVE_ASSERT_H=1  
-DHAVE_FLOAT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MEMORY_H=1 -DHAVE_PWD_H=1  
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_VARARGS_H=1 -DHAVE_UNISTD_H=1  
-DHAVE_SYS_UTSNAME_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_FCNTL_H=1  
-DHAVE_SYS_RESOURCE_H=1 -DHAVE_SYS_DIR_H=1 -DTIME_WITH_SYS_TIME=1  
-DHAVE_TERMIOS_H=1 -DHAVE_SETVBUF=1 -DHAVE_GETHOSTNAME=1 -DHAVE_BZERO=1  
-DHAVE_BCOPY=1 -DHAVE_RINDEX=1 -DHAVE_VFPRINTF=1 -DHAVE_VSPRINTF=1  
-DHAVE_STRCASECMP=1 -DHAVE_STRNCASECMP=1 -DHAVE_STRERROR=1 -DHAVE_ATEXIT=1  
-DHAVE_MEMMOVE=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_GETRUSAGE=1 -DHAVE_LIBM=1  
-DHAVE_FINITE=1 -DHAVE_ISNAN=1 -DHAVE_ISINF=1 -DHAVE_ERF=1 -DHAVE_ERFC=1  
-DHAVE_LGAMMA=1 -DRETSIGTYPE=void -DHAVE_SYS_SIGLIST=1   -DVI_MODE=1  
-DPAREN_MATCHING=1 -g -O -Wall complete.c
In file included from complete.c:61:
rldefs.h:144: warning: `index' redefined
/usr/local/lib/gcc-lib/i386-next-nextstep3/2.6.3/include/ansi/string.h:113:  
warning: this is the location of the previous definition
rldefs.h:145: warning: `rindex' redefined
/usr/local/lib/gcc-lib/i386-next-nextstep3/2.6.3/include/ansi/string.h:117:  
warning: this is the location of the previous definition
rldefs.h:146: warning: `bcopy' redefined
/usr/local/lib/gcc-lib/i386-next-nextstep3/2.6.3/include/ansi/string.h:120:  
warning: this is the location of the previous definition
rldefs.h:147: warning: `bcmp' redefined
/usr/local/lib/gcc-lib/i386-next-nextstep3/2.6.3/include/ansi/string.h:123:  
warning: this is the location of the previous definition
rldefs.h:148: warning: `bzero' redefined
/usr/local/lib/gcc-lib/i386-next-nextstep3/2.6.3/include/ansi/string.h:126:  
warning: this is the location of the previous definition
complete.c: In function `rl_complete_internal':
complete.c:365: warning: unused variable `quoted'
complete.c: In function `stat_char':
complete.c:886: warning: implicit declaration of function `access'
complete.c: In function `filename_completion_function':
complete.c:1075: parse error before `*'
complete.c:1120: `directory' undeclared (first use this function)
complete.c:1120: (Each undeclared identifier is reported only once
complete.c:1120: for each function it appears in.)
complete.c:1120: warning: implicit declaration of function `opendir'
complete.c:1134: warning: implicit declaration of function `readdir'
complete.c:1134: warning: assignment makes pointer from integer without a  
cast
complete.c:1140: dereferencing pointer to incomplete type
complete.c:1141: dereferencing pointer to incomplete type
complete.c:1148: dereferencing pointer to incomplete type
complete.c:1149: dereferencing pointer to incomplete type
complete.c:1150: dereferencing pointer to incomplete type
complete.c:1161: warning: implicit declaration of function `closedir'
complete.c:1162: parse error before `)'
complete.c:1192: dereferencing pointer to incomplete type
complete.c:1205: dereferencing pointer to incomplete type
complete.c:1209: dereferencing pointer to incomplete type
complete.c:1213: dereferencing pointer to incomplete type
complete.c:1213: dereferencing pointer to incomplete type
gmake[2]: *** [complete.o] Error 1
gmake[2]: Leaving directory `/lars/Development/octave-1.1.0/readline'

......



There are other errors which occur further down in the makefile, but since  
they may all arise from the complete.c problem, I want to solve this first.  
Any help would be greatly appreciated.

Thanks in advance.


Lars Stole
 




Reply | Threaded
Open this post in threaded view
|

Re: octave 1.1 on NeXT 3.2 (Intel)

John Eaton-4
"Lars A. Stole" <[hidden email]> wrote:

: I am trying to compile octave 1.1 on a NextStep 3.2 operating system  
: (running on a Pentium cpu).

: The main problem is that I am having trouble compiling  
: ./readline/complete.c.  I am using gcc 2.6.3, libg++ 2.6.2, and f2c if that  
: is relevant. The error messages from my screen are ... [this is rather  
: long, unfortunately]

Ok, most of these appear to be unimportant warnings, until

: complete.c: In function `filename_completion_function':
: complete.c:1075: parse error before `*'
: complete.c:1120: `directory' undeclared (first use this function)
: complete.c:1120: (Each undeclared identifier is reported only once
: complete.c:1120: for each function it appears in.)

and the rest are all a result of DIR not being declared.  Please try
this patch:

Sun Jan 15 15:08:04 1995  John Eaton  <[hidden email]>

        * readline/rldefs.h: Use new #defines for directory headers now
        that we are using autoconf 2.


*** readline/rldefs.h~ 1994/02/10 06:26:29
--- readline/rldefs.h 1995/01/15 23:02:22
***************
*** 97,120 ****
  #endif /* !NEW_TTY_DRIVER && !_POSIX_VDISABLE */
 
  /* unistd.h defines _POSIX_VERSION on POSIX.1 systems.  */
! #if defined(DIRENT) || defined(_POSIX_VERSION)
  #  include <dirent.h>
  #  if !defined (direct)
  #    define direct dirent
  #  endif /* !direct */
  #  define D_NAMLEN(dirent) (strlen((dirent)->d_name))
! #  else /* not (DIRENT or _POSIX_VERSION) */
! #    define D_NAMLEN(dirent) ((dirent)->d_namlen)
! #  ifdef SYSNDIR
  #    include <sys/ndir.h>
! #  endif /* SYSNDIR */
! #  ifdef SYSDIR
  #    include <sys/dir.h>
! #  endif /* SYSDIR */
! #  ifdef NDIR
  #    include <ndir.h>
! #  endif /* NDIR */
! #endif /* not (DIRENT or _POSIX_VERSION) */
 
  #if defined (USG) && defined (TIOCGWINSZ) && !defined (Linux)
  #  include <sys/stream.h>
--- 97,120 ----
  #endif /* !NEW_TTY_DRIVER && !_POSIX_VDISABLE */
 
  /* unistd.h defines _POSIX_VERSION on POSIX.1 systems.  */
! #if defined(HAVE_DIRENT_H) || defined(_POSIX_VERSION)
  #  include <dirent.h>
  #  if !defined (direct)
  #    define direct dirent
  #  endif /* !direct */
  #  define D_NAMLEN(dirent) (strlen((dirent)->d_name))
! #else /* not (HAVE_DIRENT_H or _POSIX_VERSION) */
! #  define D_NAMLEN(dirent) ((dirent)->d_namlen)
! #  if defined (HAVE_SYS_NDIR_H)
  #    include <sys/ndir.h>
! #  endif /* HAVE_SYS_NDIR_H */
! #  if defined (HAVE_SYS_DIR_H)
  #    include <sys/dir.h>
! #  endif /* HAVE_SYS_DIR_H */
! #  if defined (HAVE_NDIR_H)
  #    include <ndir.h>
! #  endif /* HAVE_NDIR_H */
! #endif /* not (HAVE_DIRENT_H or _POSIX_VERSION) */
 
  #if defined (USG) && defined (TIOCGWINSZ) && !defined (Linux)
  #  include <sys/stream.h>


Thanks,

jwe