[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Compiling the server
. . -> [Subject]  re_exec

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: re_exec
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please)
Maximum of 6000 characters. Text only please, no HTML.
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by AlaricX   (23 posts)  [Biography] bio
Date Thu 06 Jun 2002 11:03 PM (UTC)  quote  ]
Message
ok, if this hasnt already been answered, maybe the compile is halting as you said in the first post because of the Parse Error!?


act_comm.c:36: parse error before '_RE_ARGS_'

....
whatever...
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Fri 31 May 2002 10:15 PM (UTC)  quote  ]
Message
Just use the "capture text" feature of command windows (see the system menu). You can "start edit", click and drag over the message, then press <enter>. The message is then on the clipboard.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Cyldor   USA  (13 posts)  [Biography] bio
Date Fri 31 May 2002 05:12 PM (UTC)  quote  ]
Message
Blah, im clueless..its calling for the function mcount, yet mcount is not even in the src. Its trying to call it out of comm.c and act_info.c

If I could get the command to write all the errors to a file, I will piost the full errors here.
[Go to top] top

Posted by Cyldor   USA  (13 posts)  [Biography] bio
Date Fri 31 May 2002 11:53 AM (UTC)  quote  ]

Amended on Fri 31 May 2002 04:59 PM (UTC) by Cyldor

Message
Never mind. I will never code at 7 am again. forgot to change #ifndef 0 to #if 0


I have another error, but I think i might can fix it myself..how do you write the error messages from cygwin to a .txt file? And just to let you know, it is calling up a non-existant funct 'mcount'.
[Go to top] top

Posted by Cyldor   USA  (13 posts)  [Biography] bio
Date Fri 31 May 2002 11:05 AM (UTC)  quote  ]

Amended on Fri 31 May 2002 11:24 AM (UTC) by Cyldor

Message
Ah, stupid me. I see what you ment. I did that, yet i get basically the same errors


act_comm.c:3344: warning: '#ifdef' argument starts with a digit
act_comm.c:36: parse error before '_RE_ARGS_'
act_comm.c: In function 'is_profane'
act_comm.c:3347: warning: implict declaration of 're_exec'


Maybe the code just doesn't like me? At the very end of the act_comm.c file, I changed what you said to.
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Fri 31 May 2002 04:16 AM (UTC)  quote  ]
Message
Huh? You were supposed to modify the existing is_profane to add the 2 lines in bold, not add a whole new one.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Cyldor   USA  (13 posts)  [Biography] bio
Date Fri 31 May 2002 03:32 AM (UTC)  quote  ]
Message
Hmm, didn't really work. Returned some new errors, same nature


act_comm.c:36: parse error before 'RE_ARGS_'
act_comm.c: In function 'is_profane'
act_comm.c:3347: warning: implict declaration of 're_exec'
act_comm.c: At top level:
act_comm.c:3354: redefinition of 'is_profane'
act_comm.c:3343: 'is_profane' previously defined here


Takes too long to type all that out..anyways

I uncommented what it said to for implict decaration in the make file


#Uncomment the line below if you are getting implicit decleration of re_exec
#REG = -DREGEX


Commented or non-commented it shows the same error. I put what you said to at the end of act_comm.c
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Fri 31 May 2002 01:39 AM (UTC)  quote  ]
Message
It's very simple. re_exec is only used in one place, which seems to be a profanity checker. Who cares if that is there or not? This is what I did to get rid of those errors:


int is_profane (char *what)
{
#if 0
  int ret;

  ret = re_exec(what);
  if (ret==1)
     return(1);
#endif
  return(0);
}


This is in file act_comm.c.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Cyldor   USA  (13 posts)  [Biography] bio
Date Thu 30 May 2002 08:51 PM (UTC)  quote  ]

Amended on Thu 30 May 2002 09:50 PM (UTC) by Cyldor

Message
Ok, I compiled after fixing the crypt and rename errors, but this seems to haunt me now and halts the compile.


act_comm.c:36: parse error before '_RE_ARGS_'
act_comm.o: In function 'is _profane':
act_comm.c:3347: undefined reference to 're_exec'


Not exactly sure how to fix this. the fourm mentions nothing of a solution to it. I uncommented what it said to in Makefile


#Uncomment the line below if you are getting undefined re_exec errors
NEED_REG = -lgnuregex


But the error still comes up. Any ideas from anybody? Also...


#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


I think the top ha;f and bottom half, not the miiddle may have something to do with this.
[Go to top] 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.


3,055 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]