From: abe@cc.purdue.edu (Vic Abell)
Subject: Re: The error in "include" files...
Date: Tue, 25 Sep 2001 14:11:16 +0000 (UTC) [thread overview]
Message-ID: <9oq3a4$e3h$1@mozo.cc.purdue.edu> (raw)
In-Reply-To: 2f6bec0a.0109250357.37a3efde@posting.google.com
banny52@yahoo.com (Ginny E. Kim) writes:
>In True64UNIX V5.1,
>system include file, "/usr/include/kern/queue.h" and
>"/usr/include/sys/stream.h" have "typedef" of same variable ..
>"/usr/include/kern/queue.h" define "typedef struct queue_entry
>*queue_t",
>"/usr/include/sys/stream.h" define "typedef struct queue queue_t".
>By same definition, my program has following compile error..
>cc: Error: /sys/include/kern/queue.h, line 87: In this declaration,
>"queue_t" has no linkage and has a prior declaration in this scope at
>line number 163 in file /sys/include/sys/stream.h. (nolinkage)
>typedef struct queue_entry *queue_t;
>--------------------------------^
>*** Exit 1
>Stop.
>ISN'T THIS THE ERROR ?
Lsof has a crude pre-processor hack that circumvents this compiler
complaint. Look in lsof_4.58/dialects/du/dlsof.h from the current
lsof distribution, available at:
ftp://vic.cc.purdue.edu/pub/tools/unix/lsof
(I'm not proud of the hack, but it works. :-)
Vic Abell, lsof author
prev parent reply other threads:[~2001-09-25 14:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-25 11:57 The error in "include" files Ginny E. Kim
2001-09-25 14:11 ` Vic Abell [this message]
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