|
Issues compiling on Ubuntu 11.10...
|
Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Eriseth
(4 posts) 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
| top |
|
| Posted by |
Zeno
USA (2,867 posts) bio
Moderator |
| Date |
Reply #1 on 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 | top |
|
| Posted by |
Eriseth
(4 posts) bio
|
| Date |
Reply #2 on 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 :) | top |
|
| Posted by |
Nick Gammon
Australia (18,770 posts) bio
Forum Administrator |
| Date |
Reply #3 on 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 | top |
|
| Posted by |
Eriseth
(4 posts) bio
|
| Date |
Reply #4 on 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 | top |
|
| Posted by |
Eriseth
(4 posts) bio
|
| Date |
Reply #5 on 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
| top |
|
| Posted by |
Machenka
USA (4 posts) bio
|
| Date |
Reply #6 on 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.
| top |
|
| Posted by |
Flexure
(1 post) bio
|
| Date |
Reply #7 on Sat 12 May 2012 11:10 PM (UTC) [ quote
] |
| Message |
| This thread was very helpful to me, thanks -Flex | 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,790 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )