egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Make - problems with md5c.c

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
x
Voice


Joined: 18 Jan 2004
Posts: 26
Location: Finland

PostPosted: Tue May 09, 2006 6:14 pm    Post subject: Make - problems with md5c.c Reply with quote

Hello there,
I tried today installing eggdrop 1.6.15 to my server. This version for the reason that I wanted to have some kind of IPv6 support in the bot.

Well, 'configure' was successful, 'make config' as well but I can't get it to finish the 'make'. It always stops at an error with md5.c and I wonder if anyone here would be able crystallize me what could be there reason.

Here's the output from 'make':
Code:

make[1]: Entering directory `/home/dan/eggdrop1.6.15/src'
(This may take a while.  Go get some runts.)
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c bg.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c botcmd.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c botmsg.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c botnet.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c chanprog.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c cmds.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c dcc.c
dcc.c: In function 'dcc_telnet':
dcc.c:1103: warning: comparison is always false due to limited range of data type
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c dccutil.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c dns.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c flags.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c language.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c match.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   \
'-DCCFLAGS="gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H  "' \
'-DLDFLAGS="gcc -pipe"' \
'-DSTRIPFLAGS="strip"' -c ./main.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c mem.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c misc.c
misc.c: In function 'putlog':
misc.c:490: warning: 't' may be used uninitialized in this function
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c misc_file.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c modules.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c net.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c rfc1459.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c tcl.c
tcl.c:497: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c tcldcc.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c tclhash.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c tclmisc.c
tclmisc.c: In function 'tcl_md5':
tclmisc.c:662: warning: pointer targets in assignment differ in signedness
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c tcluser.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c userent.c
userent.c: In function 'del_entry_type':
userent.c:1135: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c userrec.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c users.c
make[2]: Entering directory `/home/dan/eggdrop1.6.15/src/md5'
gcc -pipe -g -O2 -Wall -I. -I../.. -I../.. -I../../src -DHAVE_CONFIG_H   -c md5c.c
md5c.c: In function 'MD5_Update':
md5c.c:209: error: invalid lvalue in assignment
make[2]: *** [md5c.o] Error 1
make[2]: Leaving directory `/home/dan/eggdrop1.6.15/src/md5'
make[1]: *** [compile_md5] Error 2
make[1]: Leaving directory `/home/dan/eggdrop1.6.15/src'
make: *** [modegg] Error 2


I have Debian with 2.6.15 kernel and TCL 8.4. installed.

To add a bit more information, 'make' of version 1.6.17 goes through successfully so I wonder what's the problem with version 1.6.15... Confused

If someone has any idea, please help...
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue May 09, 2006 11:57 pm    Post subject: Reply with quote

what's on line 209?
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
x
Voice


Joined: 18 Jan 2004
Posts: 26
Location: Finland

PostPosted: Wed May 10, 2006 5:37 am    Post subject: Reply with quote

In src/md5/md5c.c:

Code:

                egg_memcpy(&ctx->buffer[used], data, free);
209:         (unsigned char *)data += free;
                size -= free;
                body(ctx, ctx->buffer, 64);
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Wed May 10, 2006 12:17 pm    Post subject: Reply with quote

try replacing that line with:
Code:

data = ((unsigned char *)data) + free;

_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
x
Voice


Joined: 18 Jan 2004
Posts: 26
Location: Finland

PostPosted: Wed May 10, 2006 1:15 pm    Post subject: Reply with quote

Absolutely wonderful! After replacing I tried to run 'make' and it was all successful.
Thanks a lot! Cool

Btw, just because I am curious, is this some well known problem or is this somehow rare and related to my set up? I tried to find solution from google before posting on forum, but couldn't find anything related to the same problem with md5c.c.
Back to top
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Wed May 10, 2006 8:01 pm    Post subject: Reply with quote

maybe your source was improperly generated: http://www.eggheads.org/cgi-bin/viewcvs.cgi/eggdrop1.6/src/md5/md5c.c.diff?r1=1.13&r2=1.14
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
x
Voice


Joined: 18 Jan 2004
Posts: 26
Location: Finland

PostPosted: Wed May 10, 2006 8:12 pm    Post subject: Reply with quote

That's interesting. I downloaded the source from the ftp-server of eggheads a few days ago.
From there I've also downloaded it before and had no problems with setting up on any other machine than this one I was working with at this time. Neutral
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber