[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]  Compile Errors with smaugFUSS 1.9 on fresh Ubuntu 8.10
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Compile Errors with smaugFUSS 1.9 on fresh Ubuntu 8.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)

Pages: 1 2  

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Mon 22 Dec 2008 09:06 PM (UTC)  quote  ]
Message
Where did you get your copy of SmaugFUSS? We were seeing actual error messages, not warnings, and I'm a little surprised that you'd get them from the same source and compiler that Nick was using, but Nick got no errors.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Mjnbrn   (8 posts)  [Biography] bio
Date Mon 22 Dec 2008 08:27 PM (UTC)  quote  ]

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. :)
[Go to top] top

Posted by Nick Gammon   Australia  (19,597 posts)  [Biography] bio   Forum Administrator
Date Mon 22 Dec 2008 08:13 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Mjnbrn   (8 posts)  [Biography] bio
Date Mon 22 Dec 2008 07:07 PM (UTC)  quote  ]
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];
};

[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Mon 22 Dec 2008 06:59 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Mjnbrn   (8 posts)  [Biography] bio
Date Mon 22 Dec 2008 06:16 PM (UTC)  quote  ]
Message

typedef struct SHA256Context
{
   int state[8];
   int count[2];
   unsigned char buf[64];
} SHA256_CTX;
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Mon 22 Dec 2008 06:14 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Mjnbrn   (8 posts)  [Biography] bio
Date Mon 22 Dec 2008 06:04 PM (UTC)  quote  ]
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 * );
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Mon 22 Dec 2008 05:58 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Mjnbrn   (8 posts)  [Biography] bio
Date Mon 22 Dec 2008 05:49 PM (UTC)  quote  ]
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.
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Mon 22 Dec 2008 03:35 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Mjnbrn   (8 posts)  [Biography] bio
Date Mon 22 Dec 2008 02:23 PM (UTC)  quote  ]
Message
indeed. Do i need to do anything special for it to be used?
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio   Moderator
Date Mon 22 Dec 2008 01:26 PM (UTC)  quote  ]
Message
Hm, is SHA256 installed?

#include <sys/types.h>
#include <sha2.h>

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

Posted by Mjnbrn   (8 posts)  [Biography] bio
Date Mon 22 Dec 2008 12:32 PM (UTC)  quote  ]
Message
I must, because it keeps telling me it is at the latest version.
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio   Moderator
Date Sat 20 Dec 2008 06:10 PM (UTC)  quote  ]
Message
Do you have zlib installed?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[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.


7,977 views.

This is page 1, subject is 2 pages long: 1 2  [Next page]

It is now over 60 days since the last post. This thread is closed.   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

[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]    [Web site powered by FutureQuest.Net]