21 Feb, 2012, Lancsta wrote in the 1st comment:
Votes: 0
But, hear me out.
It's been forever, since I was last diving into our codebase, which is Sunder.
Last time the gcc was updated I moved these lines to to before the struct.
Now, trying to boot up for the first time in 4 years, I'm running into old issues so to speak.
Where as I think there were 2 issues, my moving just band-aided the second at the time.
So here's the code.
merc.h:1867: error: array type has incomplete element type
merc.h - 1867.
extern const struct flag_type area_flags[];

bit.c
const struct flag_stat_type flag_stat_table[] =
{
{ area_flags, FALSE},

bit.c
const struct flag_type area_flags[] =
{
{"none", AREA_NONE, FALSE},
{"changed", AREA_CHANGED, TRUE},
{"added", AREA_ADDED, TRUE},
{"no_quest", AREA_NO_QUEST, TRUE},
{"loading", AREA_LOADING, FALSE},
{"", 0, 0}
};

Any help is appreciated. As I'm sure my senses will start returning after I quit drinking in general. :p
21 Feb, 2012, David Haley wrote in the 2nd comment:
Votes: 0
Was flag_type defined before line 1867 in merc.h? That line won't work unless flag_type has been defined.
21 Feb, 2012, Lancsta wrote in the 3rd comment:
Votes: 0
globals.h 638

struct flag_type
{
char * name;
int bit;
bool settable;
};

:( Maybe… It's not like all the others for some reason.
21 Feb, 2012, Lancsta wrote in the 4th comment:
Votes: 0
I feel as though I should add, this part.
/* bit.c */
extern const struct flag_type area_flags[];
extern const struct flag_type sex_flags[];
extern const struct flag_type exit_flags[];
extern const struct flag_type door_resets[];
extern const struct flag_type room_flags[];
extern const struct flag_type sector_flags[];
extern const struct flag_type type_flags[];
extern const struct flag_type extra_flags[];
extern const struct flag_type wear_flags[];
extern const struct flag_type act_flags[];
extern const struct flag_type affect_flags[];
extern const struct flag_type detect_flags[];
extern const struct flag_type protect_flags[];
extern const struct flag_type apply_flags[];
extern const struct flag_type wear_loc_strings[];
extern const struct flag_type wear_loc_flags[];
extern const struct flag_type weapon_flags[];
extern const struct flag_type container_flags[];
extern const struct flag_type liquid_flags[];
extern const struct flag_type material_type[];
extern const struct flag_type form_flags[];
extern const struct flag_type part_flags[];
extern const struct flag_type ac_type[];
extern const struct flag_type size_flags[];
extern const struct flag_type off_flags[];
extern const struct flag_type imm_flags[];
extern const struct flag_type res_flags[];
extern const struct flag_type vuln_flags[];
extern const struct flag_type position_flags[];
extern const struct flag_type weapon_class[];
extern const struct flag_type weapon_type[];
extern const struct flag_type attack_type[];
extern const struct flag_type damage_type[];
extern const struct flag_type sector_name[];
extern const struct flag_type mprog_flags[];
extern const struct flag_type oprog_flags[];
extern const struct flag_type rprog_flags[];
extern const struct flag_type vflags_armor[];
extern const struct flag_type restrict_flags[];

#endif /* MERC_H */

That's the end of merc.h Where all of these errors are occuring.
22 Feb, 2012, Lancsta wrote in the 5th comment:
Votes: 0
I don't even recall how old this backup is. And I -should- know what to do given I've fixed this already. I thinking I need to get everything up to date with the latest gcc. Sunder always has been a pain changing between different servers.
22 Feb, 2012, Lancsta wrote in the 6th comment:
Votes: 0
Ok, so I remembered. I moved that whole snip in merc.h to globals.h. Also, there were a group there that also needed to be moved below in globals.h. So mission accomplished. Man this is an old backup :(
0.0/6