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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Compiling the server
. . -> [Subject]  SWRiP Make error

SWRiP Make error

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


Pages: 1  2 3  4  5  6  

Posted by Phobos   (79 posts)  [Biography] bio
Date Reply #15 on Mon 29 Oct 2007 06:06 AM (UTC)
Message
Ok i see that someone says to make a folder named that but i don't want to mess anything up by putting extra files in so can you tell me if its correct or not please
[Go to top] top

Posted by Phobos   (79 posts)  [Biography] bio
Date Reply #16 on Mon 29 Oct 2007 06:31 AM (UTC)
Message
I've checked the forum and cant find a fix to this error

save.c: In function `void load_corpses()':
save.c:2158: error: cannot convert `dirent*' to `direct*' in assignment
save.c:2160: error: invalid use of undefined type `struct direct'
save.c:2145: error: forward declaration of `struct direct'
save.c:2162: error: invalid use of undefined type `struct direct'
save.c:2145: error: forward declaration of `struct direct'
make[1]: *** [save.o] Error 1
make[1]: Leaving directory `/cygdrive/c/Phobos/swrip200/src'
make: *** [all] Error 2


ive looked for the cant convert one and cant find it so if you could direct me in the direction i need to go to find the answer since i cant find it or help me with posting the answer to one or more of the above errors i would be greatfull.
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #17 on Mon 29 Oct 2007 07:02 AM (UTC)
Message
Search the forum for "direct dirent". This post might help:

http://www.gammon.com.au/forum/bbshowpost.php?id=1237

Otherwise, try some of the other matching ones.

- Nick Gammon

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

Posted by Phobos   (79 posts)  [Biography] bio
Date Reply #18 on Mon 29 Oct 2007 07:15 AM (UTC)
Message
OMG that helped alot but after compiling several other files i got this massive file so much that looking at it makes me want to go have a smoke because it looks like so much work...so heres the message..


make[1]: Entering directory `/cygdrive/c/Phobos/swrip200/src'
g++ -c -g3 -Wall -DNCRYPT -DMCCP space2.c
g++ -c -g3 -Wall -DNCRYPT -DMCCP bounty.c
g++ -c -g3 -Wall -DNCRYPT -DMCCP swskills.c
g++ -c -g3 -Wall -DNCRYPT -DMCCP alias.c
g++ -c -g3 -Wall -DNCRYPT -DMCCP grub.c
g++ -c -g3 -Wall -DNCRYPT -DMCCP mapper.c
g++ -c -g3 -Wall -DNCRYPT -DMCCP templateparse.c
g++ -c -g3 -Wall -DNCRYPT -DMCCP trivia.c
rm -f swrip
g++ -lcrypt -lz -o swrip act_comm.o act_info.o act_move.o act_obj.o act_wiz.o b
oards.o build.o clans.o comm.o comments.o const.o db.o fight.o handler.o hashstr
.o id.o interp.o magic.o makeobjs.o misc.o mud_comm.o mud_prog.o krearena.o play
er.o requests.o reset.o save.o shops.o skills.o special.o tables.o track.o updat
e.o space.o space2.o bounty.o swskills.o alias.o grub.o mapper.o templateparse.o
trivia.o -lm
act_info.o: In function `_Z11do_passwordP9char_dataPc':
/cygdrive/c/Phobos/swrip200/src/act_info.c:3392: undefined reference to `_crypt'

