inode.h:88: error: syntax error before "cdev_t"
Simon 'corecode' Schubert
corecode at fs.ei.tum.de
Tue Oct 3 17:09:58 PDT 2006
walt wrote:
On Tue, 3 Oct 2006, walt wrote:
This is while compiling pkgsrc libgtop2 on -current:
In file included from procmem.c:44:
/usr/include/ufs/ufs/inode.h:88: error: syntax error before "cdev_t"
Any guesses?
this usually means that "cdev_t" isn't known. However inode.h is being included, they also need to include the file which defines cdev_t.
Here is my guess:
# grep -r ufs1_ino_t /usr/include/*
/usr/include/fs/ufs/dinode.h:typedef __uint32_t ufs1_ino_t;
/usr/include/fs/ffs/dinode.h:typedef __uint32_t ufs1_ino_t;
/usr/include/ufs/ufs/dinode.h:typedef __uint32_t ufs1_ino_t;
/usr/include/ufs/ffs/dinode.h:typedef __uint32_t ufs1_ino_t;
/usr/include/vfs/ufs/dinode.h:typedef __uint32_t ufs1_ino_t;
/usr/include/vfs/ffs/dinode.h:typedef __uint32_t ufs1_ino_t;
AFAICT, ufs1_ino_t is never defined anywhere with a typedef. Would
this be flagged at compile time as a 'syntax error'?
yes, it would be flagged, but it is defined, about 6 times: typedef works the opposite way than #define:
typedef orig_type new_type;
#define NEW_MACRO old_stuff
cheers
simon
--
Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\
Work - Mac +++ space for low â¬â¬â¬ NOW!1 +++ Campaign \ /
Party Enjoy Relax | http://dragonflybsd.org Against HTML \
Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \
Attachment:
signature.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00008.pgp
Type: application/octet-stream
Size: 252 bytes
Desc: "Description: OpenPGP digital signature"
URL: <http://lists.dragonflybsd.org/pipermail/bugs/attachments/20061003/9d3c89db/attachment-0022.obj>
More information about the Bugs
mailing list