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 / \
signature.asc
Description: OpenPGP digital signature
