🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.mush
Article #453

Re: Help with 7.1.1/curses

#453
From: Barton E. Schaefer
Date: Mon, 30 Jul 1990 20:21
34 lines
1602 bytes
On Jul 30,  5:44pm, Michael Hart wrote:
} Subject: Help with 7.1.1/curses
}
} O/S		IRIX 3.2.1
} 		
} Problem:	Trying to compile with curses.  Get the following
} error:
} ccom: Error: glob.c, line 285: DIR undefined
}           DIR *dirp;
}       --------^
} ccom: Error: glob.c, line 285: dirp undefined
}           DIR *dirp;
}       -------------^
} (((so forth and so on, all the following errors building on these)
} 
} Relevant Makefile lines:
} 
} # IRIX 3.2 systems (SGI Iris workstations) should add -DDIRECTORY to CFLAGS
} 
} CFLAGS=         -O -DSYSV -DUSG -DCURSES -DREGCMP -DSIGRET=void -DDIRECTORY

Sigh.  One just can't win.  Does IRIX use <sys/dir.h> or does it use
<dirent.h> ?  The #ifs in glob.h assume that -DSYSV and -DDIRECTORY used
together means that #include <dirent.h> should be performed.  Take a look
at "man 3 directory" or poke around in /usr/include and see which one you
should be using.  One of those two files should typedef DIR, and then the
rest of your problems will go away.  Just change glob.h to #include the
correct one.

Curses shouldn't have anything to do with it -- use of the directory
functions does not depend on -DCURSES.

-- 
Bart Schaefer						schaefer@cse.ogi.edu
Technical Details
Message-ID: <9007302021.AA05163@cse.ogi.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!snorkelwacker!bloom-beacon!CSE.OGI.EDU!schaefer

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!snorkelwacker!bloom-beacon!CSE.OGI.EDU!schaefer
From: schaefer@CSE.OGI.EDU (Barton E. Schaefer)
Newsgroups: comp.mail.mush
Subject: Re: Help with 7.1.1/curses
Message-ID: <9007302021.AA05163@cse.ogi.edu>
Date: 30 Jul 90 20:21:15 GMT
Sender: daemon@athena.mit.edu (Mr Background)
Organization: The Internet
Lines: 34