From help-octave-request at che dot utexas dot edu Sun Jan 15 17:13:35 1995 Subject: Re: octave 1.1 on NeXT 3.2 (Intel) From: John Eaton To: "Lars A. Stole" cc: help-octave Date: Sun, 15 Jan 95 17:13:31 CST "Lars A. Stole" 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 * 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 # 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 ! # endif /* SYSNDIR */ ! # ifdef SYSDIR # include ! # endif /* SYSDIR */ ! # ifdef NDIR # include ! # endif /* NDIR */ ! #endif /* not (DIRENT or _POSIX_VERSION) */ #if defined (USG) && defined (TIOCGWINSZ) && !defined (Linux) # include --- 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 # 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 ! # endif /* HAVE_SYS_NDIR_H */ ! # if defined (HAVE_SYS_DIR_H) # include ! # endif /* HAVE_SYS_DIR_H */ ! # if defined (HAVE_NDIR_H) # include ! # endif /* HAVE_NDIR_H */ ! #endif /* not (HAVE_DIRENT_H or _POSIX_VERSION) */ #if defined (USG) && defined (TIOCGWINSZ) && !defined (Linux) # include Thanks, jwe