[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  Dawn of Time
. -> [Folder]  Installing/compiling the server
. . -> [Subject]  deflateEnd

deflateEnd

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


Posted by Microp   USA  (68 posts)  [Biography] bio
Date Thu 04 Apr 2002 05:34 AM (UTC)

Amended on Thu 04 Apr 2002 05:37 AM (UTC) by Microp

Message
I made the changes to the DoT code to compile on Cygwin, listed in this forum, yet I get the following when I try to compile..

.
.
.
/cygdrive/c/dot/dawnsrc1.69p/descript.cpp:
117: undefined reference to `deflate'
obj/descript.o: In function `descriptor_data::begin_compression(void)':
/cygdrive/c/dot/dawnsrc1.69p/descript.cpp:
726: undefined reference to `deflateInit_'
obj/descript.o: In function `descriptor_data::end_compression(void)':
/cygdrive/c/dot/dawnsrc1.69p/descript.cpp:
776: undefined reference to `deflate'
/cygdrive/c/dot/dawnsrc1.69p/descript.cpp:
782: undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
make: *** [dawn] Error 1


I searched this forum, but I found no matches to deflateEnd or end_compression(void).

I went back to the Cygwin site thinking I might of missed a download package [end_compression(void)], and downloaded several more things that I thought could be the culprit..yet no luck.

Know how I can fix this?
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Fri 05 Apr 2002 (UTC)
Message

The references to Deflate are to do with MCCP (Mud Client Compression Protocol) which uses the zLib library.

See this post Compiling DoT under Cygwin. The first thing it mentions is that you can't use MCCP under Cygwin. You can't have made the change suggested there.


- Nick Gammon

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

Posted by Microp   USA  (68 posts)  [Biography] bio
Date Reply #2 on Fri 05 Apr 2002 05:18 AM (UTC)

Amended on Fri 05 Apr 2002 05:20 AM (UTC) by Microp

Message
Here's a copy and paste of my files..




DESCRIPT.H
/**************************************************************************/
//typedef unsigned int SOCKET;
/**************************************************************************/
#define DISABLE_MCCP // add this line
#ifndef DISABLE_MCCP // define this in your project to disable MCCP
# ifdef WIN32
# ifdef WIN32_MCCP_ENABLED
# define MCCP_ENABLED
# define ZLIB_DLL




UPDATE.CPP
/* Set the virtual (CPU time) timer to the standard setting, ALARM_FREQUENCY */
void reset_itimer ()
{
struct itimerval itimer;
itimer.it_interval.tv_usec = 0; /* miliseconds */
itimer.it_interval.tv_sec = ALARM_FREQUENCY;
itimer.it_value.tv_usec = 0;
itimer.it_value.tv_sec = ALARM_FREQUENCY;

return; // doesn't work under Cygwin - add this line




Here's a copy and paste of the compile output (after I do a ./configure)..

obj/descript.o: In function `descriptor_data::write(char const *, int)':
/cygdrive/c/dot/dawnsrc1.69p/descript.cpp:
117: undefined reference to `deflate'
obj/descript.o: In function `descriptor_data::begin_compression(void)':
/cygdrive/c/dot/dawnsrc1.69p/descript.cpp:
726: undefined reference to `deflateInit_'
obj/descript.o: In function `descriptor_data::end_compression(void)':
/cygdrive/c/dot/dawnsrc1.69p/descript.cpp:
776: undefined reference to `deflate'
/cygdrive/c/dot/dawnsrc1.69p/descript.cpp:
782: undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
make: *** [dawn] Error 1




The error still occurs.
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Fri 05 Apr 2002 05:44 AM (UTC)
Message
A bit depends on the order you did things.

Try getting rid of all object files and typing 'make' again.

ie. type this:

rm *.o
make

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[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.


14,752 views.

It is now over 60 days since the last post. This thread is closed.     [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.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]