Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Gaming > Dragons > Re: [coding] I ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 7 Topic 2146 of 2192
Post > Topic >>

Re: [coding] I NEED HALP!

by Simon Richard Clarkstone <s.r.clarkstone@[EMAIL PROTECTED] > Mar 8, 2008 at 10:24 PM

Draco18s wrote:
> In article <M7adnealdPgmgVHaRVnyuQA@[EMAIL PROTECTED]
>, 
> s.r.clarkstone@[EMAIL PROTECTED]
 says...
>> Draco18s wrote:
>>> So, for my senior project everyone (that isn't me) decided to use Flux
World 
>>> Server to be the backbone software for the virtual world we want to
build.  
>>> BTW, Flux does nothing but synchronize two or more Flux viewers.  It
doesn't 
>>> touch the underlying world file, do chat, assets, permissions, or any
of those 
>>> other fancy smantcy server-things.
>>>
>>> Anyway, I'm getting a compile error:
>>>
>>> hydrac.o: In function `printErrorExit': 
>>> 
/kunden/homepages/12/d201092097/htdocs/sp/arttopian/Hydra/hydrac.c:76: the

>>> `gets' function is dangerous and should not be used. 
>>>  make: *** No rule to make target `hydrabot', needed by `all'.  Stop. 
>> Maybe that's two errors.  Firstly I would guess that someone has made 
>> warnings be fatal, and gets() has triggered a warning (as it should). 
>> The solution to that is to re-write to not use gets(), or to make 
>> warnings non-fatal.
> 
> Which was stupid, because the other compile error I fixed (in the OTHER 
> makefile that needed to be run) was "ln: 'really long path to a
softlink': 
> File exists."
> 
> I have no idea what gets does and therefor can't re-write.  Nor do I
know how 
> to make warnings not fatal.

Um, how are you going to modify this server without knowing C?  Anyway, 
gets() reads in a string to a provided location in memory, with no 
checking that there is enough room.  Find out what size buffer is 
provided, and replace the call to gets with a call to fgets, with the 
file being stdin.

Making warnings non-fatal would require modifying the makefile, or maybe 
passing some options to it.  Or, there might be #pragmas in the source 
files to control that.

>> The second might be that something is wrong with your makefile.  Did
you 
>> run any configuration steps that were necessary?  Are you using the 
>> right makefile?
> 
> There's only one makefile (in this step).  And yes, as far as I've been
able 
> to determine I have done things correctly (mind: the instructions
weren't 
> created by the software designer, they were created on a wiki by one of
the 
> guys trying to use the bloody thing).


-- 
Simon Richard Clarkstone:
s?m?n_cl?rkst?n?@[EMAIL PROTECTED]
   "August 9 - I just made my signature file. Its only 6 pages long.
    I will have to work on it some more." -- _Diary of an AOL User_
 




 7 Posts in Topic:
[coding] I NEED HALP!
Draco18s <draco18s2_NO  2008-03-02 18:20:49 
Re: [coding] I NEED HALP!
Simon Richard Clarkstone   2008-03-03 15:43:55 
Re: [coding] I NEED HALP!
Draco18s <draco18s2_NO  2008-03-03 12:06:00 
Re: [coding] I NEED HALP!
Simon Richard Clarkstone   2008-03-08 22:24:34 
Re: [coding] I NEED HALP!
Draco18s <draco18s2_NO  2008-03-10 01:17:04 
Re: [coding] I NEED HALP!
Simon Richard Clarkstone   2008-03-15 13:10:20 
Re: [coding] I NEED HALP!
Draco18s <draco18s2_NO  2008-03-15 14:08:48 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 16:26:31 CDT 2008.