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
➜ SMAUG
➜ Compiling the server
➜ SWR server
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #15 on Sun 01 Apr 2001 11:26 PM (UTC) |
| Message
| The file swr.exe is the result of the link. In other words, the whole point of compiling is to eventually get the swr.exe file, which you then execute to get SMAUG up. Thus, it won't be in the gzip file.
There is a minor bug in the make file (Makefile) which tries to chmod (change mode) the swr file, however under Cygwin the file is swr.exe (not swr) and thus that fails. However that is not a big deal, otherwise it is ready to run.
This is what I saw when I linked:
$ make
rm -f ../bin/swr
gcc -o ../bin/swr act_comm.o act_info.o act_move.o act_obj.o act_wiz.o boards.o
build.o clans.o comm.o const.o db.o fight.o handler.o hashstr.o id.o interp.o m
agic.o makeobjs.o misc.o mud_comm.o mud_prog.o player.o requests.o reset.o save.
o shops.o skills.o special.o tables.o track.o update.o space.o morespace.o swski
lls.o planets.o vote.o -lm # -lcrypt
chmod g+w ../bin/swr
chmod: ../bin/swr: No such file or directory
make[1]: *** [../bin/swr] Error 1
make[1]: Leaving directory `/home/nick/swr-2.0/src'
make: *** [all] Error 2
$ ls ../bin
swr.exe
Note the swr.exe file in the bin directory.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Translucent Hate
USA (48 posts) Bio
|
| Date
| Reply #16 on Mon 02 Apr 2001 10:26 AM (UTC) |
| Message
| it doesn't seem to make that file at all.
i have something else messed up because i get this
as well as the missing swr.exe
collect2: ld returned 1 exit status
the only bin directory i have is in the cygwin directories
and swr isn't in there after the make.
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #17 on Mon 02 Apr 2001 05:47 PM (UTC) |
| Message
| The bin directory should be there anyway. How did you unzip the original archive? If you used WinZip then there is a problem that it doesn't automatically create empty directories, which bin would have been.
However using tar will work correctly.
eg.
tar xvzf swr-2.0a2.tar.gz
What I would do at this stage is just create (ie. mkdir) the empty bin directory, at the same level as the src directory, then try relinking.
ld is the GNU linker, by the way.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Translucent Hate
USA (48 posts) Bio
|
| Date
| Reply #18 on Mon 02 Apr 2001 06:04 PM (UTC) |
| Message
| got it... there are tons of bugs though unfortunately...
i'll have to get out my RAID and kill them all myself. ;)
thanks...
| | Top |
|
| Posted by
| Shadoan
Canada (21 posts) Bio
|
| Date
| Reply #19 on Fri 06 Apr 2001 02:07 AM (UTC) |
| Message
| Ok i compile everything and it WORKS!!!!!!!!
But now sometimes when i type score...[B][U]BOOOM[/U][/B]
This is what I get:
0 [main] swreality 453205 handle_exceptions: Exception: STATUS_ACCESS_VIOL
ATION
118415 [main] swreality 453205 stackdump: Dumping stack trace to SWREALITY.EXE.
stackdump
Segmentation fault (core dumped)
|
Edge of Darkness MUD and Hosting Service,
Head Administrator(Retired)
All your SWR needs, right here, right now.
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #20 on Fri 06 Apr 2001 02:30 AM (UTC) |
| Message
| Sorry to hear that, but I can't really help debug all of the SWR code.
I didn't write the original SMAUG, and also didn't write the SWR add-ons.
If you are reasonably familiar with C, you could try firing up the debugger and trying to work out where it is going wrong, but sometimes that can be quite time-consuming.
For me, I have to spend my time adding in all the enhancements to MUSHclient that people have been asking for. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Robert
(2 posts) Bio
|
| Date
| Reply #21 on Sat 21 Apr 2001 01:23 AM (UTC) |
| Message
| Well I had the forementioned problem of swr being non-existent, but that was not much of a problem.
I compiled and ran the file, but during the boot process, it turns up an error on not being able to read in/find the area.lst file. (specifically, the program terminated when it says "Reading in area files...", then puts out the shutdown.txt stating the error i mentioned.
I've gone through db.c and mud.h, backtracking the problem, checking to make sure the program is reading into the proper directories. So far, no luck.
I am pretty much using stock SWR, and compiling under the latest version of Cygnus. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #22 on Sat 21 Apr 2001 03:08 AM (UTC) |
| Message
| I usually execute the server from the area directory, and thus it can find the area.lst file - as it is not given a full pathname in the source.
Thus, I do something like this:
cd area
../bin/smaug.exe
(or maybe ../src/smaug.exe)
|
- 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.
77,399 views.
This is page 2, subject is 2 pages long:
1
2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top