SWRiP Make error

Posted by JamesTalon on Wed 01 Nov 2006 12:09 AM — 87 posts, 287,385 views.

Canada #0
Alrighty, so, I am attempting to convert my laptop to a linux mud server, and I'm using the SWRiP code (1.1 or so), and after figuring out why make wouldn't work on it (didn't have the GCC stuff installed), I've managed to get it to work partially.

However, after trying the make command again, it made it to act_move.c, where it displayed the following:

Quote:

gcc -c -g3 -Wall -DREQUESTS act_move.c
act_move.c: In function 'generate_exit':
act_move.c:606: error: invalid lvalue in assignment
make[1]: *** [act_move.o] Error 1
make[1]: Leaving directory '/home/James/Desktop/releaserip/src'
make: *** [all] Error 2


I would attach a copy of the file, but I don't know how, so if you think you can help, I can send you a copy of it.

Thanks in advance.
#1
all we need to know is what line 606 in act_move.c looks like
Canada #2
(EXIT_DATA *) pexit = xit;

Thats line 606 in act_move.c
USA #3
That should be a warning, I think.

Look into how FUSS fixed it, I'm sure that was fixed.
Canada #4
I got it fixed, thanks. I had to remove the stuff in the brackets and place an * before the pexit. Now, I gotta figure out which code I want to base my mud off of. So far, it may be FotE.
#5
This * before pexit did not help

I'm compiling in cygwin and it won't let me copy and paste but the message did not change and it continues to give me the same message
USA #6
Cygwin will let you copy-paste. Use Mark, and then select the text.

What did you change the line to?
#7
I dont understand what you are saying ive tried to highlight copy ive tried to control and use the arrow keys to copy so could ya give me instructions on how to copy...sry for being so uneducated but the only way i will learn is to ask questions
#8
nevermind i got it...lol that was simple
#9
make swrip
make[1]: Entering directory `/cygdrive/c/Phobos/swrip200/src'
g++ -c -g3 -Wall -DMCCP act_wiz.c
act_wiz.c: In function `void do_form_password(CHAR_DATA*, char*)':
act_wiz.c:4973: error: `crypt' undeclared (first use this function)
act_wiz.c:4973: error: (Each undeclared identifier is reported only once for eac
h function it appears in.)
make[1]: *** [act_wiz.o] Error 1
make[1]: Leaving directory `/cygdrive/c/Phobos/swrip200/src'
make: *** [all] Error 2

ok thats what im getting now and ive tried to go to act_wiz.c and incert the #include<cyrpt>

Line 4973 is

crypt(arg, argument));
USA #10
You said you fixed the crypt error.
#11
I did in the other file then when that was fixed it gave me that message
USA #12
Following this:
http://www.gammon.com.au/forum/?id=6203&page=999

It should fix crypt errors.
#13
make[1]: Entering directory `/cygdrive/c/Phobos/swrip200/src'
g++ -c -g3 -Wall -DMCCP comm.c
g++ -c -g3 -Wall -DMCCP comments.c
g++ -c -g3 -Wall -DMCCP const.c
g++ -c -g3 -Wall -DMCCP db.c
g++ -c -g3 -Wall -DMCCP fight.c
fight.c:28:21: sys/dir.h: No such file or directory
make[1]: *** [fight.o] Error 1
make[1]: Leaving directory `/cygdrive/c/Phobos/swrip200/src'
make: *** [all] Error 2


thats the error after adding the <cryp> to all the right files dose that mean i need to add a folder named dir.h?
USA #14
Once again, use the search feature. You'll find your answer.
#15
Ok i see that someone says to make a folder named that but i don't want to mess anything up by putting extra files in so can you tell me if its correct or not please
#16
I've checked the forum and cant find a fix to this error

save.c: In function `void load_corpses()':
save.c:2158: error: cannot convert `dirent*' to `direct*' in assignment
save.c:2160: error: invalid use of undefined type `struct direct'
save.c:2145: error: forward declaration of `struct direct'
save.c:2162: error: invalid use of undefined type `struct direct'
save.c:2145: error: forward declaration of `struct direct'
make[1]: *** [save.o] Error 1
make[1]: Leaving directory `/cygdrive/c/Phobos/swrip200/src'
make: *** [all] Error 2


ive looked for the cant convert one and cant find it so if you could direct me in the direction i need to go to find the answer since i cant find it or help me with posting the answer to one or more of the above errors i would be greatfull.
Australia Forum Administrator #17
Search the forum for "direct dirent". This post might help:

http://www.gammon.com.au/forum/bbshowpost.php?id=1237

Otherwise, try some of the other matching ones.
#18
OMG that helped alot but after compiling several other files i got this massive file so much that looking at it makes me want to go have a smoke because it looks like so much work...so heres the message..


make[1]: Entering directory `/cygdrive/c/Phobos/swrip200/src'
g++ -c -g3 -Wall -DNCRYPT -DMCCP space2.c
g++ -c -g3 -Wall -DNCRYPT -DMCCP bounty.c
g++ -c -g3 -Wall -DNCRYPT -DMCCP swskills.c
g++ -c -g3 -Wall -DNCRYPT -DMCCP alias.c
g++ -c -g3 -Wall -DNCRYPT -DMCCP grub.c
g++ -c -g3 -Wall -DNCRYPT -DMCCP mapper.c
g++ -c -g3 -Wall -DNCRYPT -DMCCP templateparse.c
g++ -c -g3 -Wall -DNCRYPT -DMCCP trivia.c
rm -f swrip
g++ -lcrypt -lz -o swrip act_comm.o act_info.o act_move.o act_obj.o act_wiz.o b
oards.o build.o clans.o comm.o comments.o const.o db.o fight.o handler.o hashstr
.o id.o interp.o magic.o makeobjs.o misc.o mud_comm.o mud_prog.o krearena.o play
er.o requests.o reset.o save.o shops.o skills.o special.o tables.o track.o updat
e.o space.o space2.o bounty.o swskills.o alias.o grub.o mapper.o templateparse.o
trivia.o -lm
act_info.o: In function `_Z11do_passwordP9char_dataPc':
/cygdrive/c/Phobos/swrip200/src/act_info.c:3392: undefined reference to `_crypt'

