From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,fa40161d4790f540,start X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-10-17 11:39:06 PST Newsgroups: comp.unix.osf.misc Path: bga.com!news.sprintlink.net!howland.reston.ans.net!cs.utexas.edu!utnut!nott!cunews!schoolnet!ghamer From: ghamer@schoolnet (Geoff Hamer) Subject: HELP!! NNTP compile problems Message-ID: Sender: news@cunews.carleton.ca (News Administrator) Organization: Carleton University X-Newsreader: TIN [version 1.2 PL0] Date: Mon, 17 Oct 1994 17:32:20 GMT 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);