/cygdrive/c/Phobos/swrip200/src/act_info.c:3409: undefined reference to `_crypt'

act_wiz.o: In function `_Z16do_form_passwordP9char_dataPc':
/cygdrive/c/Phobos/swrip200/src/act_wiz.c:4973: undefined reference to `_crypt'
build.o: In function `_Z7do_msetP9char_dataPc':
/cygdrive/c/Phobos/swrip200/src/build.c:1656: undefined reference to `_crypt'
comm.o: In function `_Z19write_to_descriptoriPci':
/cygdrive/c/Phobos/swrip200/src/comm.c:1462: undefined reference to `_deflate'
comm.o: In function `_Z5nannyP15descriptor_dataPc':
/cygdrive/c/Phobos/swrip200/src/comm.c:1732: undefined reference to `_crypt'
/cygdrive/c/Phobos/swrip200/src/comm.c:1821: undefined reference to `_crypt'
/cygdrive/c/Phobos/swrip200/src/comm.c:1842: undefined reference to `_crypt'
comm.o: In function `_Z13compressStartP15descriptor_datah':
/cygdrive/c/Phobos/swrip200/src/comm.c:3837: undefined reference to `_deflateIni
t_'
comm.o: In function `_Z11compressEndP15descriptor_data':
/cygdrive/c/Phobos/swrip200/src/comm.c:3869: undefined reference to `_deflate'
/cygdrive/c/Phobos/swrip200/src/comm.c:3875: undefined reference to `_deflateEnd
'
misc.o: In function `_Z10do_suicideP9char_dataPc':
/cygdrive/c/Phobos/swrip200/src/misc.c:3000: undefined reference to `_crypt'
collect2: ld returned 1 exit status
make[1]: *** [swrip] Error 1
make[1]: Leaving directory `/cygdrive/c/Phobos/swrip200/src'
make: *** [all] Error 2



crazy right i know ok well if you can help that would be great im not sure if you can direct me somewhere i will try searching the forum for each single one if you arnt able to help but im posting this hoping you can help and i dont have to search for like all night to try and find some answers...thanks alot
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #19 on Mon 29 Oct 2007 07:22 AM (UTC)
Message
You really have two major problems here, one is "crypt", the other is "deflate" and its variants. Search the forum for crypt, that one comes up a lot, and deflate is part of the zlib library. Search for deflate or zlib.

- Nick Gammon

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

Posted by Phobos   (79 posts)  [Biography] bio
Date Reply #20 on Mon 29 Oct 2007 07:47 AM (UTC)
Message
Ok i see that all of my deflate error are in comm.c but i cant find anything helpfull searching the forum i see theres a couple things on deflate but they all say the same thing and non of them apply to the 2.0 swr smaug i have set up so if someone could post with something a little more swr oriented i would be greatfull

~ill be trying to fix the crypt probs as i wait for an answer on the deflate prob~
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #21 on Mon 29 Oct 2007 08:27 AM (UTC)
Message
Install the zlib library files. This problem has nothing to do with SWR in specific and everything to do with knowing how to set up a development environment. You are missing library files; you need to install them. If you are using Cygwin, use Cygwin's setup program. If you are using Linux, use your distribution's package installer to get them. (apt-get under Debian-based systems; yum under Fedora.)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Phobos   (79 posts)  [Biography] bio
Date Reply #22 on Mon 29 Oct 2007 12:51 PM (UTC)
Message
That was a little disapointing i downloaded the zlib on my slow arse dial up connection and it didnt help i still get this message

make[1]: Entering directory `/cygdrive/c/phobos/swrip200/src'
rm -f swrip
g++ -lcrypt -lz -o swrip act_comm.o act_info.o act_move.o act_obj.o act_wiz.o b
oards.o build.o clans.o comm.o comments.o const.o db.o fight.o handler.o hashstr
.o id.o interp.o magic.o makeobjs.o misc.o mud_comm.o mud_prog.o krearena.o play
er.o requests.o reset.o save.o shops.o skills.o special.o tables.o track.o updat
e.o space.o space2.o bounty.o swskills.o alias.o grub.o mapper.o templateparse.o
trivia.o -lm
act_info.o: In function `_Z11do_passwordP9char_dataPc':
/cygdrive/c/Phobos/swrip200/src/act_info.c:3392: undefined reference to `_crypt'

