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
➜ Compile Errors with smaugFUSS 1.9 on fresh Ubuntu 8.10
Compile Errors with smaugFUSS 1.9 on fresh Ubuntu 8.10
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1 2
Posted by
| Mjnbrn
(8 posts) Bio
|
Date
| Sat 20 Dec 2008 07:00 AM (UTC) |
Message
| Hello,
I was wanting to install a SMAUG server for some friends of mine and I am having some issues. I am running a fresh install of Ubuntu 8.10. I already took out the -Werror flag and I am still getting alot of errors. Here they come:
make -s smaug
Compiling o/imc.o....
Compiling o/act_comm.o....
Compiling o/act_info.o....
Compiling o/act_move.o....
Compiling o/act_obj.o....
Compiling o/act_wiz.o....
Compiling o/ban.o....
Compiling o/boards.o....
Compiling o/build.o....
Compiling o/calendar.o....
Compiling o/chess.o....
Compiling o/clans.o....
Compiling o/color.o....
Compiling o/comm.o....
In file included from comm.c:30:
mccp.h:33: error: declaration does not declare anything
mccp.h:33: error: ISO C++ forbids declaration of ‘out_compress’ with no type
In file included from comm.c:31:
sha256.h:39: error: two or more data types in declaration of ‘SHA256_CTX’
sha256.h:41: error: variable or field ‘SHA256_Init’ declared void
sha256.h:41: error: ‘SHA256_CTX’ was not declared in this scope
sha256.h:41: error: expected primary-expression before ‘)’ token
sha256.h:42: error: variable or field ‘SHA256_Update’ declared void
sha256.h:42: error: ‘SHA256_CTX’ was not declared in this scope
sha256.h:42: error: expected primary-expression before ‘,’ token
sha256.h:42: error: expected primary-expression before ‘const’
sha256.h:42: error: expected primary-expression before ‘)’ token
sha256.h:43: error: ‘SHA256_CTX’ has not been declared
sha256.h:44: error: ‘SHA256_CTX’ was not declared in this scope
sha256.h:44: error: expected primary-expression before ‘,’ token
sha256.h:44: error: expected primary-expression before ‘char’
sha256.h:44: error: initializer expression list treated as compound expression
comm.c: In function ‘bool write_to_descriptor(DESCRIPTOR_DATA*, const char*, int)’:
comm.c:1654: error: request for member ‘next_in’ in ‘* d->descriptor_data::mccp->mccp_data::out_compress’, which is of non-class type ‘int’
comm.c:1655: error: request for member ‘avail_in’ in ‘* d->descriptor_data::mccp->mccp_data::out_compress’, which is of non-class type ‘int’
comm.c:1657: error: request for member ‘avail_in’ in ‘* d->descriptor_data::mccp->mccp_data::out_compress’, which is of non-class type ‘int’
comm.c:1659: error: request for member ‘avail_out’ in ‘* d->descriptor_data::mccp->mccp_data::out_compress’, which is of non-class type ‘int’
comm.c:1660: error: request for member ‘next_out’ in ‘* d->descriptor_data::mccp->mccp_data::out_compress’, which is of non-class type ‘int’
comm.c:1662: error: request for member ‘avail_out’ in ‘* d->descriptor_data::mccp->mccp_data::out_compress’, which is of non-class type ‘int’
| Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #1 on Sat 20 Dec 2008 06:10 PM (UTC) |
Message
| Do you have zlib installed? |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Mjnbrn
(8 posts) Bio
|
Date
| Reply #2 on Mon 22 Dec 2008 12:32 PM (UTC) |
Message
| I must, because it keeps telling me it is at the latest version. | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #3 on Mon 22 Dec 2008 01:26 PM (UTC) |
Message
| Hm, is SHA256 installed?
#include <sys/types.h>
#include <sha2.h>
|
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Mjnbrn
(8 posts) Bio
|
Date
| Reply #4 on Mon 22 Dec 2008 02:23 PM (UTC) |
Message
| indeed. Do i need to do anything special for it to be used? | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #5 on Mon 22 Dec 2008 03:35 PM (UTC) |
Message
| Please show mccp.h line 33:
mccp.h:33: error: declaration does not declare anything
mccp.h:33: error: ISO C++ forbids declaration of ‘out_compress’ with no type
Also, you need not just zlib, but the dev version -- I think it's called zlib-dev or something like that. aptitude search zlib, then install the one that has 'dev' in the name. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Mjnbrn
(8 posts) Bio
|
Date
| Reply #6 on Mon 22 Dec 2008 05:49 PM (UTC) |
Message
| I have the dev version installed. Here is mccp.h:31-fin
struct mccp_data
{
z_stream ; *out_compress;
unsigned char *out_compress_buf;
}
Thanks for helping me through this. | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #7 on Mon 22 Dec 2008 05:58 PM (UTC) |
Message
|
Quote:z_stream ; *out_compress;
Oh! Well, that's just wrong ... I wonder why that semi-colon is in the middle there? It's not in the version I just downloaded from the website (http://www.smaugmuds.org/index.php?a=files&s=viewfile&fid=165). How odd... Well, anyhow, if you remove that, does it make the problem go away? |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Mjnbrn
(8 posts) Bio
|
Date
| Reply #8 on Mon 22 Dec 2008 06:04 PM (UTC) |
Message
| It fixed some of it. Now i'm getting :
In file included from comm.c:31:
sha256.h:39: error: two or more data types in declaration of ‘SHA256_CTX’
sha256.h:41: error: variable or field ‘SHA256_Init’ declared void
sha256.h:41: error: ‘SHA256_CTX’ was not declared in this scope
sha256.h:41: error: expected primary-expression before ‘)’ token
sha256.h:42: error: variable or field ‘SHA256_Update’ declared void
sha256.h:42: error: ‘SHA256_CTX’ was not declared in this scope
sha256.h:42: error: expected primary-expression before ‘,’ token
sha256.h:42: error: expected primary-expression before ‘const’
sha256.h:42: error: expected primary-expression before ‘)’ token
sha256.h:43: error: ‘SHA256_CTX’ has not been declared
sha256.h:44: error: ‘SHA256_CTX’ was not declared in this scope
sha256.h:44: error: expected primary-expression before ‘,’ token
sha256.h:44: error: expected primary-expression before ‘char’
sha256.h:44: error: initializer expression list treated as compound expression
make[1]: *** [o/comm.o] Error 1
make: *** [all] Error 2
those lines read :
} SHA256_CTX;
void SHA256_Init( SHA256_CTX * );
void SHA256_Update( SHA256_CTX *, const unsigned char *, size_t );
void SHA256_Final( unsigned char[32], SHA256_CTX * );
char *SHA256_End( SHA256_CTX *, char * );
| Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #9 on Mon 22 Dec 2008 06:14 PM (UTC) |
Message
| Could you please show the whole structure definition, that is, the part from the opening curly brace to:
} SHA256_CTX; |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Mjnbrn
(8 posts) Bio
|
Date
| Reply #10 on Mon 22 Dec 2008 06:16 PM (UTC) |
Message
|
typedef struct SHA256Context
{
int state[8];
int count[2];
unsigned char buf[64];
} SHA256_CTX;
| Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #11 on Mon 22 Dec 2008 06:59 PM (UTC) |
Message
| Just a guess here, but try changing:
typedef struct SHA256Context
{
int state[8];
int count[2];
unsigned char buf[64];
} SHA256_CTX;
to:
struct SHA256_CTX
{
int state[8];
int count[2];
unsigned char buf[64];
};
Another option is to install g++-4.2 instead of g++-4.3. I know that 4.3 is stricter than 4.2 about some things; this might be one of them. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Mjnbrn
(8 posts) Bio
|
Date
| Reply #12 on Mon 22 Dec 2008 07:07 PM (UTC) |
Message
| Looking better
root@mudsrv /mud/src % make
make -s smaug
Compiling o/imc.o....
Compiling o/act_comm.o....
Compiling o/act_info.o....
Compiling o/act_move.o....
Compiling o/act_obj.o....
Compiling o/act_wiz.o....
Compiling o/ban.o....
Compiling o/boards.o....
Compiling o/build.o....
Compiling o/calendar.o....
Compiling o/chess.o....
Compiling o/clans.o....
Compiling o/color.o....
Compiling o/comm.o....
In file included from comm.c:31:
sha256.h:39: error: multiple types in one declaration
make[1]: *** [o/comm.o] Error 1
make: *** [all] Error 2
39 is the close curly bracket in that last snippet you gave me.
struct SHA256_CTX
{
int state[8];
int count[2];
unsigned char buf[64];
};
| Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #13 on Mon 22 Dec 2008 08:13 PM (UTC) |
Message
| I got it to compile under Ubuntu 8.10 as follows:
- Booted the Ubuntu 8.10 stand-alone CDROM
- Downloaded SmaugFUSS 1.9: http://www.gammon.com.au/files/smaug/smaugfuss1.9.tgz
- Moved the downloaded file to my home directory
- Started a terminal session
- Extracted the downloaded file:
tar xzf smaugfuss1.9.tgz
- Changed to source directory:
cd smaugfuss/src
- Got g++:
sudo apt-get install g++
- Got zlib development:
sudo apt-get install zlib1g-dev
- Removed the -Werror flag from the Makefile (there are heaps of warnings)
- Built it:
make
- No errors! Tested OK.
Didn't have to make any of the edits above. Suggest you try again with a new copy of smaugfuss source. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Mjnbrn
(8 posts) Bio
|
Date
| Reply #14 on Mon 22 Dec 2008 08:27 PM (UTC) Amended on Mon 22 Dec 2008 08:41 PM (UTC) by Mjnbrn
|
Message
| Hm. I will try that then. thanks.
That work. Thank you again. :) | 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.
57,258 views.
This is page 1, subject is 2 pages long: 1 2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top