From: "Kurt M. Dresner" Date: 2003-09-01T02:39:24+09:00 Subject: Re: errors compiling Ruby under Solaris On the Solaris 9 machines, sys/stream.h does include these lines: typedef struct datab { frtn_t *db_frtnp; unsigned char *db_base; unsigned char *db_lim; unsigned char db_ref; unsigned char db_type; unsigned char db_flags; unsigned char db_struioflag; void *db_cache; /* kmem cache descriptor */ struct msgb *db_mblk; void (*db_free)(struct msgb *, struct datab *); void (*db_lastfree)(struct msgb *, struct datab *); #ifndef _LP64 void *db_pad; /* unused -- needed for alignment */ #endif unsigned char *db_struiobase; unsigned char *db_struiolim; unsigned char *db_struioptr; union { double enforce_alignment; unsigned char data[8]; unsigned u16:16; /* used to store hw-calculated cksum */ /* * Union used for future extensions (pointer to data ?). */ } db_struioun; fthdr_t *db_fthdr; ftflw_t ***db_ftflw; uid_t db_uid; /* Effective user id */ /* project ID - EXPERIMENTAL - may change in future release */ projid_t db_projid; } dblk_t; But I switched to trying to build it on a Solaris 8 machine, and the /usr/include/sys/stream.h doesn't have that anymore (and it appears it is built correctly now). Now the question is: I have it built. How do I install it (I do not have root, so I need to know how to install it to somewhere else). -Kurt On Mon, Sep 01, 2003 at 02:34:49AM +0900, nobu.nokada@softhome.net wrote: > Hi, > > At Mon, 1 Sep 2003 01:57:10 +0900, > ts wrote: > > K> In file included from /usr/include/netinet/in.h:41, > > K> from /usr/include/sys/socket.h:203, > > K> from conftest.c:2: > > K> /usr/include/sys/stream.h:307: parse error before "projid_t" > > > > I don't understand, in [ruby-talk:80672] you were saying > > > > K> It turns out that the thing I sent before was from a Solaris 9 machine, > > K> but apparently I need to compile it on a Solaris 8 machine. When I went > > K> to the Solaris 8 machine and looked in that header file, there wasn't > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > K> even a projid_t in the file, which makes me think it was different > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > K> headers. However, I still get this error message when I try to compile > > K> under Solaris 8: > > > > There is, or not, projid_t in /usr/include/sys/stream.h ? > > My guess is that something in line 307 is defined as projid_t > accidentally. > > Kurt, can't you show us those lines in sys/stream.h? > > -- > Nobu Nakada > >======= End of Original Message =======<