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 ➜ SWRiP Make error

SWRiP Make error

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


Pages: 1  2  3 4  5  6  

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #30 on Tue 30 Oct 2007 07:02 PM (UTC)
Message
It looks like you haven't done the crypt fix. It's all over the forums; you'll be able to find it easily. You should try doing that to get rid of the crypt errors.

(It's also a comment in the Makefile, if I remember correctly, at least for the FUSS makefiles. You might want to look there too.)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Phobos   (79 posts)  Bio
Date Reply #31 on Tue 30 Oct 2007 07:25 PM (UTC)
Message
Ok well i have fixed the crypt files before by putting in

#include <crypt.h>

at the top of the files that

/cygdrive/c/phobos/swrip200/src/comm.c:1842: undefined reference to `_crypt'

this apears in a couple files in different lines so if theres something more then #include <crypt.h> i need to put in please let me know so i can get rid of these crypt errors so the error will be less and easier to look at and break down.
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #32 on Tue 30 Oct 2007 08:15 PM (UTC)
Message
You need to either install the libcrypt library from Cygwin, if such a thing exists, and then add "-lcrypt" to your linker flags; or, disable the crypt function which is suggested in several forum posts.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #33 on Tue 30 Oct 2007 08:27 PM (UTC)
Message
Quote:

Ok i downloaded zlib off a source site and extracted it to the src in my code and make clean but i havent been ablt to get ride of any of the error message


Did you do what I suggested about "extern C"? Since you don't get an error message about not finding the z library I don't think the lack of installation is the problem.

- Nick Gammon

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

Posted by Phobos   (79 posts)  Bio
Date Reply #34 on Tue 30 Oct 2007 11:13 PM (UTC)
Message
I dont see zlib in any of the files in src so im not sure if that means its not recognizing the zlib file or whats going on there
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #35 on Wed 31 Oct 2007 12:55 AM (UTC)
Message
If it didn't have zlib, it would give you an error message like the one Nick mentioned.

Did you do what he said about extern "C"? If you don't work this through with us and tell us what you have and have not done we really can't help you.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Phobos   (79 posts)  Bio
Date Reply #36 on Wed 31 Oct 2007 02:03 AM (UTC)
Message
I have not done the C thing because you said replace the zlib with extern c zlib or whatever it was and i couldnt find anything in the files saying zlib to modify or replace
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #37 on Wed 31 Oct 2007 02:11 AM (UTC)
Message
You should read what Nick suggested again more carefully, he told you to change the part of the file that includes zlib.h. If you can't find it, you should use a search utility such as grep or whatever you use to search in files. ('man grep')

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Phobos   (79 posts)  Bio
Date Reply #38 on Wed 31 Oct 2007 02:43 AM (UTC)
Message
I have used <control f> to use the find command and searched for zlib.h in all the files and zlib without the .h on it and came up with nothing in searching every file in the src folder
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #39 on Wed 31 Oct 2007 04:08 AM (UTC)
Message
Try using grep.

grep zlib *.*

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #40 on Wed 31 Oct 2007 06:32 AM (UTC)

Amended on Wed 31 Oct 2007 06:34 AM (UTC) by Nick Gammon

Message
At the top of file mud.h here it is:


/***************************************************************************
*                           STAR WARS REALITY 1.0                          *
*--------------------------------------------------------------------------*
* Star Wars Reality Code Additions and changes from the Smaug Code         *
* copyright (c) 1997, 1998 by Sean Cooper                                  *
* -------------------------------------------------------------------------*
* Starwars and Starwars Names copyright (c) Lucasfilm Ltd.                 *
*--------------------------------------------------------------------------*
* SMAUG 1.0 (C) 1994, 1995, 1996 by Derek Snider                           *
* SMAUG code team: Thoric, Altrag, Blodkai, Narn, Haus,                    *
* Scryn, Rennard, Swordbearer, Gorog, Grishnakh and Tricops                *
* ------------------------------------------------------------------------ *
* Merc 2.1 Diku Mud improvments copyright (C) 1992, 1993 by Michael        *
* Chastain, Michael Quan, and Mitchell Tse.                                *
* Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer,          *
* Michael Seifert, Hans Henrik St{rfeldt, Tom Madsen, and Katja Nyboe.     *
* ------------------------------------------------------------------------ *
*                           Main mud header file                           *
****************************************************************************/
#include <stdlib.h>
#include <limits.h>
#include <sys/cdefs.h>
#include <sys/time.h>
#include <math.h>
#include <stdio.h>
#ifdef MCCP
#include <zlib.h>
#endif



I was suggesting changing that line to:


extern "C" {
  #include <zlib.h>
  }


Quote:

I have used <control f> to use the find command and searched for zlib.h in all the files and zlib without the .h on it and came up with nothing in searching every file in the src folder


I don't understand how that could happen, the reference was right there. In fact, mud.h is the first file I would normally look in, as that is included into most other files.

- Nick Gammon

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

Posted by Phobos   (79 posts)  Bio
Date Reply #41 on Wed 31 Oct 2007 05:53 PM (UTC)
Message
Ok i have changed the mud.h file and used makeclean and make yet i still get this message so are there other files i need to change the zlib in ?
Top

Posted by Phobos   (79 posts)  Bio
Date Reply #42 on Wed 31 Oct 2007 05:55 PM (UTC)
Message
When i type grep zlib *.* i get this message

Binary file act_comm.o matches
Binary file act_info.o matches
Binary file act_move.o matches
Binary file act_obj.o matches
Binary file act_wiz.o matches
Binary file alias.o matches
Binary file boards.o matches
Binary file bounty.o matches
Binary file build.o matches
Binary file clans.o matches
comm.c:void *zlib_alloc(void *opaque, unsigned int items, unsigned int size)
comm.c:void zlib_free(void *opaque, void *address)
comm.c: s->zalloc = zlib_alloc;
comm.c: s->zfree = zlib_free;
Binary file comm.o matches
Binary file comments.o matches
Binary file const.o matches
Binary file db.o matches
Binary file fight.o matches
Binary file grub.o matches
Binary file handler.o matches
Binary file id.o matches
Binary file interp.o matches
Binary file krearena.o matches
Binary file magic.o matches
Binary file makeobjs.o matches
Binary file mapper.o matches
Binary file misc.o matches
mud.h:#include <zlib.h>
Binary file mud_comm.o matches
Binary file mud_prog.o matches
Binary file player.o matches
Binary file requests.o matches
Binary file reset.o matches
Binary file save.o matches
Binary file shops.o matches
Binary file skills.o matches
Binary file space.o matches
Binary file space2.o matches
Binary file special.o matches
Binary file swskills.o matches
Binary file tables.o matches
Binary file templateparse.o matches
Binary file track.o matches
Binary file trivia.o matches
Binary file update.o matches
Binary file zlib.dll matches

so im not sure what that means to everyone but i hope it helps with helping me solve this
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #43 on Wed 31 Oct 2007 08:05 PM (UTC)
Message
Quote:

...
Binary file misc.o matches
mud.h:#include <zlib.h> <---- there it is
Binary file mud_comm.o matches
...


Despite what David said, you only really need to grep *.c and *.h files because they are source files. Finding it in the .o files doesn't help a heap.

eg.


grep zlib *.c
grep zlib *.h


- Nick Gammon

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

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #44 on Wed 31 Oct 2007 09:16 PM (UTC)
Message
(The reason I suggested *.* was because I wasn't sure if all source files were .c and .h, since g++ is in the picture here. I wasn't sure that it would be clear to grep over source files, so in doubt I suggested *.*...)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
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.


204,300 views.

This is page 3, subject is 6 pages long:  [Previous page]  1  2  3 4  5  6  [Next page]

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.