From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,e1496d9610b37a37 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-09-25 07:20:08 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!news.cc.ukans.edu!stl-feed.news.verio.net!mozo.cc.purdue.edu!abe From: abe@cc.purdue.edu (Vic Abell) Newsgroups: comp.unix.tru64 Subject: Re: The error in "include" files... Date: Tue, 25 Sep 2001 14:11:16 +0000 (UTC) Organization: Purdue University Message-ID: <9oq3a4$e3h$1@mozo.cc.purdue.edu> References: <2f6bec0a.0109250357.37a3efde@posting.google.com> NNTP-Posting-Host: vic.cc.purdue.edu X-Trace: mozo.cc.purdue.edu 1001427076 14449 128.210.135.168 (25 Sep 2001 14:11:16 GMT) X-Complaints-To: news@news.purdue.edu NNTP-Posting-Date: Tue, 25 Sep 2001 14:11:16 +0000 (UTC) Xref: archiver1.google.com comp.unix.tru64:5013 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