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
➜ re_exec
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Cyldor
USA (13 posts) Bio
|
| Date
| Thu 30 May 2002 08:51 PM (UTC) 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. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Fri 31 May 2002 01:39 AM (UTC) |
| 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 | | Top |
|
| Posted by
| Cyldor
USA (13 posts) Bio
|
| Date
| Reply #2 on Fri 31 May 2002 03:32 AM (UTC) |
| 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 | | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Fri 31 May 2002 04:16 AM (UTC) |
| 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 | | Top |
|
| Posted by
| Cyldor
USA (13 posts) Bio
|
| Date
| Reply #4 on Fri 31 May 2002 11:05 AM (UTC) 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. | | Top |
|
| Posted by
| Cyldor
USA (13 posts) Bio
|
| Date
| Reply #5 on Fri 31 May 2002 11:53 AM (UTC) 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'. | | Top |
|
| Posted by
| Cyldor
USA (13 posts) Bio
|
| Date
| Reply #6 on Fri 31 May 2002 05:12 PM (UTC) |
| 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. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #7 on Fri 31 May 2002 10:15 PM (UTC) |
| 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 | | Top |
|
| Posted by
| AlaricX
(23 posts) Bio
|
| Date
| Reply #8 on Thu 06 Jun 2002 11:03 PM (UTC) |
| 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... | | 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.
26,726 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top