Started own server using Ubuntu 8.04

Posted by Xero on Fri 29 May 2009 07:28 AM — 6 posts, 27,435 views.

#0
I've decided to turn my desktop into a server, and I threw my mud on the server and got alot of errors. My mud normally compiles very clean (no errors) on every other server I've been on. Maybe I don't have the right compiler or something?
Any help would be appreciated.

xero@xero-desktop:~/dwmud/src$ make
gcc -c -Wall -O -ggdb act_comm.c -o obj/act_comm.o
In file included from act_comm.c:43:
tables.h:31: error: array type has incomplete element type
tables.h:32: error: array type has incomplete element type
tables.h:33: error: array type has incomplete element type
tables.h:34: error: array type has incomplete element type
tables.h:37: error: array type has incomplete element type
tables.h:38: error: array type has incomplete element type
tables.h:39: error: array type has incomplete element type
tables.h:40: error: array type has incomplete element type
tables.h:41: error: array type has incomplete element type
tables.h:42: error: array type has incomplete element type
tables.h:43: error: array type has incomplete element type
tables.h:44: error: array type has incomplete element type
tables.h:45: error: array type has incomplete element type
tables.h:46: error: array type has incomplete element type
tables.h:47: error: array type has incomplete element type
tables.h:48: error: array type has incomplete element type
tables.h:49: error: array type has incomplete element type
tables.h:50: error: array type has incomplete element type
tables.h:51: error: array type has incomplete element type
tables.h:52: error: array type has incomplete element type
tables.h:53: error: array type has incomplete element type
tables.h:54: error: array type has incomplete element type
tables.h:55: error: array type has incomplete element type
tables.h:56: error: array type has incomplete element type
tables.h:57: error: array type has incomplete element type
tables.h:58: error: array type has incomplete element type
tables.h:59: error: array type has incomplete element type
tables.h:60: error: array type has incomplete element type
tables.h:61: error: array type has incomplete element type
tables.h:62: error: array type has incomplete element type
tables.h:63: error: array type has incomplete element type
tables.h:64: error: array type has incomplete element type
tables.h:65: error: array type has incomplete element type
tables.h:66: error: array type has incomplete element type
tables.h:67: error: array type has incomplete element type
tables.h:68: error: array type has incomplete element type
tables.h:69: error: array type has incomplete element type
tables.h:70: error: array type has incomplete element type
tables.h:71: error: array type has incomplete element type
tables.h:72: error: array type has incomplete element type
tables.h:73: error: array type has incomplete element type
tables.h:74: error: array type has incomplete element type
make: *** [obj/act_comm.o] Error 1
xero@xero-desktop:~/dwmud/src$
Australia Forum Administrator #1
Hard to say without seeing the code. Can you post the first 50 lines of tables.h?

The gcc compiler has tightened up syntax checking recently. Try typing gcc --version and reporting the version, and then doing the same on one that compiles ok.

Is "your mud" one that is available to try? I have Ubuntu and could see what this is about maybe. Can you give the version number, or a link to the source?
#2
xero@xero-desktop:~/dwmud/src$ gcc --version
gcc.real (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Tables.h -----------------------------------------
/* game tables */
extern struct clan_type clan_table[MAX_CLAN];
extern const struct position_type * position_table;
extern const struct sex_type * sex_table;
extern const struct size_type * size_table;
//extern const char *rank_name[MAX_CLAN][MAX_RANK];
/* flag tables */
//extern const struct flag_type * act_flags;
extern const struct flag_type act_flags[];
extern const struct flag_type plr_flags[];
extern const struct flag_type affect_flags[];
extern const struct flag_type off_flags[];
extern const struct flag_type imm_flags[];
extern const struct flag_type form_flags[];
extern const struct flag_type part_flags[];
extern const struct flag_type comm_flags[];
extern const struct flag_type extra_flags[];
extern const struct flag_type wear_flags[];
extern const struct flag_type weapon_flags[];
extern const struct flag_type container_flags[];
extern const struct flag_type portal_flags[];
extern const struct flag_type room_flags[];
extern const struct flag_type exit_flags[];
extern const struct flag_type mprog_flags[];
extern const struct flag_type area_flags[];
extern const struct flag_type sector_flags[];
extern const struct flag_type door_resets[];
extern const struct flag_type wear_loc_strings[];
extern const struct flag_type wear_loc_flags[];
extern const struct flag_type res_flags[];
extern const struct flag_type imm_flags[];
extern const struct flag_type vuln_flags[];
extern const struct flag_type type_flags[];
extern const struct flag_type apply_flags[];
extern const struct flag_type sex_flags[];
extern const struct flag_type furniture_flags[];
extern const struct flag_type weapon_class[];
extern const struct flag_type apply_types[];
extern const struct flag_type weapon_type2[];
extern const struct flag_type apply_types[];
extern const struct flag_type size_flags[];
extern const struct flag_type position_flags[];
extern const struct flag_type ac_type[];
extern const struct bit_type bitvector_type[];
extern const struct flag_type oprog_flags[];
extern const struct flag_type rprog_flags[];
extern char dream_table[25][MSL];

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

USA #3
Looks like it starts around 'res_flags' if I counted correctly unless it instead started around on line 9.
If the errors started on line 9 or the first 'extern const' statement that used 'flag_type' then it means you want to move the 'struct flag_type' defined after that block to before it.
#4
I got tables.h working, now I'm getting these errors..Any Ideas?

xero@xero-desktop:~/dwmud/src$ make
gcc -c -Wall -O -ggdb act_comm.c -o obj/act_comm.o
gcc -c -Wall -O -ggdb act_enter.c -o obj/act_enter.o
gcc -c -Wall -O -ggdb act_info.c -o obj/act_info.o
act_info.c: In function ‘do_who’:
act_info.c:2459: warning: unused variable ‘snnl’
gcc -c -Wall -O -ggdb act_move.c -o obj/act_move.o
gcc -c -Wall -O -ggdb act_obj.c -o obj/act_obj.o
act_obj.c: In function ‘do_administer’:
act_obj.c:2098: warning: the address of ‘arg’ will never be NULL
gcc -c -Wall -O -ggdb act_wiz.c -o obj/act_wiz.o
act_wiz.c: In function ‘do_copyover’:
act_wiz.c:4981: warning: implicit declaration of function ‘logf’
act_wiz.c:4981: warning: incompatible implicit declaration of built-in function ‘logf’
act_wiz.c:4981: error: incompatible type for argument 1 of ‘logf’
act_wiz.c:4981: error: too many arguments to function ‘logf’
act_wiz.c: In function ‘copyover_recover’:
act_wiz.c:5058: warning: incompatible implicit declaration of built-in function ‘logf’
act_wiz.c:5058: error: incompatible type for argument 1 of ‘logf’
act_wiz.c:5065: error: incompatible type for argument 1 of ‘logf’
make: *** [obj/act_wiz.o] Error 1
xero@xero-desktop:~/dwmud/src$


Amended on Sat 30 May 2009 07:12 PM by Xero
Australia Forum Administrator #5
Implicit declaration messages usually mean a .h file has not been included where it should.