[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]  Issues compiling on Ubuntu 11.10...
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Issues compiling on Ubuntu 11.10...
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please)
Maximum of 6000 characters. Text only please, no HTML.
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 Flexure   (1 post)  [Biography] bio
Date Sat 12 May 2012 11:10 PM (UTC)  quote  ]
Message
This thread was very helpful to me, thanks -Flex
[Go to top] top

Posted by Machenka   USA  (4 posts)  [Biography] bio
Date Mon 05 Dec 2011 09:48 PM (UTC)  quote  ]
Message
Good deal.

I had a similar issue on OpenSUSE 11.4 and last night, downloading the zlib-devel library solved it for me.

Already had zlib installed, but the -devel lib was what was needed.




[Go to top] top

Posted by Eriseth   (4 posts)  [Biography] bio
Date Mon 05 Dec 2011 02:46 PM (UTC)  quote  ]
Message
Ok, fixed it. In case someone else comes along with the same issue:

I was just missing some library. Installed it right off the Ubuntu repository. Just do:


sudo apt-get install zlib1g-dev


I'm sure I'll be back with another issue soon...

Thanks again :)

-E
[Go to top] top

Posted by Eriseth   (4 posts)  [Biography] bio
Date Mon 05 Dec 2011 02:30 PM (UTC)  quote  ]

Amended on Mon 05 Dec 2011 02:37 PM (UTC) by Eriseth

Message
Thanks so much for the help so far, guys. That fixed the warning error, but the code is still not compiling. See errors below:



In file included from comm.c:30:0:
mccp.h:18:18: fatal error: zlib.h: No such file or directory
compilation terminated.
make[1]: *** [o/comm.o] Error 1
In file included from hotboot.c:38:0:
mccp.h:18:18: fatal error: zlib.h: No such file or directory
compilation terminated.
make[1]: *** [o/hotboot.o] Error 1
In file included from mccp.c:48:0:
mccp.h:18:18: fatal error: zlib.h: No such file or directory
compilation terminated.
make[1]: *** [o/mccp.o] Error 1
make[1]: Target `smaug' not remade because of errors.
make: *** [all] Error 2



So obviously I'm missing something but I don't know what it is :/

Thoughts?

-E
[Go to top] top

Posted by Nick Gammon   Australia  (19,188 posts)  [Biography] bio   Forum Administrator
Date Mon 05 Dec 2011 02:35 AM (UTC)  quote  ]

Amended on Mon 05 Dec 2011 02:38 AM (UTC) by Nick Gammon

Message
Add the suggested warning-disable:


-Wno-unused-but-set-variable


to the flags in the Makefile.

- Nick Gammon

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

Posted by Eriseth   (4 posts)  [Biography] bio
Date Mon 05 Dec 2011 01:51 AM (UTC)  quote  ]
Message
How do I go about disabling unused-but-set-variable ?

I presume that's the least time-consuming fix :)
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio   Moderator
Date Mon 05 Dec 2011 01:36 AM (UTC)  quote  ]
Message
You can just disable unused-but-set-variable in the Makefile.

Or you can fix that strtime warning in that code. If you show the lines I can help.

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

Posted by Eriseth   (4 posts)  [Biography] bio
Date Mon 05 Dec 2011 01:28 AM (UTC)  quote  ]
Message
Hello all,

I'm trying to get SmaugFUSS 1.9 compiled without much success.

Here is the output...


eriseth@antares:/opt/smaugfuss19/src$ make
make -s smaug
  Compiling o/imc.o....
imc.c: In function ‘void imclog(const char*, ...)’:
imc.c:212:10: error: variable ‘strtime’ set but not used [-Werror=unused-but-set-variable]
imc.c: In function ‘void imcbug(const char*, ...)’:
imc.c:236:10: error: variable ‘strtime’ set but not used [-Werror=unused-but-set-variable]
cc1plus: all warnings being treated as errors

make[1]: *** [o/imc.o] Error 1
make: *** [all] Error 2


eriseth@antares:/opt/smaugfuss19/src$ gcc --version
gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1
Copyright (C) 2011 Free Software Foundation, Inc.



I'm sure it's something silly but after playing with it for a while I just couldn't figure it out. Any suggestions would be greatly appreciated.

Thanks :)

-E
[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.


2,852 views.

[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]