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.

Make - problems with md5c.c

General support and discussion of Eggdrop bots.
Post Reply
User avatar
x
Voice
Posts: 26
Joined: Sun Jan 18, 2004 6:58 pm
Location: Finland
Contact:

Make - problems with md5c.c

Post by x »

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: Select all

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... :?

If someone has any idea, please help...
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

what's on line 209?
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
x
Voice
Posts: 26
Joined: Sun Jan 18, 2004 6:58 pm
Location: Finland
Contact:

Post by x »

In src/md5/md5c.c:

Code: Select all

                egg_memcpy(&ctx->buffer[used], data, free);
209:         (unsigned char *)data += free;
                size -= free;
                body(ctx, ctx->buffer, 64);
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

try replacing that line with:

Code: Select all

data = ((unsigned char *)data) + free;
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
x
Voice
Posts: 26
Joined: Sun Jan 18, 2004 6:58 pm
Location: Finland
Contact:

Post by x »

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

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.
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

maybe your source was improperly generated: http://www.eggheads.org/cgi-bin/viewcvs ... 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...
User avatar
x
Voice
Posts: 26
Joined: Sun Jan 18, 2004 6:58 pm
Location: Finland
Contact:

Post by x »

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. :|
Post Reply