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 Cygwin Compiling Problems
|
SWR Cygwin Compiling Problems
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Sun 09 Dec 2001 05:25 AM (UTC) |
| Message
| | Sounds like a problem in the file "makefile". If you can't spot it, upload the contents of it into a message here. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Tue 11 Dec 2001 06:08 AM (UTC) |
| Message
| That looks OK. I'm not sure why you are typing ./make, I would just type "make".
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #2 on Tue 11 Dec 2001 08:29 PM (UTC) |
| Message
| However, "make" on its own should work. Typing "./make" is invoking some file called "make" in that directory. There should be a make program in the bin directory.
In my Cygwin there is a program:
/bin/make.exe
That should be what you are running. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Wed 12 Dec 2001 02:04 AM (UTC) |
| Message
| | Sounds like you also forgot to put in gcc, the compiler. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #4 on Wed 12 Dec 2001 08:45 PM (UTC) |
| Message
| In my version of SWR SMAUG I commented out that line with no ill effect, ie. inside fight.c change the line:
#include <sys/dir.h>
to:
//#include <sys/dir.h>
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #5 on Thu 13 Dec 2001 03:24 AM (UTC) |
| Message
| This line you mean?
extern FILE *fpArea;
You normally can't work around problems (successfully) just by deleting the lines that they occur in. In my earlier suggestion, however that was for an "include" file that didn't exist, and wasn't needed.
Make sure that this line is near the top (near the other "include" statements) ...
#include <stdio.h>
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #6 on Thu 13 Dec 2001 08:52 PM (UTC) |
| Message
| Since you have said 'any MUD codebase', I describe how to compile SMAUG in the web page How to make changes, including compiling
This is not the SWR SMAUG, but the standard one. The source is available from my web page, and it compiled OK with Cygwin, as that was what I used when I went through to write the page.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #7 on Fri 14 Dec 2001 01:10 AM (UTC) |
| Message
| | Try adding NOCRYPT to the makefile as suggested elsewhere in this forum. (Search for that word for more details). |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #8 on Wed 26 Dec 2001 12:29 AM (UTC) |
| Message
| | I don't have my cable modem right now, so uploading a big file is out of the question. Perhaps someone else can help? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #9 on Fri 28 Dec 2001 02:14 AM (UTC) |
| Message
| | Someone else reported a segmentation fault in the linker a day ago. Perhaps it has a bug? Try the Cygwin site and search for any problems with the linker. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #10 on Mon 31 Dec 2001 09:41 PM (UTC) |
| Message
| I have found a clue, maybe you don't have enough memory. A web site I found reports that ld may fail with a segmentation fault if you are short of memory.
It doesn't happen to me, so I don't think the problem is with Cygwin or SMAUG itself. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Zechy
(5 posts) Bio
|
| Date
| Reply #11 on Wed 23 Jan 2002 09:19 AM (UTC) |
| Message
| | Could you please provide some help with the save.c file? I do have crypt.h and i included it so that shouldn't be the problem. However, i still get the same problem as Liltoflm. Please help. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #12 on Sat 26 Jan 2002 08:42 PM (UTC) |
| Message
| Did you follow the "how to compile" instructions elsewhere (one level up from here), and use the cygwin make file?
If you are referring to the message about:
`DIR' undeclared (first use in this function)
... this is nothing to do with crypt.h. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Ravyn
(1 post) Bio
|
| Date
| Reply #13 on Sat 02 Feb 2002 04:12 AM (UTC) |
| Message
| Not sure how it works with the Cygwin,but the crypt insnt linked in the makefile,I tweaked over that for a while on my Linux box,but under where it says if you want debugging comment out this line and uncomment the rest..the uncommented line should have the flags -lm -lcrypt for a gcc compile,that will clear up the "undefined reference to crypt errors...
Ravyn | | 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.
44,679 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top