[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: octave 1.1 on NeXT 3.2 (Intel)
From: |
John Eaton |
Subject: |
Re: octave 1.1 on NeXT 3.2 (Intel) |
Date: |
Sun, 15 Jan 95 17:13:31 CST |
"Lars A. Stole" <address@hidden> 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 <address@hidden>
* 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