/cygdrive/c/Phobos/swrip200/src/act_info.c:3409: undefined reference to `_crypt'

act_wiz.o: In function `_Z16do_form_passwordP9char_dataPc':
/cygdrive/c/Phobos/swrip200/src/act_wiz.c:4973: undefined reference to `_crypt'
build.o: In function `_Z7do_msetP9char_dataPc':
/cygdrive/c/Phobos/swrip200/src/build.c:1656: undefined reference to `_crypt'
comm.o: In function `_Z19write_to_descriptoriPci':
/cygdrive/c/Phobos/swrip200/src/comm.c:1462: undefined reference to `_deflate'
comm.o: In function `_Z5nannyP15descriptor_dataPc':
/cygdrive/c/Phobos/swrip200/src/comm.c:1732: undefined reference to `_crypt'
/cygdrive/c/Phobos/swrip200/src/comm.c:1821: undefined reference to `_crypt'
/cygdrive/c/Phobos/swrip200/src/comm.c:1842: undefined reference to `_crypt'
comm.o: In function `_Z13compressStartP15descriptor_datah':
/cygdrive/c/Phobos/swrip200/src/comm.c:3837: undefined reference to `_deflateIni
t_'
comm.o: In function `_Z11compressEndP15descriptor_data':
/cygdrive/c/Phobos/swrip200/src/comm.c:3869: undefined reference to `_deflate'
/cygdrive/c/Phobos/swrip200/src/comm.c:3875: undefined reference to `_deflateEnd
'
misc.o: In function `_Z10do_suicideP9char_dataPc':
/cygdrive/c/Phobos/swrip200/src/misc.c:3000: undefined reference to `_crypt'
collect2: ld returned 1 exit status
make[1]: *** [swrip] Error 1
make[1]: Leaving directory `/cygdrive/c/Phobos/swrip200/src'
make: *** [all] Error 2



crazy right i know ok well if you can help that would be great im not sure if you can direct me somewhere i will try searching the forum for each single one if you arnt able to help but im posting this hoping you can help and i dont have to search for like all night to try and find some answers...thanks alot
Australia Forum Administrator #19
You really have two major problems here, one is "crypt", the other is "deflate" and its variants. Search the forum for crypt, that one comes up a lot, and deflate is part of the zlib library. Search for deflate or zlib.
#20
Ok i see that all of my deflate error are in comm.c but i cant find anything helpfull searching the forum i see theres a couple things on deflate but they all say the same thing and non of them apply to the 2.0 swr smaug i have set up so if someone could post with something a little more swr oriented i would be greatfull

~ill be trying to fix the crypt probs as i wait for an answer on the deflate prob~
USA #21
Install the zlib library files. This problem has nothing to do with SWR in specific and everything to do with knowing how to set up a development environment. You are missing library files; you need to install them. If you are using Cygwin, use Cygwin's setup program. If you are using Linux, use your distribution's package installer to get them. (apt-get under Debian-based systems; yum under Fedora.)
#22
That was a little disapointing i downloaded the zlib on my slow arse dial up connection and it didnt help i still get this message

make[1]: Entering directory `/cygdrive/c/phobos/swrip200/src'
rm -f swrip
g++ -lcrypt -lz -o swrip act_comm.o act_info.o act_move.o act_obj.o act_wiz.o b
oards.o build.o clans.o comm.o comments.o const.o db.o fight.o handler.o hashstr
.o id.o interp.o magic.o makeobjs.o misc.o mud_comm.o mud_prog.o krearena.o play
er.o requests.o reset.o save.o shops.o skills.o special.o tables.o track.o updat
e.o space.o space2.o bounty.o swskills.o alias.o grub.o mapper.o templateparse.o
trivia.o -lm
act_info.o: In function `_Z11do_passwordP9char_dataPc':
/cygdrive/c/Phobos/swrip200/src/act_info.c:3392: undefined reference to `_crypt'

/cygdrive/c/Phobos/swrip200/src/act_info.c:3409: undefined reference to `_crypt'

act_wiz.o: In function `_Z16do_form_passwordP9char_dataPc':
/cygdrive/c/Phobos/swrip200/src/act_wiz.c:4973: undefined reference to `_crypt'
build.o: In function `_Z7do_msetP9char_dataPc':
/cygdrive/c/Phobos/swrip200/src/build.c:1656: undefined reference to `_crypt'
comm.o: In function `_Z19write_to_descriptoriPci':
/cygdrive/c/Phobos/swrip200/src/comm.c:1462: undefined reference to `_deflate'
comm.o: In function `_Z5nannyP15descriptor_dataPc':
/cygdrive/c/Phobos/swrip200/src/comm.c:1732: undefined reference to `_crypt'
/cygdrive/c/Phobos/swrip200/src/comm.c:1821: undefined reference to `_crypt'
/cygdrive/c/Phobos/swrip200/src/comm.c:1842: undefined reference to `_crypt'
comm.o: In function `_Z13compressStartP15descriptor_datah':
/cygdrive/c/Phobos/swrip200/src/comm.c:3837: undefined reference to `_deflateIni
t_'
comm.o: In function `_Z11compressEndP15descriptor_data':
/cygdrive/c/Phobos/swrip200/src/comm.c:3869: undefined reference to `_deflate'
/cygdrive/c/Phobos/swrip200/src/comm.c:3875: undefined reference to `_deflateEnd
'
misc.o: In function `_Z10do_suicideP9char_dataPc':
/cygdrive/c/Phobos/swrip200/src/misc.c:3000: undefined reference to `_crypt'
collect2: ld returned 1 exit status
make[1]: *** [swrip] Error 1
make[1]: Leaving directory `/cygdrive/c/phobos/swrip200/src'
make: *** [all] Error 2

so if you have anything else you or anyone else might think will help im more then open for suggestions...seeing that im clueless. :(

USA #23
Did you install zlib?
#24
I downloaded it and i thought cygwin auto installed it auto installed all the other packages
USA #25
You might need to get the "development files" version of the library; it might be called zlib-dev or something like that. See if Cygwin has one of those; if so install it. And if it doesn't, you should search the forums for cygwin zlib, because this has come up several times over the years.
#26
Ok i checked the forum for it after i checked cygwin for the development files and i checked for anything relating to it in cygwin and didn't find anything so if anyone has any other suggestions i am open to trying just about anything
USA #27
You can always try installing zlib from source, following the instructions on:
http://www.zlib.net/

it's pretty easy, just download, extract, ./configure, make, make install.
Australia Forum Administrator #28
I see you are using C++ (the compile line says g++ rather than gcc), so I wonder if it is something to do with the way zlib is being linked in.

The zlib library would be compiled for C, not C++, so it is possible the name mangling is the issue.

If you did not have zlib installed at all I would expect an error message along the lines of:


/usr/bin/ld: cannot find -lz


Try editing the file(s) which includes zlib.h, and changing it from:


#include <zlib.h>


to:


extern "C" {
  #include <zlib.h>
  }


Then recompile *everything* (either remove the .o files, or do a "make clean").
Amended on Mon 29 Oct 2007 08:58 PM by Nick Gammon
#29
Ok i downloaded zlib off a source site and extracted it to the src in my code and make clean but i havent been ablt to get ride of any of the error message

I'm not sure if im installing the file right so if anyone could help me with remote assistance or something so i can get this compiled this is being a pain in the neck. Restating error message...

trivia.o -lm
act_info.o: In function `_Z11do_passwordP9char_dataPc':
/cygdrive/c/phobos/swrip200/src/act_info.c:3392: undefined reference to `_crypt'

/cygdrive/c/phobos/swrip200/src/act_info.c:3409: undefined reference to `_crypt'

