In file included from comm.c:40: /usr/include/unistd.h:1019: error: syntax erro

Posted by Cirus on Fri 10 Jun 2005 06:24 PM — 3 posts, 14,633 views.

#0
Mud code is stock swr 1.0

In file included from comm.c:40:
/usr/include/unistd.h:1019: error: syntax error before `__const'

I get that error when I try to compile

I know someone is gonna ask for code you can goto /usr/include/unistd.h and look at the extern char crypt
there or here it is

I gues this is a pointer to a function ?

extern char *crypt (__const char *__key, __const char *__salt)
__THROW __nonnull ((1, 2));

I am deeply confused by this error
Please Help



#1
I suppose I do allways fix my own problems
but here's the solution
take out everything that has to do with crypt
and don't use the -DNOCRYPT in the makefile

USA #2
That assumes you will never have need of the crypt library again for encrypting player passwords. If you found later that you did, having removed it all would be a pain to put back.

Alternatively, you could add the MD5 password support to the code and use that instead. Encrypted passwords without the baggage associated with crypt.

Or - you could use the SWR FUSS package which has that taken care of already :)