Register forum user name Search FAQ

Gammon Forum

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 ➜ SMAUGFuss 1.8 error

SMAUGFuss 1.8 error

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Linglingzero   (6 posts)  Bio
Date Thu 01 Nov 2007 08:43 AM (UTC)
Message
Here's the error.

make -s smaug
Compiling o/comm.o....
In file included from comm.c:30:
mccp.h:18:18: error: zlib.h: No such file or directory
mccp.h:33: error: ISO C++ forbids declaration of ‘z_stream’ with no type
mccp.h:33: error: expected ‘;’ before ‘*’ token
comm.c: In function ‘bool write_to_descriptor(DESCRIPTOR_DATA*, char*, int)’:
comm.c:1639: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1641: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1642: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1644: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1646: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1647: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1649: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1651: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1651: error: ‘Z_SYNC_FLUSH’ was not declared in this scope
comm.c:1651: error: ‘deflate’ was not declared in this scope
comm.c:1653: error: ‘Z_OK’ was not declared in this scope
comm.c:1657: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1695: error: ‘struct mccp_data’ has no member named ‘out_compress’
make[1]: *** [o/comm.o] Error 1
make: *** [all] Error 2



I know what you're thinking. "zlib isn't installed"

I am running the latest version of Ubuntu, freshly installed an hour ago. I checked for everything that this needs installed, and well they are all installed, and in fact zlib is already installed. I don't know what to do now. Any ideas?
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Thu 01 Nov 2007 08:49 AM (UTC)
Message
You need the dev version: it has the include files and so forth. Here's what to do:

sudo apt-get install zlib1g-dev

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Linglingzero   (6 posts)  Bio
Date Reply #2 on Thu 01 Nov 2007 08:50 AM (UTC)
Message
RIght. i have tried that, and here's what i get.

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package zlib1g-dev
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #3 on Thu 01 Nov 2007 08:54 AM (UTC)
Message
Well, it might be called something different in Ubuntu 7.10 (Gutsy) if that's the version you have installed.

try:
apt-cache search zlib | grep dev

that will show you the name.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Linglingzero   (6 posts)  Bio
Date Reply #4 on Thu 01 Nov 2007 08:55 AM (UTC)
Message
Ok I tried that, nothing came up...and yes I have Gutsy
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #5 on Thu 01 Nov 2007 09:01 AM (UTC)
Message
That's weird. You must have something not set right in the repositories. According to Ubuntu's package list for Gutsy, it's called zlib1g-dev:
http://packages.ubuntu.com/gutsy/libdevel/zlib1g-dev


Could you post your /etc/apt/sources.list please? Maybe you don't have all the repositories set up.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Linglingzero   (6 posts)  Bio
Date Reply #6 on Thu 01 Nov 2007 09:04 AM (UTC)

Amended on Thu 01 Nov 2007 09:06 AM (UTC) by Linglingzero

Message
Good new! I figured out that the stupid thing didn't have the 3rd Party repository checked, so it was avoiding all of the IMPORTANT packages I need when trying to search through Synaptic! I sure have some negative thoughts about this "new" release! But anyways. I tried it again.

And even did sudo apt-get install zlib1g-dev and got this:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package zlib1g-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package zlib1g-dev has no installation candidate

..even after installing.

EDIT: OOOPS i send this message right before i read your message. I'll check what you suggested.
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #7 on Thu 01 Nov 2007 09:06 AM (UTC)
Message
You might need to refresh from the repository list:

sudo apt-get update


And I think it's been the default to disable 3rd party repositories for quite a while now, although I think the term "3rd party" is slightly misleading. There are two levels of 3rd party packages: the universe and the multiverse; the former being "less 3rd party" than the latter. Well, anyhow...

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Linglingzero   (6 posts)  Bio
Date Reply #8 on Thu 01 Nov 2007 09:08 AM (UTC)
Message
Well, I refreshed it, it updated stuff, but i tried it agian, same thing. Here's my sources.list.



deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

# Line commented out by installer because it failed to verify:
# deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted
# Line commented out by installer because it failed to verify:
# deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
# Line commented out by installer because it failed to verify:
# deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
# Line commented out by installer because it failed to verify:
# deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# Line commented out by installer because it failed to verify:
# deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe
# Line commented out by installer because it failed to verify:
# deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe
# Line commented out by installer because it failed to verify:
# deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe
# Line commented out by installer because it failed to verify:
# deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
# Line commented out by installer because it failed to verify:
# deb http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
# Line commented out by installer because it failed to verify:
# deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
# Line commented out by installer because it failed to verify:
# deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
# Line commented out by installer because it failed to verify:
# deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
deb http://archive.canonical.com/ubuntu gutsy partner
# deb-src http://archive.canonical.com/ubuntu gutsy partner

# Line commented out by installer because it failed to verify:
# deb http://security.ubuntu.com/ubuntu gutsy-security main restricted
# Line commented out by installer because it failed to verify:
# deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted
# Line commented out by installer because it failed to verify:
# deb http://security.ubuntu.com/ubuntu gutsy-security universe
# Line commented out by installer because it failed to verify:
# deb-src http://security.ubuntu.com/ubuntu gutsy-security universe
# Line commented out by installer because it failed to verify:
# deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
# Line commented out by installer because it failed to verify:
deb http://archive.ubuntu.com/ubuntu/ gutsy universe
# deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #9 on Thu 01 Nov 2007 09:16 AM (UTC)
Message
You want to turn on the repositories that were disabled by the installer because they failed to verify. (You probably didn't have an internet connection when you installed?)

Just remove the # in front of the various "deb" lines. You can also do this using the graphical tool: System | Administration | Software Sources, I think. The ones you want in particular are the main/restricted, universe, multiverse, and all the security repositories.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #10 on Thu 01 Nov 2007 09:17 AM (UTC)
Message
Oh, and you probably want to comment out the first CDROM repository, too, assuming your internet connection is more or less permanent.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Linglingzero   (6 posts)  Bio
Date Reply #11 on Thu 01 Nov 2007 09:21 AM (UTC)
Message
HAHA thats what that message was all about. I didn't set up the wifi on my laptop for internet because for all I knew i DIDNT need it. Thanks for helping solve this...I would've end up getting so frustrated I would've just deleted Ubuntu and try a different distro.

Anyways...back on topic.

THANK YOU SO MUCH!! It finally compiled 100% successful. Now to get on with what I wanted to do to begin with :)
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.


25,417 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.