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.

trouble with SSL patching .16 and .17 missing openssl/md5.h

Old posts that have not been replied to for several years.
Locked
i
icekicker

trouble with SSL patching .16 and .17 missing openssl/md5.h

Post by icekicker »

ive tried both .16 an .17 by doing:

patch -p1 <../eggdrop1.6.16-ssl.diff
./configure --with-ssl=/usr/local/ssl
make iconfig (also ive tried make config)
make

then i always get..
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c dcc.c
dcc.c:38:25: openssl/md5.h: No such file or directory
dcc.c: In function `dcc_bot_digest':
dcc.c:302: `MD5_CTX' undeclared (first use in this function)
dcc.c:302: (Each undeclared identifier is reported only once
dcc.c:302: for each function it appears in.)
dcc.c:302: parse error before "md5context"
dcc.c:307: warning: implicit declaration of function `MD5_Init'
dcc.c:307: `md5context' undeclared (first use in this function)
dcc.c:308: warning: implicit declaration of function `MD5_Update'
dcc.c:310: warning: implicit declaration of function `MD5_Final'
dcc.c: In function `dcc_bot_check_digest':
dcc.c:508: `MD5_CTX' undeclared (first use in this function)
dcc.c:508: parse error before "md5context"
dcc.c:517: `md5context' undeclared (first use in this function)
make[1]: *** [dcc.o] Error 1
make[1]: Leaving directory `/home/b/eggdrop1.6.16/src'
make: *** [modegg] Error 2


locate md5.h
/usr/local/ssl/include/openssl/md5.h

its also at src/md5/md5.h

Makefile paths are:
XSSL_LIBS = -lssl -lcrypto -L/usr/local/ssl/lib -L/usr/local/ssl/lib
XSSL_INCLUDE = /usr/local/ssl/include

All the paths look right to me so any help on what im doing wrong would be appreciated. thanks.
R
RebelWolf

Post by RebelWolf »

Same trouble here with .17, tried with this alternate method (read it could help somewhere) :

specified --with-ssl=/openssl (which is the install dir but without 'make install' to keep the headers in the install dir)

any1 found a workaround ?
i
icekicker

Post by icekicker »

First i want to thank TurboChicken for his post.
http://forum.egghelp.org/viewtopic.php?t=8365

The solution to my problem is:

cd eggdrop1.6.17
mkdir openssl
cd openssl
cp /usr/local/ssl/include/openssl/* .

I also had to change the line in my makefile:
XSSL_INCLUDE = -L/usr/local/ssl/include

(added the -L)

basically you have to trick it. I tried changing the paths in the patch and such but this is the easiest way.
T
TurboChicken
Halfop
Posts: 61
Joined: Wed Sep 29, 2004 3:18 pm

Post by TurboChicken »

glad i could help :)
Locked