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 ➜ SMAUG ➜ Compiling the server ➜ A WEIRD error

A WEIRD error

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


Posted by Akula   (24 posts)  Bio
Date Fri 28 Dec 2001 05:57 PM (UTC)
Message
I finally got the correct version of Cygwin that I could use the 'make' command.
I downloaded smaug1.4a_mxp.tgz and followed the instructions in the example to compile and make systematic changes. However when I type 'make' instead of compiling I get this message that
regex.h No such file or directory and it leaves my system without compiling it.
Someone please help me
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 29 Dec 2001 09:46 PM (UTC)
Message
regex.h seems to be called in act_comm.c, see the lines below ...



#ifdef REGEX
        #include <regex.h>
#endif

#ifdef FREEBSD
        #include <unistd.h>
        #include <regex.h>
#endif
#include "mud.h"


#ifdef REGEX
        extern int re_exec _RE_ARGS ((const char *));
#endif

#ifndef WIN32
  #include <regex.h>
#endif



Maybe your Makefile is not quite right, however as a quick fix, try commenting out the regex.h lines, ie. changing the 3 occurrences (lines 25, 30 and 40) to read ...


// #include <regex.h>

- Nick Gammon

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

Posted by Akula   (24 posts)  Bio
Date Reply #2 on Sun 30 Dec 2001 06:53 PM (UTC)
Message
I found out what the problem was. I had not downloaded a specific 'regex' file for my cygwin in order to compile the program. *blushes*
I have made some changes to the sourcecode, unfortunately I have encountered yet another problem.
When I attempt to make it I get the error that cygwin/bin/ld Final link failed: Bad Value
as well as the error
dist/src/tables.c:692 undefined reference to 'do_track'.
The tables.c file also mostly comes up in squares and weird html symbols.
Another thing is when I try clicking on smaug.exe through WINDOWS it says that I am required to have a file a DLL file is missing, but I have installed every Cygwin file possible.
and thanks for all your help on answering question in the past :)
- AKula
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #3 on Sun 30 Dec 2001 10:20 PM (UTC)
Message
Quote:

Another thing is when I try clicking on smaug.exe through WINDOWS it says that I am required to have a file a DLL file is missing, but I have installed every Cygwin file possible.


There is a recent post about this. To double-click the smaug.exe from Windows (not from within Cygwin) you need to have access to the cygwin.dll file. Either put it into your 'path' (eg. the Windows System directory) or in the *same* directory as smaug.exe.




- Nick Gammon

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

Posted by Akula   (24 posts)  Bio
Date Reply #4 on Mon 31 Dec 2001 01:14 AM (UTC)
Message
How do I fix those two errors? I can't run my program until I do so :(
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #5 on Mon 31 Dec 2001 01:51 AM (UTC)
Message
I'm not sure about the do_track one, and as for tables.c sounds like the file has become corrupted.

- Nick Gammon

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

Posted by Akula   (24 posts)  Bio
Date Reply #6 on Mon 31 Dec 2001 08:58 PM (UTC)
Message
Well, I was able to get rid of those errors by renistalling smaug and placing the default file in its place.
The error I get now is 'unterminated character constant' on comm.c:2059
Line 2059 contains the following which I can find NO problem with whatsoever:

write_to_buffer( d, "Passwords don't match.\n\rRetype password: "
0 );
I am also having the same problem as Kevin, my new races and classes are not showing up at the start of the MUD, however I am able to put them in.
Thanks a lot for all your help, and hopefully this will be my last annoying post :)

Akula
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #7 on Mon 31 Dec 2001 09:54 PM (UTC)
Message
Very strange. Check the previous line? Look using a hex editor for some strange character (eg. a null).

For instance, UltraEdit lets you go into "hex editing" mode.

- Nick Gammon

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

Posted by Akula   (24 posts)  Bio
Date Reply #8 on Tue 01 Jan 2002 03:37 AM (UTC)
Message
Another error I just realized, I don't know WHAT I did to cause this mess.
But now it won't 'disconnect from server' at appropriate times - e.g. getting the wrong password, 'quitting'.
Your character logs off and stuff but it won't disconnect you from your client unless I use a creator and shut it down manually.
What do I do to fix this? It's driving me nuts.
Akula
I hope this is the last pitiful mistake I waste your time with
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #9 on Tue 01 Jan 2002 06:51 AM (UTC)
Message
Hard to say what would cause that. Are you using standard SMAUG, and if so, which version exactly, or a SWR or other version?

- Nick Gammon

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

Posted by Akula   (24 posts)  Bio
Date Reply #10 on Wed 02 Jan 2002 01:47 AM (UTC)
Message
I bet I made some change to the system that messed everything up so I'm just reinstalling everything from scratch as I didn't get too far.
However when I try editting stuff through cygwin (vi command) I get the message:
A required .DLL file, CYGINTL.DLL, was not found.
Then it says on cygwin:
/usr/bin/vi: Permission Denied.
I'm sure I installing the whole cygwin, how do I get this file? With it I'll be in a lot better shape. Perhaps someone can even email it to me as I am so desperate.
Akula
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #11 on Wed 02 Jan 2002 04:17 AM (UTC)
Message
Very strange. You should get all required files when you install. Try doing a Windows "find" to find it.

- 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.


33,898 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.