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

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Compiling the server
. . -> [Subject]  Root Folder doesnt detect .tar file

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Root Folder doesnt detect .tar file
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Sat 15 May 2010 10:09 PM (UTC)  quote  ]
Message
Stopped with an error message? Or just went into a CPU loop? Or hung doing nothing? Time to use gdb to find what it is doing.

- Nick Gammon

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

Posted by Npp83   (16 posts)  [Biography] bio
Date Sat 15 May 2010 04:18 PM (UTC)  quote  ]
Message
Okay, disregard the post above. I removed -Werror from the makefile, and I ran make on the .c files. This displayed the errors but continued anyway. However, when I ran the executable "swreality.exe" the process started...

Quote:
Isaiah@Monolith_Mobile ~/swrfuss/src
$ ../src/swreality.exe
Sat May 15 11:10:03 2010 :: 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
Sat May 15 11:10:03 2010 :: [*****] BOOT: ---------------------[ Boot Log ]-----
---------------
Sat May 15 11:10:03 2010 :: Loading commands
Sat May 15 11:10:03 2010 :: Loading sysdata configuration...
Sat May 15 11:10:03 2010 :: Loading socials
Sat May 15 11:10:03 2010 :: Loading skill table
Sat May 15 11:10:03 2010 :: Sorting skill table...
Sat May 15 11:10:03 2010 :: Loading herb table
Sat May 15 11:10:03 2010 :: Making wizlist
Sat May 15 11:10:03 2010 :: Initializing random number generator
Sat May 15 11:10:03 2010 :: Setting time and weather
Sat May 15 11:10:03 2010 :: Assigning gsn's
Sat May 15 11:10:03 2010 :: Reading in area files...


And then it stopped there. Now why would there be a problem with reading area files?

The funny thing is, not too long ago, I had just installed this version of SWRFUSS, compiled it and ran it on Cygwin, so its a little strange to see it not working now.
[Go to top] top

Posted by Npp83   (16 posts)  [Biography] bio
Date Sat 15 May 2010 03:34 PM (UTC)  quote  ]
Message
Quote:

One of the command-line options turns errors into warnings (-Werror or something like that) so you could take that out, and then they are just warnings.

Or, work out what the warning is (see man gcc) and add the -Wno-whatever to the make.


How do you use -Werror? Is it used with make (i.e. make -Werror)? Or where is it applied?

Ive looked all over the net and nothing really comes up on it or how to use it. Thanks for the help, again.

[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Sat 15 May 2010 06:35 AM (UTC)  quote  ]
Message
Npp83 said:

Given the information in this, what do I need to do to supress the warnings (instead of having to change code)?


One of the command-line options turns errors into warnings (-Werror or something like that) so you could take that out, and then they are just warnings.

Or, work out what the warning is (see man gcc) and add the -Wno-whatever to the make.

- Nick Gammon

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

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Sat 15 May 2010 06:33 AM (UTC)  quote  ]
Message
Npp83 said:

By the way, how are you able to select, copy and paste from Cygwin as you do? I have had to type everything thus far. Thanks again for your help. Love those youtube videos you have up. I just discovered em'!

-Isaiah


Click on the system menu (top LH corner) and then you can select Edit -> Mark (from memory), then click in the window to select text, then hit Enter to complete the selection and copy to the clipboard.

- Nick Gammon

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

Posted by Npp83   (16 posts)  [Biography] bio
Date Sat 15 May 2010 05:27 AM (UTC)  quote  ]
Message
Nick, I found this post/thread via Google in searching for a solution to my problem.

http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=8655

Given the information in this, what do I need to do to supress the warnings (instead of having to change code)?

Or should I just roll back my version of GCC to something below 4.2?
[Go to top] top

Posted by Npp83   (16 posts)  [Biography] bio
Date Sat 15 May 2010 04:42 AM (UTC)  quote  ]
Message
Thanks a bunch, Nick. But here comes another question at you. If in my re-install the gcc I selected is restrictive, how is one to know what is an appropriate version of gcc to use for my purposes in getting this MUD up and running? The version of GCC that was installed was in the Cygwin setup, yes?

By the way, how are you able to select, copy and paste from Cygwin as you do? I have had to type everything thus far. Thanks again for your help. Love those youtube videos you have up. I just discovered em'!

-Isaiah
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Sat 15 May 2010 04:36 AM (UTC)  quote  ]
Message
As for the errors, the gcc compiler has tightened up a lot of the checks, maybe by reinstalling you have a version that is more strict.

- Nick Gammon

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

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Sat 15 May 2010 04:34 AM (UTC)  quote  ]

Amended on Sat 15 May 2010 04:35 AM (UTC) by Nick Gammon

Message
Normally cygwin makes a home directory and puts your home directory (ie. named Isaiah in your case) under that.

I suppose it depends how you installed Cygwin.

Possibly Cygwin (when you reinstalled it) is somewhere else completely. Try firing up cygwin, and typing: df -h

In my case I see this:


$ df -h
Filesystem            Size  Used Avail Use% Mounted on
C:\cygwin\bin          32G   30G  1.8G  95% /usr/bin
C:\cygwin\lib          32G   30G  1.8G  95% /usr/lib
C:\cygwin              32G   30G  1.8G  95% /
c:                     32G   30G  1.8G  95% /cygdrive/c
x:                    912G  272G  641G  30% /cygdrive/x
y:                    912G  272G  641G  30% /cygdrive/y
z:                    932G  585G  347G  63% /cygdrive/z

$ pwd
/home/Owner


The third line down ties together the "root" Cygwin directory named / to the folder under Windows which is C:\cygwin

Typing "pwd" shows that my home directory in Cygwin is /home/Owner

So that folder in Windows would be:


C:\cygwin\home\Owner


However that is for *my* installation, if you installed Cygwin somewhere else, all that might be different.

- Nick Gammon

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

Posted by Npp83   (16 posts)  [Biography] bio
Date Sat 15 May 2010 04:21 AM (UTC)  quote  ]
Message
Okay. So the error as I discovered is in the current directory I was in. I typed pwd in Cygwin and found out I was somewhere in Java Land due to the fact that I had changed both my PATH and HOME system environments. Now, when I go to compile any source code, be it SMAUG or SWR, I get a flood of errors. An example is as follows:

$ make
make -s swreality
Compiling o/imc.o....
cc1: warnings being treated as errors
imc.c: In fucntion 'imcone_argument':
imc.c:368: error: array subscript has type 'char'

and another example error line it gives down the page is:

imc.c:2554 error: the address of 'url' will always evaluate as 'true'

Whats going on!? Thanks!
[Go to top] top

Posted by Npp83   (16 posts)  [Biography] bio
Date Sat 15 May 2010 03:30 AM (UTC)  quote  ]
Message
I recently uninstalled Cygwin, and reinstalled it. I went to place the .tar file for the code in my C:\cygwin\home directory, but when I did and opened up Cygwin and typed 'ls' it did not list the file. Any thoughts on why this is?

First I thought: Why isn't my named folder listed in C:\cygwin\home as C:\cygwin\home\Isaiah? There is no Isaiah directory.

Second I thought: Cygwin is listing the command prompt as Isaiah@MonolithMobile ~ ... maybe its looking for the Isaiah folder.

I don't know and I am stumped.
[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.


1,917 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]