Page 1 of 1

[SOLVED]iling: undefined reference to `RAND_query_egd_bytes'

Posted: Thu May 15, 2008 2:16 am
by chiappa
Hi,

While trying to compile unrealircd 3.2.7 i get the error message:

/home/chiappa/Unreal3.2.7/src/random.c:191: undefined reference to `RAND_query_egd_bytes'

chiappa@zero ~ $ locate libssl.so
/usr/lib/libssl.so.0.9.7
/usr/lib/libssl.so.0.9.8
/usr/lib/libssl.so

chiappa@zero ~ $ locate opensslv.h
/usr/include/openssl/opensslv.h

chiappa@zero ~ $ grep OPENSSL_VERSION /usr/include/openssl/opensslv.h
#define OPENSSL_VERSION_NUMBER 0x0090807fL
#define OPENSSL_VERSION_TEXT "OpenSSL 0.9.8g-fips 19 Oct 2007"
#define OPENSSL_VERSION_TEXT "OpenSSL 0.9.8g 19 Oct 2007"
#define OPENSSL_VERSION_PTEXT " part of " OPENSSL_VERSION_TEXT

chiappa@zero ~ $ strings /usr/lib/libcrypto.so|grep 0.9.

Code: Select all

libcrypto.so.0.9.8
OpenSSL 0.9.8g 19 Oct 2007
MD2 part of OpenSSL 0.9.8g 19 Oct 2007
MD4 part of OpenSSL 0.9.8g 19 Oct 2007
MD5 part of OpenSSL 0.9.8g 19 Oct 2007
SHA part of OpenSSL 0.9.8g 19 Oct 2007
SHA1 part of OpenSSL 0.9.8g 19 Oct 2007
SHA-256 part of OpenSSL 0.9.8g 19 Oct 2007
SHA-512 part of OpenSSL 0.9.8g 19 Oct 2007
RIPE-MD160 part of OpenSSL 0.9.8g 19 Oct 2007
libdes part of OpenSSL 0.9.8g 19 Oct 2007
DES part of OpenSSL 0.9.8g 19 Oct 2007
AES part of OpenSSL 0.9.8g 19 Oct 2007
RC2 part of OpenSSL 0.9.8g 19 Oct 2007
RC4 part of OpenSSL 0.9.8g 19 Oct 2007
RC5 part of OpenSSL 0.9.8g 19 Oct 2007
IDEA part of OpenSSL 0.9.8g 19 Oct 2007
Blowfish part of OpenSSL 0.9.8g 19 Oct 2007
CAST part of OpenSSL 0.9.8g 19 Oct 2007
CAMELLIA part of OpenSSL 0.9.8g 19 Oct 2007
Big Number part of OpenSSL 0.9.8g 19 Oct 2007
RSA part of OpenSSL 0.9.8g 19 Oct 2007
DSA part of OpenSSL 0.9.8g 19 Oct 2007
ECDSA part of OpenSSL 0.9.8g 19 Oct 2007
Diffie-Hellman part of OpenSSL 0.9.8g 19 Oct 2007
ECDH part of OpenSSL 0.9.8g 19 Oct 2007
Stack part of OpenSSL 0.9.8g 19 Oct 2007
lhash part of OpenSSL 0.9.8g 19 Oct 2007
RAND part of OpenSSL 0.9.8g 19 Oct 2007
EVP part of OpenSSL 0.9.8g 19 Oct 2007
ASN.1 part of OpenSSL 0.9.8g 19 Oct 2007
PEM part of OpenSSL 0.9.8g 19 Oct 2007
X.509 part of OpenSSL 0.9.8g 19 Oct 2007
CONF part of OpenSSL 0.9.8g 19 Oct 2007
CONF_def part of OpenSSL 0.9.8g 19 Oct 2007
TXT_DB part of OpenSSL 0.9.8g 19 Oct 2007
config.log

one header file.. does this mean 0.9.7 & 0.9.8 libs conflict?

the very same server is already running another ircd with ssl connections. so any ideas? btw. i dont have root access:/

thanks for all help!

Re: compiling: undefined reference to `RAND_query_egd_bytes'

Posted: Thu May 15, 2008 9:23 pm
by chiappa
Compiled openssl into my home dir. Did ./Config but it would not use the path of openssl I supplied. So after I searched all the instances of "ssl" from the Makefile, changed the paths to the correct places in my home dir, path to openssl binary, libs & something else. did a make, which worked fine. SOLVED.