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
➜ Root Folder doesnt detect .tar file
Root Folder doesnt detect .tar file
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Npp83
(16 posts) Bio
|
Date
| Sat 15 May 2010 03:30 AM (UTC) |
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. | Top |
|
Posted by
| Npp83
(16 posts) Bio
|
Date
| Reply #1 on Sat 15 May 2010 04:21 AM (UTC) |
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! | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #2 on Sat 15 May 2010 04:34 AM (UTC) 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:
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 | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #3 on Sat 15 May 2010 04:36 AM (UTC) |
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 | Top |
|
Posted by
| Npp83
(16 posts) Bio
|
Date
| Reply #4 on Sat 15 May 2010 04:42 AM (UTC) |
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 | Top |
|
Posted by
| Npp83
(16 posts) Bio
|
Date
| Reply #5 on Sat 15 May 2010 05:27 AM (UTC) |
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?
| Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #6 on Sat 15 May 2010 06:33 AM (UTC) |
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 | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #7 on Sat 15 May 2010 06:35 AM (UTC) |
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 | Top |
|
Posted by
| Npp83
(16 posts) Bio
|
Date
| Reply #8 on Sat 15 May 2010 03:34 PM (UTC) |
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.
| Top |
|
Posted by
| Npp83
(16 posts) Bio
|
Date
| Reply #9 on Sat 15 May 2010 04:18 PM (UTC) |
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. | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #10 on Sat 15 May 2010 10:09 PM (UTC) |
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 | 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.
28,669 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top