act_wiz.o: In function `_Z16do_form_passwordP9char_dataPc':
/cygdrive/c/phobos/swrip200/src/act_wiz.c:4973: undefined reference to `_crypt'
build.o: In function `_Z7do_msetP9char_dataPc':
/cygdrive/c/phobos/swrip200/src/build.c:1656: undefined reference to `_crypt'
comm.o: In function `_Z19write_to_descriptoriPci':
/cygdrive/c/phobos/swrip200/src/comm.c:1462: undefined reference to `_deflate'
comm.o: In function `_Z5nannyP15descriptor_dataPc':
/cygdrive/c/phobos/swrip200/src/comm.c:1732: undefined reference to `_crypt'
/cygdrive/c/phobos/swrip200/src/comm.c:1821: undefined reference to `_crypt'
/cygdrive/c/phobos/swrip200/src/comm.c:1842: undefined reference to `_crypt'
comm.o: In function `_Z13compressStartP15descriptor_datah':
/cygdrive/c/phobos/swrip200/src/comm.c:3837: undefined reference to `_deflateIni
t_'
comm.o: In function `_Z11compressEndP15descriptor_data':
/cygdrive/c/phobos/swrip200/src/comm.c:3869: undefined reference to `_deflate'
/cygdrive/c/phobos/swrip200/src/comm.c:3875: undefined reference to `_deflateEnd
'
misc.o: In function `_Z10do_suicideP9char_dataPc':
/cygdrive/c/phobos/swrip200/src/misc.c:3000: undefined reference to `_crypt'
collect2: ld returned 1 exit status
make[1]: *** [swrip] Error 1
make[1]: Leaving directory `/cygdrive/c/phobos/swrip200/src'
make: *** [all] Error 2
[1]+ Exit 127 ./startup
USA #30
It looks like you haven't done the crypt fix. It's all over the forums; you'll be able to find it easily. You should try doing that to get rid of the crypt errors.

