DragonFly BSD
DragonFly bugs List (threaded) for 2006-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: inode.h:88: error: syntax error before "cdev_t"


From: "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx>
Date: Wed, 04 Oct 2006 02:04:16 +0200

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
Description: OpenPGP digital signature



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]