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 ➜ Dawn of Time ➜ Installing/compiling the server ➜ deflateEnd

deflateEnd

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


Posted by Microp   USA  (68 posts)  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?
Top

Posted by Nick Gammon   Australia  (23,133 posts)  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
Top

Posted by Microp   USA  (68 posts)  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.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  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
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.


16,764 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.