(It's also a comment in the Makefile, if I remember correctly, at least for the FUSS makefiles. You might want to look there too.)
#31
Ok well i have fixed the crypt files before by putting in

#include <crypt.h>

at the top of the files that

/cygdrive/c/phobos/swrip200/src/comm.c:1842: undefined reference to `_crypt'

this apears in a couple files in different lines so if theres something more then #include <crypt.h> i need to put in please let me know so i can get rid of these crypt errors so the error will be less and easier to look at and break down.
USA #32
You need to either install the libcrypt library from Cygwin, if such a thing exists, and then add "-lcrypt" to your linker flags; or, disable the crypt function which is suggested in several forum posts.
Australia Forum Administrator #33
Quote:

Ok i downloaded zlib off a source site and extracted it to the src in my code and make clean but i havent been ablt to get ride of any of the error message


Did you do what I suggested about "extern C"? Since you don't get an error message about not finding the z library I don't think the lack of installation is the problem.
#34
I dont see zlib in any of the files in src so im not sure if that means its not recognizing the zlib file or whats going on there
USA #35
If it didn't have zlib, it would give you an error message like the one Nick mentioned.

Did you do what he said about extern "C"? If you don't work this through with us and tell us what you have and have not done we really can't help you.
#36
I have not done the C thing because you said replace the zlib with extern c zlib or whatever it was and i couldnt find anything in the files saying zlib to modify or replace
USA #37
You should read what Nick suggested again more carefully, he told you to change the part of the file that includes zlib.h. If you can't find it, you should use a search utility such as grep or whatever you use to search in files. ('man grep')
#38
I have used <control f> to use the find command and searched for zlib.h in all the files and zlib without the .h on it and came up with nothing in searching every file in the src folder
USA #39
Try using grep.

grep zlib *.*
Australia Forum Administrator #40
At the top of file mud.h here it is:


/***************************************************************************
*                           STAR WARS REALITY 1.0                          *
*--------------------------------------------------------------------------*
* Star Wars Reality Code Additions and changes from the Smaug Code         *
* copyright (c) 1997, 1998 by Sean Cooper                                  *
* -------------------------------------------------------------------------*
* Starwars and Starwars Names copyright (c) Lucasfilm Ltd.                 *
*--------------------------------------------------------------------------*
* SMAUG 1.0 (C) 1994, 1995, 1996 by Derek Snider                           *
* SMAUG code team: Thoric, Altrag, Blodkai, Narn, Haus,                    *
* Scryn, Rennard, Swordbearer, Gorog, Grishnakh and Tricops                *
* ------------------------------------------------------------------------ *
* Merc 2.1 Diku Mud improvments copyright (C) 1992, 1993 by Michael        *
* Chastain, Michael Quan, and Mitchell Tse.                                *
* Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer,          *
* Michael Seifert, Hans Henrik St{rfeldt, Tom Madsen, and Katja Nyboe.     *
* ------------------------------------------------------------------------ *
*                           Main mud header file                           *
****************************************************************************/
#include <stdlib.h>
#include <limits.h>
#include <sys/cdefs.h>
#include <sys/time.h>
#include <math.h>
#include <stdio.h>
#ifdef MCCP
#include <zlib.h>
#endif



I was suggesting changing that line to:


extern "C" {
  #include <zlib.h>
  }


Quote:

I have used <control f> to use the find command and searched for zlib.h in all the files and zlib without the .h on it and came up with nothing in searching every file in the src folder


I don't understand how that could happen, the reference was right there. In fact, mud.h is the first file I would normally look in, as that is included into most other files.
Amended on Wed 31 Oct 2007 06:34 AM by Nick Gammon
#41
Ok i have changed the mud.h file and used makeclean and make yet i still get this message so are there other files i need to change the zlib in ?
#42
When i type grep zlib *.* i get this message

Binary file act_comm.o matches
Binary file act_info.o matches
Binary file act_move.o matches
Binary file act_obj.o matches
Binary file act_wiz.o matches
Binary file alias.o matches
Binary file boards.o matches
Binary file bounty.o matches
Binary file build.o matches
Binary file clans.o matches
comm.c:void *zlib_alloc(void *opaque, unsigned int items, unsigned int size)
comm.c:void zlib_free(void *opaque, void *address)
comm.c: s->zalloc = zlib_alloc;
comm.c: s->zfree = zlib_free;
Binary file comm.o matches
Binary file comments.o matches
Binary file const.o matches
Binary file db.o matches
Binary file fight.o matches
Binary file grub.o matches
Binary file handler.o matches
Binary file id.o matches
Binary file interp.o matches
Binary file krearena.o matches
Binary file magic.o matches
Binary file makeobjs.o matches
Binary file mapper.o matches
Binary file misc.o matches
mud.h:#include <zlib.h>
Binary file mud_comm.o matches
Binary file mud_prog.o matches
Binary file player.o matches
Binary file requests.o matches
Binary file reset.o matches
Binary file save.o matches
Binary file shops.o matches
Binary file skills.o matches
Binary file space.o matches
Binary file space2.o matches
Binary file special.o matches
Binary file swskills.o matches
Binary file tables.o matches
Binary file templateparse.o matches
Binary file track.o matches
Binary file trivia.o matches
Binary file update.o matches
Binary file zlib.dll matches

so im not sure what that means to everyone but i hope it helps with helping me solve this
Australia Forum Administrator #43
Quote:

...
Binary file misc.o matches
mud.h:#include <zlib.h> <---- there it is
Binary file mud_comm.o matches
...


Despite what David said, you only really need to grep *.c and *.h files because they are source files. Finding it in the .o files doesn't help a heap.

eg.


grep zlib *.c
grep zlib *.h

USA #44
(The reason I suggested *.* was because I wasn't sure if all source files were .c and .h, since g++ is in the picture here. I wasn't sure that it would be clear to grep over source files, so in doubt I suggested *.*...)
#45
Ok when i do .c i get this

comm.c:void *zlib_alloc(void *opaque, unsigned int items, unsigned int size)
comm.c:void zlib_free(void *opaque, void *address)
comm.c: s->zalloc = zlib_alloc;
comm.c: s->zfree = zlib_free;

when i do .h i get this

mud.h:#include <zlib.h>

I'm not sure how this will help in seeking my answer as to know to fix this but if this helps please tell me what i should do next
USA #46
Nick suggested that you add the extern "C" stuff around zlib and then do a full recompile. Did you do that? If not, go do it. If so, what happened?
#47
I have done that in mud.h are there other files i need to do that in?
Australia Forum Administrator #48
I am not sure what you are doing, but I just installed Cygwin on this PC, downloaded swripv200.tar.gz and compiled it OK (and ran it) after making some minor changes. Here they are:


diff -c -r swrip200/src/Makefile swrip200_modified/src/Makefile
*** swrip200/src/Makefile	Sun Jul 11 06:24:20 2004
--- swrip200_modified/src/Makefile	Thu Nov  1 10:09:30 2007
***************
*** 1,6 ****
  CC      = g++
  PROF    = 
! NOCRYPT =
  #Uncomment the next line if you want MCCP support
  #DBUGFLG = -DMCCP
  C_FLAGS = -g3 -Wall $(PROF) $(NOCRYPT) $(DBUGFLG)
--- 1,6 ----
  CC      = g++
  PROF    = 
! NOCRYPT = -DNOCRYPT
  #Uncomment the next line if you want MCCP support
  #DBUGFLG = -DMCCP
  C_FLAGS = -g3 -Wall $(PROF) $(NOCRYPT) $(DBUGFLG)
diff -c -r swrip200/src/act_move.c swrip200_modified/src/act_move.c
*** swrip200/src/act_move.c	Wed Jun  9 09:04:10 2004
--- swrip200_modified/src/act_move.c	Thu Nov  1 09:41:56 2007
***************
*** 601,607 ****
  	  bxit->distance = fulldist - distance;
  	}
      }
!     (EXIT_DATA *) pexit = xit;
      return room;
  }
  
--- 601,607 ----
  	  bxit->distance = fulldist - distance;
  	}
      }
!     pexit = (EXIT_DATA **) xit;
      return room;
  }
  
diff -c -r swrip200/src/fight.c swrip200_modified/src/fight.c
*** swrip200/src/fight.c	Wed Jun  9 09:04:10 2004
--- swrip200_modified/src/fight.c	Thu Nov  1 09:45:20 2007
***************
*** 25,31 ****
  #include <time.h>
  #include <unistd.h>
  #include <sys/stat.h>
! #include <sys/dir.h>
  #include <errno.h>
  #include "mud.h"
  
--- 25,31 ----
  #include <time.h>
  #include <unistd.h>
  #include <sys/stat.h>
! #include <sys/dirent.h>
  #include <errno.h>
  #include "mud.h"
  
diff -c -r swrip200/src/save.c swrip200_modified/src/save.c
*** swrip200/src/save.c	Wed Jun  9 09:04:10 2004
--- swrip200_modified/src/save.c	Thu Nov  1 10:12:17 2007
***************
*** 25,31 ****
  #include <time.h>
  #include <unistd.h>
  #include <sys/stat.h>
! #include <sys/dir.h>
  #include "mud.h"
  
  /*
--- 25,31 ----
  #include <time.h>
  #include <unistd.h>
  #include <sys/stat.h>
! #include <dirent.h>
  #include "mud.h"
  
  /*
***************
*** 2142,2148 ****
  void load_corpses( void )
  {
    DIR *dp;
!   struct direct *de;
    extern FILE *fpArea;
    extern char strArea[MAX_INPUT_LENGTH];
    extern int falling;
--- 2142,2148 ----
  void load_corpses( void )
  {
    DIR *dp;
!   struct dirent *de;
    extern FILE *fpArea;
    extern char strArea[MAX_INPUT_LENGTH];
    extern int falling;
diff -c -r swrip200/src/space.c swrip200_modified/src/space.c
*** swrip200/src/space.c	Sun Jul 11 05:46:47 2004
--- swrip200_modified/src/space.c	Thu Nov  1 09:47:11 2007
***************
*** 26,32 ****
  #include <time.h>
  #include <unistd.h>
  #include <sys/stat.h>
! #include <sys/dir.h>
  #include "mud.h"
  
  SHIP_DATA * first_ship;
--- 26,32 ----
  #include <time.h>
  #include <unistd.h>
  #include <sys/stat.h>
! #include <sys/dirent.h>
  #include "mud.h"
  
  SHIP_DATA * first_ship;
diff -c -r swrip200/src/space2.h swrip200_modified/src/space2.h
*** swrip200/src/space2.h	Sun Jul 11 05:44:09 2004
--- swrip200_modified/src/space2.h	Thu Nov  1 09:47:33 2007
***************
*** 28,34 ****
  #include <string.h>
  #include <time.h>
  #include <sys/stat.h>
! #include <sys/dir.h>
  #include "mud.h"
  #define MAX_TEMPLATETYPE 38
  
--- 28,34 ----
  #include <string.h>
  #include <time.h>
  #include <sys/stat.h>
! #include <sys/dirent.h>
  #include "mud.h"
  #define MAX_TEMPLATETYPE 38


After changing those lines (the above is a diff file, but you can see the file names and line numbers if you want to do it manually), I typed "make" and got this:


$ make
make swrip
make[1]: Entering directory `/home/Owner/swrip200_modified/src'
g++ -c -g3 -Wall  -DNOCRYPT  act_comm.c
g++ -c -g3 -Wall  -DNOCRYPT  act_info.c
g++ -c -g3 -Wall  -DNOCRYPT  act_move.c
g++ -c -g3 -Wall  -DNOCRYPT  act_obj.c
g++ -c -g3 -Wall  -DNOCRYPT  act_wiz.c
g++ -c -g3 -Wall  -DNOCRYPT  boards.c
g++ -c -g3 -Wall  -DNOCRYPT  build.c
g++ -c -g3 -Wall  -DNOCRYPT  clans.c
g++ -c -g3 -Wall  -DNOCRYPT  comm.c
g++ -c -g3 -Wall  -DNOCRYPT  comments.c
g++ -c -g3 -Wall  -DNOCRYPT  const.c
g++ -c -g3 -Wall  -DNOCRYPT  db.c
g++ -c -g3 -Wall  -DNOCRYPT  fight.c
g++ -c -g3 -Wall  -DNOCRYPT  handler.c
g++ -c -g3 -Wall  -DNOCRYPT  hashstr.c
g++ -c -g3 -Wall  -DNOCRYPT  id.c
g++ -c -g3 -Wall  -DNOCRYPT  interp.c
g++ -c -g3 -Wall  -DNOCRYPT  magic.c
g++ -c -g3 -Wall  -DNOCRYPT  makeobjs.c
g++ -c -g3 -Wall  -DNOCRYPT  misc.c
g++ -c -g3 -Wall  -DNOCRYPT  mud_comm.c
g++ -c -g3 -Wall  -DNOCRYPT  mud_prog.c
g++ -c -g3 -Wall  -DNOCRYPT  krearena.c
g++ -c -g3 -Wall  -DNOCRYPT  player.c
g++ -c -g3 -Wall  -DNOCRYPT  requests.c
g++ -c -g3 -Wall  -DNOCRYPT  reset.c
g++ -c -g3 -Wall  -DNOCRYPT  save.c
g++ -c -g3 -Wall  -DNOCRYPT  shops.c
g++ -c -g3 -Wall  -DNOCRYPT  skills.c
g++ -c -g3 -Wall  -DNOCRYPT  special.c
g++ -c -g3 -Wall  -DNOCRYPT  tables.c
g++ -c -g3 -Wall  -DNOCRYPT  track.c
g++ -c -g3 -Wall  -DNOCRYPT  update.c
g++ -c -g3 -Wall  -DNOCRYPT  space.c
space.c: In function `void do_fire(CHAR_DATA*, char*)':
space.c:9755: warning: array subscript has type `char'
space.c:9757: warning: array subscript has type `char'
space.c:9759: warning: array subscript has type `char'
space.c:9769: warning: array subscript has type `char'
space.c:9771: warning: array subscript has type `char'
space.c:9773: warning: array subscript has type `char'
space.c:9783: warning: array subscript has type `char'
space.c:9783: warning: array subscript has type `char'
g++ -c -g3 -Wall  -DNOCRYPT  space2.c
g++ -c -g3 -Wall  -DNOCRYPT  bounty.c
g++ -c -g3 -Wall  -DNOCRYPT  swskills.c
g++ -c -g3 -Wall  -DNOCRYPT  alias.c
g++ -c -g3 -Wall  -DNOCRYPT  grub.c
g++ -c -g3 -Wall  -DNOCRYPT  mapper.c
g++ -c -g3 -Wall  -DNOCRYPT  templateparse.c
g++ -c -g3 -Wall  -DNOCRYPT  trivia.c
rm -f swrip
g++  -lcrypt -lz -o swrip act_comm.o act_info.o act_move.o act_obj.o act_wiz.o b
oards.o build.o clans.o comm.o comments.o const.o db.o fight.o handler.o hashstr
.o id.o interp.o magic.o makeobjs.o misc.o mud_comm.o mud_prog.o krearena.o play
er.o requests.o reset.o save.o shops.o skills.o special.o tables.o track.o updat
e.o space.o space2.o bounty.o swskills.o alias.o grub.o mapper.o templateparse.o
 trivia.o  -lm
chmod g+w swrip
chmod g+w act_comm.o act_info.o act_move.o act_obj.o act_wiz.o boards.o build.o
clans.o comm.o comments.o const.o db.o fight.o handler.o hashstr.o id.o interp.o
 magic.o makeobjs.o misc.o mud_comm.o mud_prog.o krearena.o player.o requests.o
reset.o save.o shops.o skills.o special.o tables.o track.o update.o space.o spac
e2.o bounty.o swskills.o alias.o grub.o mapper.o templateparse.o trivia.o
make[1]: Leaving directory `/home/Owner/swrip200_modified/src'
mv swrip ../bin/swrip

$


There were a couple of warnings, but it worked OK.

Your deflate and other errors must be caused by your not installing the zlib library when you installed Cygwin, although you say you did that.
Amended on Wed 31 Oct 2007 11:27 PM by Nick Gammon
#49
I did not in the beginning thought zlib is installed now and i have make clean and maid then the messages left after everyones help is this...

/cygdrive/c/phobos/swrip200/src/act_info.c:3393: undefined reference to `_crypt'

/cygdrive/c/phobos/swrip200/src/act_info.c:3410: undefined reference to `_crypt'

act_wiz.o: In function `_Z16do_form_passwordP9char_dataPc':
/cygdrive/c/phobos/swrip200/src/act_wiz.c:4973: undefined reference to `_crypt'
build.o: In function `_Z7do_msetP9char_dataPc':
/cygdrive/c/phobos/swrip200/src/build.c:1656: undefined reference to `_crypt'
comm.o: In function `_Z19write_to_descriptoriPci':
/cygdrive/c/phobos/swrip200/src/comm.c:1462: undefined reference to `_deflate'
comm.o: In function `_Z5nannyP15descriptor_dataPc':
/cygdrive/c/phobos/swrip200/src/comm.c:1732: undefined reference to `_crypt'
/cygdrive/c/phobos/swrip200/src/comm.c:1821: undefined reference to `_crypt'
/cygdrive/c/phobos/swrip200/src/comm.c:1842: undefined reference to `_crypt'
comm.o: In function `_Z13compressStartP15descriptor_datah':
/cygdrive/c/phobos/swrip200/src/comm.c:3837: undefined reference to `_deflateIni
t_'
comm.o: In function `_Z11compressEndP15descriptor_data':
/cygdrive/c/phobos/swrip200/src/comm.c:3869: undefined reference to `_deflate'
/cygdrive/c/phobos/swrip200/src/comm.c:3875: undefined reference to `_deflateEnd
'
misc.o: In function `_Z10do_suicideP9char_dataPc':
/cygdrive/c/phobos/swrip200/src/misc.c:3000: undefined reference to `_crypt'
collect2: ld returned 1 exit status
make[1]: *** [swrip] Error 1
make[1]: Leaving directory `/cygdrive/c/phobos/swrip200/src'
make: *** [all] Error 2


so im not sure where to go from here everyones asked me the same questions over and over and i have posted several time what i have done and i am not trying to sound like im not appreshiating what everyone is doing for me but i have been told to not post things over and over even in a topic so if theres confusion on what i have done please read over the whole topic i know theres 4 pages but most of it is repeditive so it wont take long that way we can try to move forword.
Australia Forum Administrator #50
When you do "make clean" followed by "make" do you see this? ...

$ make
make swrip
make[1]: Entering directory `/home/Owner/swrip200_modified/src'
g++ -c -g3 -Wall  -DNOCRYPT  act_comm.c
g++ -c -g3 -Wall  -DNOCRYPT  act_info.c
g++ -c -g3 -Wall  -DNOCRYPT  act_move.c
g++ -c -g3 -Wall  -DNOCRYPT  act_obj.c
g++ -c -g3 -Wall  -DNOCRYPT  act_wiz.c
... and so on.


That is, is the -DNOCRYPT there? If so, you should not be getting the crypt errors.
Australia Forum Administrator #51
I see from your earlier post:


make[1]: Entering directory `/cygdrive/c/Phobos/swrip200/src'
g++ -c -g3 -Wall -DNCRYPT -DMCCP space2.c
g++ -c -g3 -Wall -DNCRYPT -DMCCP bounty.c
g++ -c -g3 -Wall -DNCRYPT -DMCCP swskills.c


There is a big difference between NCRYPT and NOCRYPT, check your spelling.
Australia Forum Administrator #52
I can reproduce your problem if I turn MCCP support on, and am investigating this. Meanwhile, for a clean compile, disable MCCP, by editing the Makefile:


#Uncomment the next line if you want MCCP support
#DBUGFLG = -DMCCP   <--- comment out MCCP support
Australia Forum Administrator #53
I see a comment of mine made in 2002 "For some reason we have yet to establish, MCCP doesn't work under Cygwin":

http://www.gammon.com.au/forum/?id=813

So, for the time being, try living without MCCP.
#54
Ok i have changed the makefile so its

#DBUGFLG = -DMCCP

if thats what you mean it didnt work if thats not what you meant what do you want me to change?
Australia Forum Administrator #55
Did you do a make clean? Can you show me the compiler output please - all of it.

[EDIT]

Quote:

... if thats what you mean it didnt work ...


I meant that, but after changing the Makefile you need to "make clean".
Amended on Thu 01 Nov 2007 01:23 AM by Nick Gammon
USA #56
Nick posted a list of changes to make; try getting a fresh copy and then apply exactly the changes he lists.
Australia Forum Administrator #57
Well I worked it out, this is a bit strange. Change two lines in the Makefile:

Change:


L_FLAGS = $(PROF) -lz


to remove the -lz, like this:


L_FLAGS = $(PROF)


And add -lz to the end of the line that links. That is, change:


        gcc $(L_FLAGS) -o swrip $(O_FILES) -lm


to read:


        gcc $(L_FLAGS) -o swrip $(O_FILES) -lm -lz

#58
L_FLAGS = $(PROF) -lcrypt -lz

is what i have i took out the -lcrypt -lz
and im left with

L_FLAGS = $(PROF)

The second change gcc $(L_FLAGS) -o swrip $(O_FILES) -lm
i could not find this line in the makefile so im not sure what you would like me to do about that but i changed the first one
Australia Forum Administrator #59
Can you copy and paste your Makefile then please?
#60
CC = g++
PROF =
#NOCRYPT = -DNOCRYPT
#Uncomment the next line if you want MCCP support
#DBUGFLG = -DMCCP
C_FLAGS = -g3 -Wall $(PROF) $(NOCRYPT) $(DBUGFLG)
L_FLAGS = $(PROF)

O_FILES = act_comm.o act_info.o act_move.o act_obj.o act_wiz.o boards.o \
build.o clans.o comm.o comments.o const.o db.o fight.o \
handler.o hashstr.o id.o interp.o magic.o makeobjs.o \
misc.o mud_comm.o mud_prog.o krearena.o player.o requests.o \
reset.o save.o shops.o skills.o special.o tables.o track.o update.o \
space.o space2.o bounty.o swskills.o alias.o grub.o mapper.o templateparse.o trivia.o

C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c boards.c \
build.c clans.c comm.c comments.c const.c db.c fight.c \
handler.c hashstr.c id.c interp.c magic.c makeobjs.c \
misc.c mud_comm.c mud_prog.c krearena.c player.c requests.c \
reset.c save.c shops.c skills.c special.c tables.c track.c update.c \
space.c space2.c bounty.c swskills.c alias.c grub.c mapper.c templateparse.c trivia.c

H_FILES = mud.h bet.h

all:
# co $(H_FILES)
make swrip
# rm -f $(H_FILES)
mv swrip ../bin/swrip

swrip: $(O_FILES)
rm -f swrip
$(CC) $(L_FLAGS) -o swrip $(O_FILES) -lm
chmod g+w swrip.exe
chmod g+w $(O_FILES)

.c.o: mud.h
$(CC) -c $(C_FLAGS) $<

clean:
rm -f $(O_FILES)


theres the makefile i pulled it up in notepad...not that it matters but there it is
Australia Forum Administrator #61
Ah I see, I had changed mine slightly to try to fix the problem. Change this line:


$(CC) $(L_FLAGS) -o swrip $(O_FILES) -lm


to:


$(CC) $(L_FLAGS) -o swrip $(O_FILES) -lm -lz
#62
Omg im so happy!!! that fixed those errors now i need to fix the crypt parts i have put the #include <crypt.h> in the files to try and fix them but after doing that i still have these ones left

act_info.o: In function `_Z11do_passwordP9char_dataPc':
/cygdrive/c/phobos/swrip200/src/act_info.c:3393: undefined reference to `_crypt'

/cygdrive/c/phobos/swrip200/src/act_info.c:3410: undefined reference to `_crypt'

act_wiz.o: In function `_Z16do_form_passwordP9char_dataPc':
/cygdrive/c/phobos/swrip200/src/act_wiz.c:4973: undefined reference to `_crypt'
build.o: In function `_Z7do_msetP9char_dataPc':
/cygdrive/c/phobos/swrip200/src/build.c:1656: undefined reference to `_crypt'
comm.o: In function `_Z5nannyP15descriptor_dataPc':
/cygdrive/c/phobos/swrip200/src/comm.c:1732: undefined reference to `_crypt'
comm.o:/cygdrive/c/phobos/swrip200/src/comm.c:1821: more undefined references to
`_crypt' follow
collect2: ld returned 1 exit status
make[1]: *** [swrip] Error 1
make[1]: Leaving directory `/cygdrive/c/phobos/swrip200/src'
make: *** [all] Error 2


so i thank you a ton for helping me fix the big problem now if you wouldn't mind also helping me with this i would be greatfull
Australia Forum Administrator #63
Change


#NOCRYPT = -DNOCRYPT


to:


NOCRYPT = -DNOCRYPT


in your Makefile, do another "make clean" and then "make".

#64
Ok the errors are gone now what do i do i thought i was suppose to do ./startup & but it says bash: ./startup: No such file or directory so im not sure what to do since its compiled how do i start it
#65
Ok ./startup & worked but i dont see a startup file where i look to see what the port is
USA #66
I don't understand. You say ./startup worked, but you don't see a startup file. ./startup couldn't have worked without a startup file.
#67
$ ./startup &
[4] 3888
[3] Exit 127 ./startup
bash: ./startup: No such file or directory

is what i get but there isnt a file named startup or anything like it in the src
#68
nevermind it was in the bin folder
#69
Ok now it is telling me %%% Error Connecting: Connection refused and wont connect
Australia Forum Administrator #70
You need to be in the area directory. This is how I got it to work - after compiling.


$ cd ../area

$ ../bin/swrip.exe

Thu Nov  1 17:05:36 2007 :: PID: 2520
Thu Nov  1 17:05:36 2007 :: Booting Database
 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Thu Nov  1 17:05:36 2007 :: [*****] BOOT: ---------------------[ Boot Log ]-----
---------------
Thu Nov  1 17:05:36 2007 :: Loading commands
Thu Nov  1 17:05:36 2007 :: Loading sysdata configuration...
Thu Nov  1 17:05:36 2007 :: Loading socials
Thu Nov  1 17:05:36 2007 :: Loading skill table
Thu Nov  1 17:05:36 2007 :: Sorting skill table...
Thu Nov  1 17:05:36 2007 :: Loading herb table
Thu Nov  1 17:05:36 2007 :: Making wizlist
Thu Nov  1 17:05:36 2007 :: Initializing request pipe
Thu Nov  1 17:05:36 2007 :: Initializing random number generator
Thu Nov  1 17:05:36 2007 :: Setting time and weather
Thu Nov  1 17:05:36 2007 :: Assigning gsn's
ASSIGN_GSN: Skill makehulltracker not found.
ASSIGN_GSN: Skill makeinternaltracker not found.
ASSIGN_GSN: Skill makemissile not found.
ASSIGN_GSN: Skill shieldwork not found.
ASSIGN_GSN: Skill feed not found.
ASSIGN_GSN: Skill bite not found.
ASSIGN_GSN: Skill claw not found.
ASSIGN_GSN: Skill sting not found.
ASSIGN_GSN: Skill tail not found.
ASSIGN_GSN: Skill study not found.
ASSIGN_GSN: Skill brew not found.
ASSIGN_GSN: Skill slice not found.
ASSIGN_GSN: Skill chill touch not found.
ASSIGN_GSN: Skill curse not found.
Thu Nov  1 17:05:36 2007 :: Reading in area files...
(help.are)
limbo.are     : Rooms:     1 - 45    Objs:     2 - 99    Mobs:     1 - 98
newacad.are   : Rooms: 10300 - 10430 Objs: 10300 - 10499 Mobs: 10340 - 10499
Thu Nov  1 17:05:36 2007 :: [*****] FILE: space.are LINE: 9717
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Get_obj_index: bad vnum 2700.
Thu Nov  1 17:05:36 2007 :: [*****] BOOT: Load_resets: space.are (1) 'O': object
 2700 doesn't exist.
space.are     : Rooms: 32000 - 32499 Objs: 32000 - 32499 Mobs: 32000 - 32499
omni_complex  : Rooms:   100 - 150   Objs:   100 - 150   Mobs:     0 - 0
templaterooms.are: Rooms:  2700 - 3197  Objs:  2700 - 2700  Mobs:     0 - 0
Thu Nov  1 17:05:36 2007 :: Fixing exits
Thu Nov  1 17:05:36 2007 :: Initializing economy
Thu Nov  1 17:05:36 2007 :: Loading buildlist
Thu Nov  1 17:05:36 2007 :: ../gods/Darrik
Thu Nov  1 17:05:36 2007 :: Loading boards
Thu Nov  1 17:05:36 2007 :: Loading clans
Thu Nov  1 17:05:36 2007 :: Loading clans...
Thu Nov  1 17:05:36 2007 :: empire.clan
Thu Nov  1 17:05:36 2007 :: Storeroom not found
Thu Nov  1 17:05:36 2007 :: rebel.clan
Thu Nov  1 17:05:36 2007 :: Storeroom not found
Thu Nov  1 17:05:36 2007 :: assassins.guild
Thu Nov  1 17:05:36 2007 :: Storeroom not found
Thu Nov  1 17:05:36 2007 :: csa.clan
Thu Nov  1 17:05:36 2007 :: Storeroom not found
Thu Nov  1 17:05:36 2007 :: Triad.clan
Thu Nov  1 17:05:36 2007 :: Storeroom not found
Thu Nov  1 17:05:36 2007 :: BaClan
Thu Nov  1 17:05:36 2007 :: Storeroom not found
Thu Nov  1 17:05:36 2007 :: sexicouncil.clan
Thu Nov  1 17:05:36 2007 :: Storeroom not found
Thu Nov  1 17:05:36 2007 :: tttech.clan
Thu Nov  1 17:05:36 2007 :: Storeroom not found
Thu Nov  1 17:05:36 2007 :: $
Thu Nov  1 17:05:36 2007 ::  Done clans
Sorting clans....
Thu Nov  1 17:05:36 2007 ::  Done sorting
Thu Nov  1 17:05:36 2007 :: Loading senate
Thu Nov  1 17:05:36 2007 :: Loading bans
Thu Nov  1 17:05:36 2007 :: Loading corpses
Thu Nov  1 17:05:36 2007 :: Loading space
Thu Nov  1 17:05:36 2007 :: Loading space...
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Fread_spaceobject: no match: ~
Thu Nov  1 17:05:36 2007 ::  Done spaceobjects
Thu Nov  1 17:05:36 2007 :: Loading ships
Thu Nov  1 17:05:36 2007 :: Loading ships...
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 ::  Done ships
Thu Nov  1 17:05:36 2007 :: Loading bounties
Thu Nov  1 17:05:36 2007 :: Loading disintigrations...
Thu Nov  1 17:05:36 2007 ::  Done bounties
Thu Nov  1 17:05:36 2007 :: Loading governments
Thu Nov  1 17:05:36 2007 :: Loading planets...
Thu Nov  1 17:05:36 2007 :: $
Thu Nov  1 17:05:36 2007 ::  Done planets
Thu Nov  1 17:05:36 2007 :: Resetting areas
Resetting: limbo.are
Resetting: newacad.are
Resetting: space.are
Resetting: omni_complex
Resetting: templaterooms.are
Thu Nov  1 17:05:36 2007 :: Reading in Vendors
Thu Nov  1 17:05:36 2007 :: Reading in Storerooms
Thu Nov  1 17:05:36 2007 :: Initializing socket
Thu Nov  1 17:05:36 2007 :: Rise in Power ready on port 4000.

#71
Ok well it was up then i was in the academy trying to get the doll and i had a crash and my connection is refused and this is what cygwin tells me

make[1]: Leaving directory `/cygdrive/c/phobos/swrip200/src'
mv swrip ../bin/swrip
mv: cannot move `swrip.exe' to `../bin/swrip.exe': Permission denied
make: *** [all] Error 1
[4]+ Exit 127 ./startup

so if anyone can help me i'd apreshiate it also how would i change the authorization so i can make myself an immy without having to graduate the academt because the mobprog is messed up and the child wont give me the luke action figure
USA #72
If you had an actual crash, you should try running your game under gdb. Nick has an excellent guide:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=3653

As for making yourself an imm, you can edit your pfile to set your level to 65. But the game might come with an imm character already; check the docs. (SmaugFUSS 1.8 for instance comes with an 'Admin' character.)
#73
Ok reading that leaves me with more questions then i started with but i havent changed anything and i guess that means it is just unexpected behavior so if anyone knows how i would narrow this problem down because im not getting anything in gdb please help!
Australia Forum Administrator #74
It goes a bit beyond the scope of what we can offer here, to tease out of you every last bit of information, to assist in such crashes.

Quote:

... i was in the academy trying to get the doll ...


What doll? I haven't played SWRIP myself, so I have no idea what this refers to.

Quote:

... i had a crash ...


What sort of crash? What was the error message?

Quote:

... im not getting anything in gdb ...


Not getting anything? Did you run it under gdb? Did you reproduce the crash? If so, did you see any useful error messages? When I ran under gdb I saw something along these lines:


$ gdb ../bin/swrip.exe

GNU gdb 6.5.50.20060706-cvs (cygwin-special)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...

(gdb) run

Starting program: /home/Owner/swrip200_modified/bin/swrip.exe
Loaded symbols for /cygdrive/c/WINDOWS/system32/ntdll.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/kernel32.dll
Loaded symbols for /usr/bin/cygwin1.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/advapi32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/rpcrt4.dll
Loaded symbols for /usr/bin/cygz.dll
Fri Nov  2 10:42:42 2007 :: PID: 2576
Fri Nov  2 10:42:42 2007 :: Booting Database
... rest of booting messages ...


You really need to try to help yourself. A message like "I got a crash, please help" is so vague we can't actually help you at all.

I want to point out that these code bases are not professionally supported. The coders of them have tailored them to suit themselves, and they have very kindly made them publicly available. The general idea is that, if you want to run one yourself, you should have some basic programming and Unix knowledge. Otherwise you are going to get very frustrated.
Amended on Thu 01 Nov 2007 11:53 PM by Nick Gammon
#75
$ gdb ../bin/swrip.exe
GNU gdb 6.5.50.20060706-cvs (cygwin-special)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...../bin/swrip.exe: No such file or
directory.

(gdb) run
Starting program:
No executable specified, use `target exec'.
(gdb)

i have tried gdb ../bin/swrip.exe and it wont show the file so im not sure how i would get gdb to open it and show me what has happen so i can narrow down what caused the crash
Australia Forum Administrator #76
Quote:

../bin/swrip.exe: No such file or directory.


Well, you need to be in the area directory, and have the executable available in the specified directory.
#77
Ok after running the gdb i get this message

(gdb) run
Starting program: /cygdrive/c/phobos/swrip200/bin/swrip.exe
Loaded symbols for /cygdrive/c/WINDOWS/system32/ntdll.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/kernel32.dll
Loaded symbols for /usr/bin/cygwin1.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/advapi32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/rpcrt4.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/secur32.dll
Thu Nov 1 20:09:35 2007 :: PID: 3048
Thu Nov 1 20:09:35 2007 :: Booting Database
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Thu Nov 1 20:09:35 2007 :: [*****] BOOT: ---------------------[ Boot Log ]-----
---------------
Thu Nov 1 20:09:35 2007 :: Loading commands
Thu Nov 1 20:09:35 2007 :: Loading sysdata configuration...
Thu Nov 1 20:09:35 2007 :: Loading socials
Thu Nov 1 20:09:35 2007 :: Loading skill table
Thu Nov 1 20:09:35 2007 :: Sorting skill table...
Thu Nov 1 20:09:35 2007 :: Loading herb table
Thu Nov 1 20:09:35 2007 :: Making wizlist
Thu Nov 1 20:09:35 2007 :: Initializing request pipe
Thu Nov 1 20:09:35 2007 :: Initializing random number generator
Thu Nov 1 20:09:35 2007 :: Setting time and weather
Thu Nov 1 20:09:35 2007 :: Assigning gsn's
ASSIGN_GSN: Skill makehulltracker not found.
ASSIGN_GSN: Skill makeinternaltracker not found.
ASSIGN_GSN: Skill makemissile not found.
ASSIGN_GSN: Skill shieldwork not found.
ASSIGN_GSN: Skill feed not found.
ASSIGN_GSN: Skill bite not found.
ASSIGN_GSN: Skill claw not found.
ASSIGN_GSN: Skill sting not found.
ASSIGN_GSN: Skill tail not found.
ASSIGN_GSN: Skill study not found.
ASSIGN_GSN: Skill brew not found.
ASSIGN_GSN: Skill slice not found.
ASSIGN_GSN: Skill chill touch not found.
ASSIGN_GSN: Skill curse not found.
Thu Nov 1 20:09:35 2007 :: Reading in area files...

Program exited with code 01.
(gdb)

so i see nothing wrong with the files but im not very educated about gdb yet so if this helps specify please help me in knowing what to do next
Australia Forum Administrator #78
Quote:

Thu Nov 1 20:09:35 2007 :: Reading in area files...

Program exited with code 01.


Were you in the area directory when you ran gdb, as I said in my previous post?
#79
David@dave /cygdrive/c/phobos/swrip200/bin

because thats where my swrip.exe file is and thats what im having a problem with
USA #80
You were told that you need to run it from the area directory; it's extremely hard to help you if you don't follow instructions.

You need to be in the area directory so that it can load up the area files. That's just the way the program works, so you will have to do it.
#81
Sry i seen that the link that one of the post game me instructions to run it

I am in the area file and this is the directory its in

C:/phobos/swrip200/area

and this is what i see

area.lst cleanhelp.are limbo.are omni_complex templaterooms.are
backup help.are newacad.are space.are
USA #82
Run the exec file while inside the area dir.
#83
when i do "run exec" i get this error



Error: couldn't find exec anywhere
I even looked in the PATH
I also tried appending the following extensions:
[1]:
[2]:,exe.
Australia Forum Administrator #84
You have decided to not follow my suggestions, and then you post a message about how it doesn't work. I previously posted (on an earlier page now) this:

Quote:

You need to be in the area directory. This is how I got it to work - after compiling.

$ cd ../area

$ ../bin/swrip.exe


That is, you change to the area directory, and then by typing "../bin/swrip.exe" you run the program, which is in a different directory. If you wanted to debug, you just add "gdb" to the start of the line, like this:


$ gdb ../bin/swrip.exe

#85
Ok thank you now I'm seeking the file that the authorization would be, There is a mobprogram in the newbie academy that is not working so i can't graduate the academy and the profile for a player is not made untill you graduate so i cant make myself an immortal how would i go about changing the authorization so it authorizes my pfile without having to go through the academy like making it authorize me in the first room in the academy so i can advance myself to immortal and fix the mobprog in the game instead of having to do it in the area files
Australia Forum Administrator #86
For general questions about SMAUG, see my FAQ at:

http://www.gammon.com.au/scripts/showfaq.php?productid=6

Look in particular at the answer to:

"How do I get players to go through the beginner training area?"

In your case, you need to do the opposite, which is to set the "Waitforauth" setting to zero.

Can you please start a new thread if you are asking a completely different question? This is really nothing to do with "SWRiP Make error" or "Compiling the server".