* HELP!! NNTP compile problems
@ 1994-10-17 17:33 Geoff Hamer
1994-10-26 19:16 ` Rick Murphy
0 siblings, 1 reply; 2+ messages in thread
From: Geoff Hamer @ 1994-10-17 17:33 UTC (permalink / raw)
Hi,
I am trying to compile nntp.1.5.11 on Dec Alpha box running OSF/1 v2.0.
I get the following error when the compiler get to 'scandir.c' during
server compilation. I am not much of a C programmer so I'm not sure what
(if any) changes in conf.h will fix this problem. I've tried GCC as well
and it chokes on the same lines.
Any suggestions?
Thank, Geoff Hamer
Please mail replies to hamerg@gov.on.ca
************ Copy of compile-time errors ***************
cc -O -c scandir.c
/usr/lib/cmplrs/cc/cfe: Warning: scandir.c, line 40: Incompatible pointer
type a
ssignment
while ((dirent = readdir(dirp)) != 0L) {
---------------^
/usr/lib/cmplrs/cc/cfe: Error: scandir.c, line 41: 'd_name' undefined,
reoccurre
nces will not be reported
artnum = atoi(dirent->d_name);
--------------------^
/usr/lib/cmplrs/cc/cfe: Error: scandir.c, line 41: member of structure or
union
required
artnum = atoi(dirent->d_name);
----------------------^
*** Exit 1
Stop.
*** Exit 1
Stop.
**************Copy of code that CC & GCC fail on ******************
extern int intcmp();
extern char *malloc(), *realloc();
scan_dir(low_msg, high_msg)
int low_msg, high_msg;
{
register struct direct *dirent;
register DIR *dirp;
int artnum;
num_arts = 0;
dirp = opendir(".");
if (dirp == NULL)
return (0);
while ((dirent = readdir(dirp)) != NULL) {
artnum = atoi(dirent->d_name);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-10-26 19:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-10-17 17:33 HELP!! NNTP compile problems Geoff Hamer
1994-10-26 19:16 ` Rick Murphy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox