Anyone ever seen this

Posted by Scoop187 on Thu 01 Dec 2005 04:10 AM — 29 posts, 103,566 views.

#0
...Ok this is a new one.. I'm a builder not a coder, wanting to get this setup to learn to code.. did i miss something ? I did the "uncomment" for cygwing thing,.. I guess it was uncommented.. I just removed the # sign..
been trying for hours, help..im out of coffee too...

imc.c:8089: error: dereferencing pointer to incomplete type
imc.c:8092: error: dereferencing pointer to incomplete type
imc.c:8119: error: dereferencing pointer to incomplete type
imc.c:744: warning: redundant redeclaration of 'strcasecmp'
imc.c:744: warning: previous implicit declaration of 'strcasecmp' was here
imc.c:8136: error: dereferencing pointer to incomplete type
imc.c:368: warning: redundant redeclaration of 'isspace'
imc.c:368: warning: previous implicit declaration of 'isspace' was here
imc.c:8152: error: dereferencing pointer to incomplete type
imc.c:8164: error: dereferencing pointer to incomplete type
imc.c:8167: error: dereferencing pointer to incomplete type
make[1]: *** [o/imc.o] Error 1
make: *** [all] Error 2

User@Cooper ~/smaugfuss/src
$
#1
that was just a pinch of it, that thing fly so fast you cant read it and it's super long, everything it tries to do pull back an error just like what you see in the example above.
#2
Im gonna take up this spot talking to myself just to help my other self decide what all that mess means... I'm thinking Im missing someone crucial in cygwin... I could be wrong, but I could also be right... anyone have any coffee?? ..piss now i'm almost out of smokes... someone email me some smokes..
#3
ok.. I have tried about 7 different codebases and all of them are doing the sam thing.. please help.
Australia Forum Administrator #4
Must be something strange with your setup, like you haven't got the latest Cygwin, or you haven't installed everything. I did it a minute ago under Cygwin with no problems.

I used this file:

http://www.gammon.com.au/files/smaug/smaug16fuss.tgz

Under Cygwin:


tar xzf smaug16fuss.tgz
cd SmaugFUSS/src


Edited line 5 of the Makefile to read:


CYGWIN = -DCYGWIN


(In other words, removed the #).

Typed "make":


$ make
make -s smaug
  Compiling o/imc.o....
  Compiling o/act_comm.o....
  Compiling o/act_info.o....
  Compiling o/act_move.o....
  Compiling o/act_obj.o....
  Compiling o/act_wiz.o....
  Compiling o/ban.o....
  Compiling o/boards.o....
  Compiling o/build.o....
  Compiling o/clans.o....
  Compiling o/color.o....
  Compiling o/comm.o....
  Compiling o/comments.o....
  Compiling o/const.o....
  Compiling o/db.o....
  Compiling o/deity.o....
  Compiling o/fight.o....
  Compiling o/handler.o....
  Compiling o/hashstr.o....
  Compiling o/hotboot.o....
  Compiling o/imm_host.o....
  Compiling o/interp.o....
  Compiling o/magic.o....
  Compiling o/makeobjs.o....
  Compiling o/mapout.o....
  Compiling o/mccp.o....
  Compiling o/md5.o....
  Compiling o/misc.o....
  Compiling o/mpxset.o....
  Compiling o/mud_comm.o....
  Compiling o/mud_prog.o....
  Compiling o/planes.o....
  Compiling o/player.o....
  Compiling o/polymorph.o....
  Compiling o/reset.o....
  Compiling o/save.o....
  Compiling o/services.o....
  Compiling o/shops.o....
  Compiling o/skills.o....
  Compiling o/special.o....
  Compiling o/tables.o....
  Compiling o/track.o....
  Compiling o/update.o....
Done compiling mud.


Ran MUD:


$ cd ../area
$ ../src/smaug


All worked perfectly. If the same thing happened for "about 7 different codebases" then clearly something is setup wrongly for you. Hard to say what. See what version of gcc you have:

This is what I get:


$ gcc --version
gcc (GCC) 3.3.1 (cygming special)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

USA #5
You could also try turning off IMC and see what errors you get since the ones you posted are related to IMC. There should be a spot in the Makefile for it.
Australia Forum Administrator #6
He could try, but as imc.c was the first file to be compiled, I think that is why we have those errors first.

Quote:

I'm a builder not a coder, wanting to get this setup to learn to code ...


In that case, why not just download the precompiled version? Then you don't need to compile anything:

http://www.gammon.com.au/files/smaug/smaug1.4a.zip
#7
Thanks for the input and suggestions mates, I believe my problems fell into downloading just the default files with cygwin. Therefore I have completely removed it from my system and started with a fresh copy, I'm downloading the WHOLE thing and all files available with it.. crikes that's a big download!

I was 99.999% I was using the correct commands and such because I had managed to get 2 DBZ codebases up and run earlier, but that's what im not wanting to start with and I know what I want to build and how I want it build. I had even done as Whiteknight suggested, and disabled the IMC and was still getting the same problem. I'll post a reply as of how it went with a great praise to you each for your help and suggestions.

However on another note, I have began learning to code recently thus, being deemed "NOOB" I have another question that perhaps you could help me with:

I have been editing the files and playing with the codes just to get familiar with everything from the codesbase after it compiles. I have used cygwin to compile/start the codebase/mud and use my preferred client (MUSHclient) to connect to local host and usually use port 4000.
I want to be able to get this setup on my server, and work on the code and such from my laptop from anywhere and I also know you have to be able to access the shell in order to do so. I use SSHSecure and Bloodshed c++ (If you know of better programs just leave a link,I'll happily try them out).. so...
my question is:
How do I allow access to the shell? Set up a password and such so that I have the ability to access it from my laptop with any interenet connection?
I have tried google searching for an answer but all i manage to pull up is information about host that grant you shell access if you buy a certain "package deal" from them or information about some hacking sites.. not what i'm looking for..

once again , any feedback is greatly appreciated and thank you all for helping =)
USA #8
You want to connect to the "host" which is running Cygwin through SSH or the sort? I do not believe that is possible.
USA #9
If there is an ssh server package in Cygwin and it runs, then I see no reason why being able to connect to it wouldn't work. Provided port 22 isn't blocked by the system's firewall.

Australia Forum Administrator #10
I haven't seen this done, having an incoming ssh connection for a Windows PC, but as Samson says, it may be possible.
#11
unfortunatley guys, I'm back at square one. I have completely removed cygwin and reinstalled it, but this time with the works, everything that I could get for it.
I unzip the smaugfuss codebase and do the usual routine...

open cygwin
cd smaugfuss
cd src
make
..........
but nNOOooOOoo doesnt work that well..
soon as it start to open the imc file EVERY thing it try to compile get errors and warnings out the wazooo and i cant figure it out... Just 2 days ago I could open it.. I have not changed anything in cygwin nor the codebase itself..

All I want to do is this: open the codesbase on my couputer.. practice editing and apply the code to the mud itself.. I dont use ssh he to connect to my own cpu, it's the same cpu I use.. I been opening cygwin file c:/cygwin/home/user/codebase .. playing with the files there and then saving and hotbooting.. but now I cant even do that because cygwin is not acting right.. use your noggins mates, I up a certain creek here and without a paddle, I cant figure it out for the life of me..
USA #12
Can you type in "gcc -v" on the Cygwin command line and tell us what version it says it's using?
#13
gcc ver 3.4.4 (cygming special)(gdc 0.12, using dmd 0.125)
Australia Forum Administrator #14
You haven't said what the problem is with using a precompiled version. You only really need to compile if you are planning to change the C code.
USA #15
I am using that same gcc version with Cygwin, and the latest FUSS compiles fine for me.
#16
Ok so.. Here's the status:

I deleted everything once again, deleted all my codebases and such that I had tried to get going and deleted all known cywin files.
I reinstalled cygwin once more and downloaded the codebase swrfote1.1 fuss..
unzipped it into the cywgwin/home/user directory and then started up cygwin..

cd dir
cd swrfuss
cd src
make

..everything compiled perfectly... finally.. but..
I tried to startup the mud and followed the direction from the smaug website ..

./startup & doesnt work
../src/startup doenst work

If I havnt stated already Im pretty new to this, And am in dire attempt to learn/play with coding...

So.. I used my noggin, it said earlier in the line the compile file -swrreality was what was compiled.. so I tried it..

./swreality alas! woohooo!

it booted up and loaded

....Booting Database....
...loading commands .. etc etc etc.. time etc date etc..
no errors or anything out of the ordinary.

I try to join it with mushclient on
localhost
port 4000
..nothing..
for some reason I cannot join it.
the very las thing it says during the bootin database is..

Reading in area files...
Is this what you guys are getting ? or is it just not finishing it's routine.?

other questions.. I managed to get it to connect 1 time.. then my laptop died and I immediately began to swear like a sailor while plugging in my powercord.. I opened cygwin
and ran the same proccess as before.. now I cannot connect ... Am I doing something wrong ? I have come so far with so much trouble and know I'm really close thanks to your help, Nick, Zeno , samson , Whiteknight you guys rock , do you think you can help me just a tad more and steer me into the right dirction?




USA #17
Why doesn't ./startup & work? What errors are there?

Make sure you're connecting to the right port. If it's up, you should be able to connect.
#18
Here's what I have..

User@Cooper ~
$ dir
smaug16fuss.tgz swr11fuss.tgz swrfuss

User@Cooper ~
$ cd swrfuss

User@Cooper ~/swrfuss
$ dir
Bugfixes.txt boards color deleted hotboot mudprogs space
area building corpses doc imc planets src
backup clans councils gods log player system

User@Cooper ~/swrfuss
$ cd area

User@Cooper ~/swrfuss/area
$ dir
Sorosuub corus.jail grind limbo.are nar.shadda
a.byss.city corus.pt2 help.are mall newacad.are
adari coruscant_streets honoghr mc90 omni_complex
adari01 dagobah hunter.ships menari_spaceport quarren.are
area.lst darkhand hunters.guild mon_cal.are senate
boot.txt endor jedi_acad monolith space.are
byss.jail gamorr kashyyyk monument.plaza tatooine
cloning grand_towers land.vehicles nal.hut throne.city

User@Cooper ~/swrfuss/area
$ cd

User@Cooper ~
$ cd

User@Cooper ~
$ cd swrfuss

User@Cooper ~/swrfuss
$ dir
Bugfixes.txt boards color deleted hotboot mudprogs space
area building corpses doc imc planets src
backup clans councils gods log player system

User@Cooper ~/swrfuss
$ cd src

User@Cooper ~/swrfuss/src
$ dir
Makefile bounty.c db.c imc.h md5.h save.c track.c
act_comm.c build.c fight.c imccfg.h misc.c shops.c update.c
act_info.c clans.c grind interp.c mud.h skills.c
act_move.c color.c handler.c magic.c mud_comm.c space.c
act_obj.c color.h hashstr.c makeobjs.c mud_prog.c special.c
act_wiz.c comm.c hotboot.c mccp.c o startup
bet.h comments.c hotboot.h mccp.h player.c swskills.c
boards.c const.c imc.c md5.c reset.c tables.c

User@Cooper ~/swrfuss/src
$ make
make -s swreality
Compiling o/imc.o....
Compiling o/act_comm.o....
Compiling o/act_info.o....
Compiling o/act_move.o....
Compiling o/act_obj.o....
Compiling o/act_wiz.o....
Compiling o/boards.o....
Compiling o/bounty.o....
Compiling o/build.o....
Compiling o/clans.o....
Compiling o/color.o....
Compiling o/comm.o....
Compiling o/comments.o....
Compiling o/const.o....
Compiling o/db.o....
Compiling o/fight.o....
Compiling o/handler.o....
Compiling o/hashstr.o....
Compiling o/hotboot.o....
Compiling o/interp.o....
Compiling o/magic.o....
Compiling o/makeobjs.o....
Compiling o/mccp.o....
Compiling o/md5.o....
Compiling o/misc.o....
Compiling o/mud_comm.o....
Compiling o/mud_prog.o....
Compiling o/player.o....
Compiling o/reset.o....
Compiling o/save.o....
Compiling o/shops.o....
Compiling o/skills.o....
Compiling o/space.o....
Compiling o/special.o....
Compiling o/swskills.o....
Compiling o/tables.o....
Compiling o/track.o....
Compiling o/update.o....
Done compiling mud.

User@Cooper ~/swrfuss/src
$ dir
Makefile build.c grind magic.c mud_prog.c startup
act_comm.c clans.c handler.c makeobjs.c o swreality.exe
act_info.c color.c hashstr.c mccp.c player.c swskills.c
act_move.c color.h hotboot.c mccp.h reset.c tables.c
act_obj.c comm.c hotboot.h md5.c save.c track.c
act_wiz.c comments.c imc.c md5.h shops.c update.c
bet.h const.c imc.h misc.c skills.c
boards.c db.c imccfg.h mud.h space.c
bounty.c fight.c interp.c mud_comm.c special.c

everything has been working fine.. no problems, compile perfectly and everything. I just cant seem to join for some reason
USA #19
You made sure it's running? Type ps ux and look for the process there.

What port is it running on?
#20
continues from above post:

User@Cooper ~/swrfuss/src
$ ./startup &
[1] 252

User@Cooper ~/swrfuss/src
$ limit: Command not found.
limit: Command not found.



however... If i do this:



User@Cooper ~/swrfuss/src
$ ./swreality &
[1] 2592

User@Cooper ~/swrfuss/src
$ Fri Dec 2 20:49:55 2005 :: Booting Database
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Fri Dec 2 20:49:55 2005 :: [*****] BOOT: ---------------------[ Boot Log ]-----
---------------
Fri Dec 2 20:49:55 2005 :: Loading commands
Fri Dec 2 20:49:55 2005 :: Loading sysdata configuration...
Fri Dec 2 20:49:55 2005 :: Loading socials
Fri Dec 2 20:49:55 2005 :: Loading skill table
Fri Dec 2 20:49:55 2005 :: Sorting skill table...
Fri Dec 2 20:49:55 2005 :: Loading herb table
Fri Dec 2 20:49:55 2005 :: Making wizlist
Fri Dec 2 20:49:55 2005 :: Initializing random number generator
Fri Dec 2 20:49:55 2005 :: Setting time and weather
Fri Dec 2 20:49:55 2005 :: Assigning gsn's
Fri Dec 2 20:49:55 2005 :: Reading in area files...
....Here is where it just stops...
I'm still able to enter commands and such, but im not sure if it's done everything that I have to do.. after it gets this far I try to connect to localhost Port 4000 .. nothing

from here Im dumbfouned..
#21
User@Cooper ~/swrfuss/src
$ ps ux
PID PPID PGID WINPID TTY UID STIME COMMAND
3760 1 3760 3760 con 1007 20:48:58 /usr/bin/bash
1012 3760 1012 3880 con 1007 20:54:33 /usr/bin/ps

User@Cooper ~/swrfuss/src
$


that's what PS UX gives me, that might as well be french to me tho..

I have been trying to connect to port 4000 , that is what I was told was the default port to connect to.. How do i check exactly to find out?
Amended on Sat 03 Dec 2005 12:57 AM by Scoop187
USA #22
You can't run the exec from the src directory, the area files aren't located there. It seems like you missed something when installing Cygwin, because it's missing limit.

In the area dir type:
../src/swreality
#23
Awsome! It works ! now.. how do I fix the problem with cygwin ? or see whay it has no limit?

Zeno I have played your mud for a while.. I was known as Brahmus on there.. Awseome mud and you rock. Next time I hit the bar , my first shot goes in your good favor! and the next 3 are for Nick, Samson and Whiteknight.. after that .. they are just for getting blasted and having fun..in a safe manner of course.
USA #24
I think the limit was a package you had to install. You may have missed it. You could just try commenting out the lines in the startup script that use limit.
USA #25
Probably just go ahead and comment the limit command out in the startup file. It's meant for coredumps which you won't get much use out of on Cygwin anyway.

I also noticed you didn't edit the Makefile and uncomment the Cygwin line in any of this unless I missed something ?
#26
I have done that already, and other than the limit problem I finally got the code up and running. However, I found that this was not the code I needed for what I had in mind building. Sorry if i dont explain more, but it's 100% origional and modern concept that's probably easy for advanced people like you guys to do. I want the joy of learning to code and bringing my vision to life ^.^

Anyways, I switched the codebase. I have looked at a few different codebases and found that I will be better off with a SWR codebase for what I have in mind, but, for some reason when I extract the TGZ file it doesn't put the files in their folders ...
It just extracts all the files and doesn't even make the folders. I have tried to convert the format to TAR, ZIP and such and tried to OPen/EXtract with Picozip, Winzip and winrar as well with still the same problems.. any ideas why or am I missing something simple again? I find that I often get excited or my mind set so hard on something I miss the simple things.. My apologies for taking up your time and thank you all for the help.
Amended on Sun 04 Dec 2005 08:20 AM by Scoop187
#27
PS- I installed my first snippet yesterday. It made me feel great. It was an easy, copy and paste and I used a program a friend told me to try.. bloodshed dev c/c++

Anyways I believe you made the snippet, Samson. It was a Wizhelp snippet that organized everything into a better view for the user and by levels as well. Thank you very much =)

Now I'm currently ripping apart the same snippet piece by piece to figure our what each command meant, how it worked and what it does. =)
Amended on Sun 04 Dec 2005 08:21 AM by Scoop187
USA #28
Quote:
but, for some reason when I extract the TGZ file it doesn't put the files in their folders ...
It just extracts all the files and doesn't even make the folders. I have tried to convert the format to TAR, ZIP and such and tried to OPen/EXtract with Picozip, Winzip and winrar as well with still the same problems.. any ideas why or am I missing something simple again?


Use something that supports them. I use WinRAR, and it extracts fine.