| View previous topic :: View next topic |
| Author |
Message |
x Voice

Joined: 18 Jan 2004 Posts: 26 Location: Finland
|
Posted: Tue May 09, 2006 6:14 pm Post subject: Make - problems with md5c.c |
|
|
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...
If someone has any idea, please help... |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue May 09, 2006 11:57 pm Post subject: |
|
|
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 |
|
 |
x Voice

Joined: 18 Jan 2004 Posts: 26 Location: Finland
|
Posted: Wed May 10, 2006 5:37 am Post subject: |
|
|
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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Wed May 10, 2006 12:17 pm Post subject: |
|
|
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 |
|
 |
x Voice

Joined: 18 Jan 2004 Posts: 26 Location: Finland
|
Posted: Wed May 10, 2006 1:15 pm Post subject: |
|
|
Absolutely wonderful! After replacing I tried to run 'make' and it was all successful.
Thanks a lot!
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 |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
|
| Back to top |
|
 |
x Voice

Joined: 18 Jan 2004 Posts: 26 Location: Finland
|
Posted: Wed May 10, 2006 8:12 pm Post subject: |
|
|
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.  |
|
| Back to top |
|
 |
|