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.

eggdrop-1.6.19-ssl-rootie.patch make errors

General support and discussion of Eggdrop bots.
Post Reply
M
MrStatic
Voice
Posts: 3
Joined: Tue Apr 29, 2008 3:56 am

eggdrop-1.6.19-ssl-rootie.patch make errors

Post by MrStatic »

I started out by downloading eggdrop1.6.19+ctcpfix.tar.gz. I ./configure, make config, make, make install. No issues. Now I go to apply the patch.

I get
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- src/patch.h 2008-04-19 06:21:20.000000000 +0200
|+++ src/patch.h 2008-04-19 11:29:55.000000000 +0200
--------------------------
Patching file src/patch.h using Plan A...
Hunk #1 failed at 32.
1 out of 1 hunks failed--saving rejects to src/patch.h.rej
patch.h.rej reads as follows
***************
*** 32,42 ****
*/
#ifndef _EGG_PATCH_H
#define _EGG_PATCH_H
- /*
- *
- *
- */
- /* PATCH GOES HERE */
/*
*
*
--- 32,40 ----
*/
#ifndef _EGG_PATCH_H
#define _EGG_PATCH_H
+ #ifdef EGG_SSL_EXT
+ patch("SSL");
+ #endif
/*
*
*
So I hand edited that in with pico. I goto 'make' and I get
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
In file included from dcc.c:36:
md5/md5.h:8:23: ../config.h: No such file or directory
*** Error code 1
So I assume they mean /home/user/config.h So I edit the md5.h direcly to that instead of ..config.h

Which appears to work at first then
This may take a while. Go get some runts.

gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c dcc.c
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
dns.c: In function `display_dcc_dnswait':
dns.c:67: warning: long int format, time_t arg (arg 3)
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="touch"' -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
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: In function `readtclprog':
tcl.c:746: warning: assignment discards qualifiers from pointer target type
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_unixtime':
tclmisc.c:386: warning: long int format, time_t arg (arg 4)
tclmisc.c:386: warning: long int format, time_t arg (arg 4)
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:1141: 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
gcc -pipe -g -O2 -Wall -I. -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -c md5c.c
md5c.c:28: error: redefinition of typedef 'MD5_u32plus'
md5.h:16: error: previous declaration of 'MD5_u32plus' was here
md5c.c:35: error: conflicting types for 'MD5_CTX'
md5.h:23: error: previous declaration of 'MD5_CTX' was here
md5c.c:192: error: conflicting types for 'MD5_Init'
md5.h:25: error: previous declaration of 'MD5_Init' was here
md5c.c:192: error: conflicting types for 'MD5_Init'
md5.h:25: error: previous declaration of 'MD5_Init' was here
md5c.c:203: error: conflicting types for 'MD5_Update'
md5.h:26: error: previous declaration of 'MD5_Update' was here
md5c.c:203: error: conflicting types for 'MD5_Update'
md5.h:26: error: previous declaration of 'MD5_Update' was here
md5c.c:237: error: conflicting types for 'MD5_Final'
md5.h:27: error: previous declaration of 'MD5_Final' was here
md5c.c:237: error: conflicting types for 'MD5_Final'
md5.h:27: error: previous declaration of 'MD5_Final' was here
*** Error code 1

Stop in /usr/home/mrstatic/eggdrop1.6.19/src/md5.
*** Error code 1
Any help would be appreciated.
t
ttraxx
Voice
Posts: 1
Joined: Mon Aug 10, 2009 8:14 am

Post by ttraxx »

Got exact the same error here.

Hunk #1 failed at 32.
1 out of 1 hunks failed--saving rejects to src/patch.h.rej

Any solution to get around this ?
t
thommey
Halfop
Posts: 76
Joined: Tue Apr 01, 2008 2:59 pm

Post by thommey »

It's not really important. You can ignore the patch.h rejection error.

Patch.h is only responsible for generating the version number as in:
eggdrop1.6.19+ssl+ipv6

Nothing else. You can add the tag missing manually if you want to, the file is trivial to understand. But it's not required.
Post Reply