This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

[solved] compiling windrop help

Discussion of Eggdrop's code and module programming in C.
Post Reply
v
veblen
Voice
Posts: 18
Joined: Tue Mar 13, 2007 11:23 am

[solved] compiling windrop help

Post by veblen »

hi, ive been trying to compile windrop, i want it the same as the standard precompiled version with ssl... the only difference is i want the msgrate value in /src/mod/server.mod/server.c changed from 2 to 0.

ive been tearing my hair out trying to get cygwin to work.. but im having no luck.

is there anyone that can do me a huge favour, spare a few minutes and compile it for me and .rar it on rapidshare or something?
Last edited by veblen on Fri Mar 16, 2007 2:26 pm, edited 1 time in total.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

~./doc/COMPILE-GUIDE
H. Cygwin / Windows
To compile and install Eggdrop on windows, preform the steps listed
below.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
v
veblen
Voice
Posts: 18
Joined: Tue Mar 13, 2007 11:23 am

Post by veblen »

ive tried following the instructions.. however i have error problems with cygwin which will not let me run through the procedures, which is why ive asked for help.

i would have done it myself otherwise.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Go to the Cygwin site; all the documentation/information you need is there.

Cygwin is not all that difficult to install. You do, however, must ensure that you follow the instructions for installing Tcl carefully; you also need to install gcc and mingw-runtime.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Might also be helpful to post actual error msgs regarding cygwin. It should install seamlessly. I would guess you don't have the devel packages installed..
v
veblen
Voice
Posts: 18
Joined: Tue Mar 13, 2007 11:23 am

Post by veblen »

i managed to get over my errors by compiling on a different system.

however i now have some more errors during the make eggdrop process

Code: Select all

In file included from /usr/include/openssl/x509.h:107,
                      from /usr/include/openssl/ssl.h:183,
                      from net.h:5,
                      from dccutil.c:36:
/usr/include/openssl/sha.h:174: error: parse error before "h"
/usr/include/openssl/sha.h:175: error: parse error before "N1"
/usr/include/openssl/sha.h:177: error: parse error before "d"
/usr/include/openssl/sha.h:179: error: parse error before '}' token
/usr/include/openssl/sha.h:181: error: parse error before '}' token
/usr/include/openssl/sha.h:185: error: parse error before '*' token
/usr/include/openssl/sha.h:186: error: parse error before '*' token
/usr/include/openssl/sha.h:187: error: parse error before "SHA512_CTX"
/usr/include/openssl/sha.h:189: error: parse error before '*' token
/usr/include/openssl/sha.h:190: error: parse error before '*' token
/usr/include/openssl/sha.h:191: error: parse error before "SHA512_CTX"
/usr/include/openssl/sha.h:193: error: parse error before '*' token
make[1]: *** [dccutil.o ] Error 1
make[1]: Leaving directory '/eggdrop1.6.18/src'
make: *** [modegg] Error 2

any ideas?
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

You did configure on a different system? That would likely be the source of the problem, the errors are from configure setting the wrong options for the system you're compiling on.
v
veblen
Voice
Posts: 18
Joined: Tue Mar 13, 2007 11:23 am

Post by veblen »

sorry what i meant was, i switched to another system for the entire process.

im getting those errors when trying to compile with the ssl patch.

i can compile windrop fine now without ssl, which will do for the time being.

the reason i wanted to compile myself was to change the msgrate value to 0, so i can pass information through the irc server more quickly. now ive compiled it with the changed setting, there is no difference in the information delay.. ie. the bot sends 5 lines of text instantly and then there is a delay of some seconds for every 2 lines after that.

is there something in the process of compiling windrop that makes no difference as to whether this value is changed or not?
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Are you using putquick?
v
veblen
Voice
Posts: 18
Joined: Tue Mar 13, 2007 11:23 am

Post by veblen »

yes ive tried using putquick, and also putdccraw.

ok an update on this.

ive compiled windrop a few times now.. with msgrate set to 0, 1 and 5.

with the value at 5 it passes one line to a channel every 5 seconds ok. with msgrate set at 1, putserv passes 1 line to a channel per second.

if i change this to putquick and putquick -next with msgrate set to 1, it starts to pass 2 lines to a channel every 2 seconds (with a 2 second delay).

the same happens as above (2lines and then a 2 second gap) with whatever put method i use with msgrate set to 0.

so as it seems the msgrate values are working properly, is there anything else in the file system of windrop/eggdrop that could be causing the delay?
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

From eggdrop1.6.18/src/mod/server.mod

Code: Select all

static void deq_msg()
{
  struct msgq *q;
  int ok = 0;

  /* now < last_time tested 'cause clock adjustments could mess it up */
  if ((now - last_time) >= msgrate || now < (last_time - 90)) {
    last_time = now;
    if (burst > 0)
      burst--;
    ok = 1;
  }
Presumably changing "now < (last_time - 90)" to a higher value would make it send more data sooner.. I'm not a C programmer and that's just my best guess.
v
veblen
Voice
Posts: 18
Joined: Tue Mar 13, 2007 11:23 am

Post by veblen »

surely that wont make a difference tho?

Code: Select all

if ((now - last_time) >= msgrate
as the value of msgrate is 0... so 'now - last_time' is always going to be greater than 0 anyway, so the second parameter 'now < (last_time - 90)' wont come into use.

----------

ive finally got to the bottom of the problem, its down to the ircd as to how fast the output is sent to the channel.

thanks for the help.
Post Reply