Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: ghamer@schoolnet (Geoff Hamer)
Subject: HELP!! NNTP compile problems
Date: Mon, 17 Oct 1994 17:32:20 GMT	[thread overview]
Message-ID: <CxtvDx.sq@cunews.carleton.ca> (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);




                 reply	other threads:[~1994-10-17 17:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox