Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: dev-22 compile problem



Jason Price <jprice@xxxxxxxxxxxxxxxxxxxx> typed:
:On Wed, Apr 12, 2000 at 05:15:28PM -0700, Bart Schaefer wrote:
:> On Apr 12,  4:29pm, Jason Price wrote:
:> > Subject: dev-22 compile problem
:> > hashtable.c:1191: structure has no member named `en_cols'
:> Apparently no one else is building zsh with HAVE_NIS_PLUS.
:> Try deleting half of the .en_cols.en_cols on line 1191 of hashtable.c.
:The line now looks like:
:    if (object->zo_data.objdata_u.en_data.en_cols >= 6) {
:As opposed to:
:    if (object->zo_data.objdata_u.en_data.en_cols.en_cols >= 6) {
:And the error returned is:

I guess it should be something like:

 if (object->zo_data.objdata_u.en_data.en_cols.en_cols_len >= 6) {

The check with 6 to make sure there are 6+ columns because we later access
the 6th column.


Quick look a Sun docs (docs.sun.com):

union {
	struct directory_obj     di_data;
	struct group_obj         gr_data;
	struct table_obj         ta_data;
	struct entry_obj         en_data;
	struct link_obj          li_data;
	struct {
		u_int              po_data_len;
		char               * po_data_val;
	} po_data;
} objdata_u;

struct entry_col {
	u_long     ec_flags;
	struct {
		u_int      ec_value_len;
		char       * ec_value_val;
	} ec_value;
}
typedef struct entry_col entry_col;

struct entry_obj {
	char       * en_type;
	struct {
		u_int      en_cols_len;
		entry_col * en_cols_val;
	} en_cols;
}


-- 
Geoff Wing : <gcw@xxxxxxxxx>     Work URL: http://www.primenet.com.au/
Rxvt Stuff : <gcw@xxxxxxxx>      Ego URL : http://pobox.com/~gcw/
Zsh Stuff  : <gcw@xxxxxxx>       Phone   : (Australia) 0413 431 874



Messages sorted by: Reverse Date, Date, Thread, Author