/cygdrive/c/Phobos/swrip200/src/act_info.c:3409: undefined reference to `_crypt'

act_wiz.o: In function `_Z16do_form_passwordP9char_dataPc':
/cygdrive/c/Phobos/swrip200/src/act_wiz.c:4973: undefined reference to `_crypt'
build.o: In function `_Z7do_msetP9char_dataPc':
/cygdrive/c/Phobos/swrip200/src/build.c:1656: undefined reference to `_crypt'
comm.o: In function `_Z19write_to_descriptoriPci':
/cygdrive/c/Phobos/swrip200/src/comm.c:1462: undefined reference to `_deflate'
comm.o: In function `_Z5nannyP15descriptor_dataPc':
/cygdrive/c/Phobos/swrip200/src/comm.c:1732: undefined reference to `_crypt'
/cygdrive/c/Phobos/swrip200/src/comm.c:1821: undefined reference to `_crypt'
/cygdrive/c/Phobos/swrip200/src/comm.c:1842: undefined reference to `_crypt'
comm.o: In function `_Z13compressStartP15descriptor_datah':
/cygdrive/c/Phobos/swrip200/src/comm.c:3837: undefined reference to `_deflateIni
t_'
comm.o: In function `_Z11compressEndP15descriptor_data':
/cygdrive/c/Phobos/swrip200/src/comm.c:3869: undefined reference to `_deflate'
/cygdrive/c/Phobos/swrip200/src/comm.c:3875: undefined reference to `_deflateEnd
'
misc.o: In function `_Z10do_suicideP9char_dataPc':
/cygdrive/c/Phobos/swrip200/src/misc.c:3000: undefined reference to `_crypt'
collect2: ld returned 1 exit status
make[1]: *** [swrip] Error 1
make[1]: Leaving directory `/cygdrive/c/phobos/swrip200/src'
make: *** [all] Error 2

so if you have anything else you or anyone else might think will help im more then open for suggestions...seeing that im clueless. :(

[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #23 on Mon 29 Oct 2007 01:54 PM (UTC)
Message
Did you install zlib?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Phobos   (79 posts)  [Biography] bio
Date Reply #24 on Mon 29 Oct 2007 02:16 PM (UTC)
Message
I downloaded it and i thought cygwin auto installed it auto installed all the other packages
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #25 on Mon 29 Oct 2007 05:08 PM (UTC)
Message
You might need to get the "development files" version of the library; it might be called zlib-dev or something like that. See if Cygwin has one of those; if so install it. And if it doesn't, you should search the forums for cygwin zlib, because this has come up several times over the years.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Phobos   (79 posts)  [Biography] bio
Date Reply #26 on Mon 29 Oct 2007 07:14 PM (UTC)
Message
Ok i checked the forum for it after i checked cygwin for the development files and i checked for anything relating to it in cygwin and didn't find anything so if anyone has any other suggestions i am open to trying just about anything
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #27 on Mon 29 Oct 2007 07:24 PM (UTC)
Message
You can always try installing zlib from source, following the instructions on:
http://www.zlib.net/

it's pretty easy, just download, extract, ./configure, make, make install.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #28 on Mon 29 Oct 2007 08:57 PM (UTC)

Amended on Mon 29 Oct 2007 08:58 PM (UTC) by Nick Gammon

Message
I see you are using C++ (the compile line says g++ rather than gcc), so I wonder if it is something to do with the way zlib is being linked in.

The zlib library would be compiled for C, not C++, so it is possible the name mangling is the issue.

If you did not have zlib installed at all I would expect an error message along the lines of:


/usr/bin/ld: cannot find -lz


Try editing the file(s) which includes zlib.h, and changing it from:


#include <zlib.h>


to:


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


Then recompile *everything* (either remove the .o files, or do a "make clean").

- Nick Gammon

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

Posted by Phobos   (79 posts)  [Biography] bio
Date Reply #29 on Tue 30 Oct 2007 06:57 PM (UTC)
Message
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

I'm not sure if im installing the file right so if anyone could help me with remote assistance or something so i can get this compiled this is being a pain in the neck. Restating error message...

trivia.o -lm
act_info.o: In function `_Z11do_passwordP9char_dataPc':
/cygdrive/c/phobos/swrip200/src/act_info.c:3392: undefined reference to `_crypt'

/cygdrive/c/phobos/swrip200/src/act_info.c:3409: undefined reference to `_crypt'

act_wiz.o: In function `_Z16do_form_passwordP9char_dataPc':
/cygdrive/c/phobos/swrip200/src/act_wiz.c:4973: undefined reference to `_crypt'
build.o: In function `_Z7do_msetP9char_dataPc':
/cygdrive/c/phobos/swrip200/src/build.c:1656: undefined reference to `_crypt'
comm.o: In function `_Z19write_to_descriptoriPci':
/cygdrive/c/phobos/swrip200/src/comm.c:1462: undefined reference to `_deflate'
comm.o: In function `_Z5nannyP15descriptor_dataPc':
/cygdrive/c/phobos/swrip200/src/comm.c:1732: undefined reference to `_crypt'
/cygdrive/c/phobos/swrip200/src/comm.c:1821: undefined reference to `_crypt'
/cygdrive/c/phobos/swrip200/src/comm.c:1842: undefined reference to `_crypt'
comm.o: In function `_Z13compressStartP15descriptor_datah':
/cygdrive/c/phobos/swrip200/src/comm.c:3837: undefined reference to `_deflateIni
t_'
comm.o: In function `_Z11compressEndP15descriptor_data':
/cygdrive/c/phobos/swrip200/src/comm.c:3869: undefined reference to `_deflate'
/cygdrive/c/phobos/swrip200/src/comm.c:3875: undefined reference to `_deflateEnd
'
misc.o: In function `_Z10do_suicideP9char_dataPc':
/cygdrive/c/phobos/swrip200/src/misc.c:3000: undefined reference to `_crypt'
collect2: ld returned 1 exit status
make[1]: *** [swrip] Error 1
make[1]: Leaving directory `/cygdrive/c/phobos/swrip200/src'
make: *** [all] Error 2
[1]+ Exit 127 ./startup
[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.


168,478 views.

This is page 2, 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] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

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

[Best viewed with any browser - 2K]    [Hosted at HostDash]