A WEIRD error

Posted by Akula on Fri 28 Dec 2001 05:57 PM — 12 posts, 35,538 views.

#0
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
Australia Forum Administrator #1
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>
#2
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
Australia Forum Administrator #3
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.



#4
How do I fix those two errors? I can't run my program until I do so :(
Australia Forum Administrator #5
I'm not sure about the do_track one, and as for tables.c sounds like the file has become corrupted.
#6
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
Australia Forum Administrator #7
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.
#8
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
Australia Forum Administrator #9
Hard to say what would cause that. Are you using standard SMAUG, and if so, which version exactly, or a SWR or other version?
#10
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
Australia Forum Administrator #11
Very strange. You should get all required files when you install. Try doing a Windows "find" to find it.