Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Majestic-12, Yahoo!, Sogou

Members: 0
Guests: 18
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
612
Jacki72H
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Smaug Snippets » Hotboot code ( aka copyover )
Forum Rules | Mark all | Recent Posts

Hotboot code ( aka copyover )
< Newer Topic :: Older Topic > Bug

Pages:<< prev 1 next >>
Post is unread #1 Mar 10, 2003, 12:04 pm
Go to the top of the page
Go to the bottom of the page

Zhamel

GroupMembers
Posts68
JoinedApr 5, 2005

Ran into a small speed bump. Had no trouble getting everything installed and all that. When I went to recompile I got this error:

gcc -c -O -g2 -Wall act_comm.c
In file included from act_comm.c:24:
mud.h:601: parse error before "typedef"
mud.h:768: duplicate member `character'
mud.h:769: duplicate member `original'
mud.h:770: duplicate member `host'
mud.h:771: duplicate member `port'
mud.h:772: duplicate member `descriptor'
mud.h:773: duplicate member `connected'
mud.h:774: duplicate member `idle'
mud.h:775: duplicate member `lines'
mud.h:776: duplicate member `scrlen'
mud.h:777: duplicate member `fcommand'
mud.h:778: duplicate member `inbuf'
mud.h:779: duplicate member `incomm'
mud.h:780: duplicate member `inlast'
mud.h:781: duplicate member `repeat'
mud.h:782: duplicate member `outbuf'
mud.h:783: duplicate member `outsize'
mud.h:784: duplicate member `outtop'
mud.h:785: duplicate member `pagebuf'
mud.h:786: duplicate member `pagesize'
make[1]: *** [act_comm.o] Error 1
make[1]: Leaving directory `/home2/zhamel/smaug/src'
make: *** [all] Error 2

Any ideas? If you need more info let me know.
       
Post is unread #2 Mar 10, 2003, 3:40 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

First thing I'd do is check mud.h at or above line 601 and see what got munged. It's probably something simple like a misplaced bracket or parentheses.
       
Post is unread #3 Mar 10, 2003, 4:21 pm   Last edited Nov 24, 2007, 4:41 pm by Samson
Go to the top of the page
Go to the bottom of the page

Zhamel

GroupMembers
Posts68
JoinedApr 5, 2005

I didn't see anything that would cause it. But then again so far I've taught myself, that's why I'm asking for help. Here is line 601 and the surrounding code, maybe you can find something...
struct  descriptor_data
{
   DESCRIPTOR_DATA *   next;
   DESCRIPTOR_DATA *   prev;
   DESCRIPTOR_DATA *   snoop_by;
   CHAR_DATA *         character;
   CHAR_DATA *         original;
                                                             739,1         13%
   sh_int       min_remove_level;      /* Minimum level to remove a note  */
   sh_int       max_posts;             /* Maximum amount of notes allowed */
   int          type;                  /* Normal board or mail board? */
};
struct at_color_type
{
 char *name;
 sh_int def_color;
};
/*
* An affect.
*
* So limited... so few fields... should we add more?
*/
struct  affect_data
{
   AFFECT_DATA *       next;
   AFFECT_DATA *       prev;
   sh_int              type;
   int             duration;
   sh_int              location;
   int                 modifier;
   EXT_BV              bitvector;
};

Line 601 is the last }; of struct at_color_type
       
Post is unread #4 Mar 11, 2003, 5:30 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002


739,1 13%


If this line is actually in your code, you're problem lies there. Otherwise I can't find the problem and it could be triggered much farther up the chain. Keep looking.
       
Post is unread #5 Mar 12, 2003, 9:53 pm
Go to the top of the page
Go to the bottom of the page

Zhamel

GroupMembers
Posts68
JoinedApr 5, 2005

It's me again...
I'm using that bug fixed smaug you(Samson) made just so you'll know. I started over, put everything where it goes, double checked. Then I went to 'make'.... and I get this:
save.c: In function `save_char_obj':
save.c:241: too many arguments to function `fwrite_obj'
save.c: At top level:
save.c:536: conflicting types for `fwrite_obj'
mud.h:5065: previous declaration of `fwrite_obj'
save.c:537: parse error before '{' token
save.c:542: parse error before "if"
save.c:580: parse error before '(' token
save.c:594: parse error before string constant
save.c:594: warning: type defaults to `int' in declaration of `fprintf'
save.c:594: warning: conflicting types for built-in function `fprintf'
save.c:594: warning: data definition has no type or storage class
save.c:598: parse error before string constant
save.c:598: warning: type defaults to `int' in declaration of `fprintf'
save.c:598: warning: data definition has no type or storage class
save.c:604: warning: type defaults to `int' in declaration of `wear_loc'
save.c:604: conflicting types for `wear_loc'
save.c:540: previous declaration of `wear_loc'
save.c:604: warning: data definition has no type or storage class
save.c:605: parse error before "for"
save.c:670: warning: type defaults to `int' in declaration of `paf'
save.c:670: conflicting types for `paf'
save.c:539: previous declaration of `paf'
save.c:670: warning: data definition has no type or storage class
save.c:670: warning: type defaults to `int' in declaration of `paf'
save.c:670: invalid type argument of `->'
save.c:670: parse error before ')' token
save.c:707: warning: type defaults to `int' in declaration of `ed'
save.c:707: warning: data definition has no type or storage class
save.c:707: warning: type defaults to `int' in declaration of `ed'
save.c:707: invalid type argument of `->'
save.c:707: parse error before ')' token
save.c:711: parse error before string constant
save.c:711: warning: type defaults to `int' in declaration of `fprintf'
save.c:711: warning: data definition has no type or storage class
save.c:725: conflicting types for `load_char_obj'
mud.h:5061: previous declaration of `load_char_obj'
save.c: In function `write_corpses':
save.c:2200: too few arguments to function `fwrite_obj'
save.c: In function `fwrite_mobile':
save.c:2314: too few arguments to function `fwrite_obj'

