Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ ROM ➜ Compiling the server ➜ Started own server using Ubuntu 8.04

Started own server using Ubuntu 8.04

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Xero   (3 posts)  Bio
Date Fri 29 May 2009 07:28 AM (UTC)
Message
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$
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 29 May 2009 07:42 AM (UTC)
Message
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?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Xero   (3 posts)  Bio
Date Reply #2 on Fri 29 May 2009 07:54 AM (UTC)
Message
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;
};

Top

Posted by ThomasWatts   USA  (66 posts)  Bio
Date Reply #3 on Fri 29 May 2009 08:48 AM (UTC)
Message
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.
Top

Posted by Xero   (3 posts)  Bio
Date Reply #4 on Sat 30 May 2009 03:55 AM (UTC)

Amended on Sat 30 May 2009 07:12 PM (UTC) by Xero

Message
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$


Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #5 on Sat 30 May 2009 09:43 PM (UTC)
Message
Implicit declaration messages usually mean a .h file has not been included where it should.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


21,328 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.