Any ideas? I'm learning but all that is just a wee bit beyond me still.
       
Post is unread #6 Mar 12, 2003, 11:34 pm
Go to the top of the page
Go to the bottom of the page

Guest - (Unregistered)

I'll explain the various errors, see if this makes any sense and then look at what you've got and see if corrections can be applied..

save.c: In function `save_char_obj':
save.c:241: too many arguments to function `fwrite_obj'
save.c: At top level:
save.c:536: conflicting types for `fwrite_obj'
mud.h:5065: previous declaration of `fwrite_obj'


Okay, a modification was made in save.c to the fwrite_obj function, probably an extra field to deal with some hotboot task.. But the prototype wasn't changed in mud.h. The decleration line of fwrite_obj in save.c should be identicle in arguments to the prototype line for fwrite_obj in mud.h.

Compare line 536 in save.c to line 5065 in mud.h they apparantly are the two lines with fwrite_obj declerations. Also compare with the install instructions, make sure its correct according to the instructions.

save.c:537: parse error before '{' token
save.c:542: parse error before "if"
save.c:580: parse error before '(' token
save.c:594: parse error before string constant
save.c:594: warning: type defaults to `int' in declaration of `fprintf'
save.c:594: warning: conflicting types for built-in function `fprintf'
save.c:594: warning: data definition has no type or storage class
save.c:598: parse error before string constant
save.c:598: warning: type defaults to `int' in declaration of `fprintf'
save.c:598: warning: data definition has no type or storage class
save.c:604: warning: type defaults to `int' in declaration of `wear_loc'
save.c:604: conflicting types for `wear_loc'
save.c:540: previous declaration of `wear_loc'
save.c:604: warning: data definition has no type or storage class
save.c:605: parse error before "for"
save.c:670: warning: type defaults to `int' in declaration of `paf'
save.c:670: conflicting types for `paf'
save.c:539: previous declaration of `paf'
save.c:670: warning: data definition has no type or storage class
save.c:670: warning: type defaults to `int' in declaration of `paf'
save.c:670: invalid type argument of `->'
save.c:670: parse error before ')' token
save.c:707: warning: type defaults to `int' in declaration of `ed'
save.c:707: warning: data definition has no type or storage class
save.c:707: warning: type defaults to `int' in declaration of `ed'
save.c:707: invalid type argument of `->'
save.c:707: parse error before ')' token
save.c:711: parse error before string constant
save.c:711: warning: type defaults to `int' in declaration of `fprintf'
save.c:711: warning: data definition has no type or storage class


Okay, all this is relating to the fact that the line 536 in save.c is faulty (which is probably why the previous error about mismatch between fwrite_obj prototype and decleration is coming up, you'll have to make a judgement over which line is wrong after you fix this prob), the bulk of the errors are just where the compiler is trying to continue, and of course is screwing up badly...

Check over the install instructions again and ensure that you have changed fwrite_obj correctly and there isn't any junk lying around on or just before the line which is causing it to fail compile. If it appears fine, then you have an error in the file further up the file, unfortunately the compiler doesn't say where (if you're learning you'll get used to this sort of problem

save.c:725: conflicting types for `load_char_obj'
mud.h:5061: previous declaration of `load_char_obj'


Same as the first error you got, compare lines 725 in save.c to line 5061 in mud.h, you applied changes to save.c probably and didn't reflect them in the prototype for load_char_data inside mud.h

save.c: In function `write_corpses':
save.c:2200: too few arguments to function `fwrite_obj'


This may go away when you fix the second error I noted, otherwise fix the previous errors first, check to see if this error has gone away and if its still here compare the line 2200 in save.c that it has the correct number of arguments, if its missing any check the install guide again for the correct arguments the function call needs.

save.c: In function `fwrite_mobile':
save.c:2314: too few arguments to function `fwrite_obj'


This is exactly the same prob as my previous paragraph, you may find it goes away with the first fix I list.

Hopefully that makes a bit of sense and helps
       
Post is unread #7 Mar 13, 2003, 9:16 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Needs to be asked - which version of Smaug are you trying to do this with? Stock 1.4a? FUSS? FixedSmaug? Need to narrow this down some, and of course you'll need to be sure you've followed the directions EXACTLY as shown. I've already tested the install on stock and on FUSS, so there should be no cause for such errors to be present if the directions were followed.
       
Post is unread #8 Mar 13, 2003, 12:21 pm
Go to the top of the page
Go to the bottom of the page

Zhamel

GroupMembers
Posts68
JoinedApr 5, 2005

Samson - I'm using the FUSS that you have on Orions site. I followed the directions to the letter. Twice, don't know why I'm having so much trouble... Maybe I'm allergic to code?

Trax - Yes it did help and made sence.

Maybe you could just email me the changed .c files and I can "compair" it to what I did...
       
Pages:<< prev 1 next >>