Hello,
I'm new to NSD and I'm trying to install it on a CentOS Machine.
I just compile a new OpenSSL 1.0.0e version on to the machine but I always get the error bellow when running "./configure", and I already try it a few times.
Hello,
I'm new to NSD and I'm trying to install it on a CentOS Machine.
I just compile a new OpenSSL 1.0.0e version on to the machine but I always get the error bellow when running "./configure", and I already try it a few times.
Hi Eduardo,
I'm new to NSD and I'm trying to install it on a CentOS Machine.
I just compile a new OpenSSL 1.0.0e version on to the machine but I
always get the error bellow when running "./configure", and I already
try it a few times.
**********************************
checking for memmove... yes
checking for pselect prototype in sys/select.h... yes
checking for ctime_r prototype in time.h... yes
checking for struct timespec... yes
checking for SSL... found in /root/openssl/openssl-1.0.0e/
checking for HMAC_CTX_init in -lcrypto... no
configure: error: OpenSSL found in /root/openssl/openssl-1.0.0e/, but
version 0.9.7 or higher is required
**********************************Does any one had already a similar problem? Or can help me with it?
What version of CentOS are you building on? Is there any reason you
specifically built this version of OpenSSL? Is the CentOS default not
suitable?
Also, what options are you running "configure" with?
Anand Buddhdev
RIPE NCC
Hello,
The version of CentOS is "CentOS release 5.6 (Final)"
There is no special reason for building with this CentOS version but the default one was 0.9.6 if I'm not mistaken and for that reason I build and install the latest OpenSSL on the machine. The current output of the openssl version is bellow.
Hi Eduardo,
You did install the openssl to that directory, right? It contains
include/ lib/ and that sort of thing? It is not the compilation
directory of openssl?
config.log contains an error message, search the text file for the
'checking for HMAX_CTX ..' and see what it says (some compiler error
no doubt).
Best regards,
Wouter
Hello,
When running just "./configure" I'm using the openssl installed in the machine, but when running with "./configure --with-ssl=/root/openssl/openssl-1.0.0e/" is the compilation directory...
But when running it normally I look to the config.log (also in attatch) and have the following error.
config.log (88.4 KB)
Hi Eduardo,
Hello,
When running just "./configure" I'm using the openssl installed in
the machine, but when running with "./configure
--with-ssl=/root/openssl/openssl-1.0.0e/" is the compilation
directory...But when running it normally I look to the config.log (also in
attatch) and have the following error.
The solution would be LIBS=-ldl ./configure so that it adds libdl to
the link list, openssl seems to require it. This workaround is for
you but perhaps NSD needs to detect this openssl need. What was your
openssl config option line? This is something with the openssl 1.0
loadable crypto module thingys?
Best regards,
Wouter
********************* configure:7036: result: yes configure:7312:
checking for SSL configure:7335: result: found in /usr
configure:7344: checking for HMAC_CTX_init in -lcrypto
configure:7369: gcc -o conftest -g -O2 conftest.c -lcrypto >&5
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libcrypto.a(dso_dlfcn.o):
In function `dlfcn_globallookup':
dso_dlfcn.c:(.text+0x2d): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0x43): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x4d): undefined reference to `dlclose'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libcrypto.a(dso_dlfcn.o):
In function `dlfcn_pathbyaddr':
dso_dlfcn.c:(.text+0x8f): undefined reference to `dladdr'
dso_dlfcn.c:(.text+0xe8): undefined reference to `dlerror'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libcrypto.a(dso_dlfcn.o):
In function `dlfcn_bind_func':
dso_dlfcn.c:(.text+0x43d): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x514): undefined reference to `dlerror'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libcrypto.a(dso_dlfcn.o):
In function `dlfcn_bind_var':
dso_dlfcn.c:(.text+0x5a1): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x67d): undefined reference to `dlerror'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libcrypto.a(dso_dlfcn.o):
In function `dlfcn_unload':
dso_dlfcn.c:(.text+0x6e3): undefined reference to `dlclose'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libcrypto.a(dso_dlfcn.o):
In function `dlfcn_load':
Hello,
And it worked! I did the line like you said and it worked. I already have NSD installed.
The line that I used for the configuration of openssl was "./config --prefix=/usr/". What do you mean when on your last question?
Thanks,
Eduardo Duarte
W.C.A. Wijngaards wrote, On 01/03/2012 08:30 AM:
Hi Eduardo,
openssl config printouts its 'config result' as a little table of what
it does (at the start, above the other make lines), and that would be
useful; it somehow enables a dependency on libdl, and then we can
replicate and test this situation (well, that was on my mind
).
Have fun with NSD!
Best regards,
Wouter
Hello,
And it worked! I did the line like you said and it worked. I
already have NSD installed.The line that I used for the configuration of openssl was
"./config --prefix=/usr/". What do you mean when on your last
question?Thanks,
Eduardo Duarte
W.C.A. Wijngaards wrote, On 01/03/2012 08:30 AM: Hi Eduardo,
Hello,
When running just "./configure" I'm using the openssl
installed in the machine, but when running with "./configure
--with-ssl=/root/openssl/openssl-1.0.0e/" is the compilation
directory...But when running it normally I look to the config.log (also
in attatch) and have the following error.The solution would be LIBS=-ldl ./configure so that it adds libdl
to the link list, openssl seems to require it. This workaround is
for you but perhaps NSD needs to detect this openssl need. What
was your openssl config option line? This is something with the
openssl 1.0 loadable crypto module thingys?Best regards, Wouter
********************* configure:7036: result: yes
configure:7312: checking for SSL configure:7335: result:
found in /usr configure:7344: checking for HMAC_CTX_init in
-lcrypto configure:7369: gcc -o conftest -g -O2 conftest.c
-lcrypto>&5
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libcrypto.a(dso_dlfcn.o):
In function `dlfcn_globallookup':
dso_dlfcn.c:(.text+0x2d): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0x43): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x4d): undefined reference to `dlclose'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libcrypto.a(dso_dlfcn.o):
In function `dlfcn_pathbyaddr':
dso_dlfcn.c:(.text+0x8f): undefined reference to `dladdr'
dso_dlfcn.c:(.text+0xe8): undefined reference to `dlerror'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libcrypto.a(dso_dlfcn.o):
In function `dlfcn_bind_func':
dso_dlfcn.c:(.text+0x43d): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x514): undefined reference to `dlerror'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libcrypto.a(dso_dlfcn.o):
In function `dlfcn_bind_var':
dso_dlfcn.c:(.text+0x5a1): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x67d): undefined reference to `dlerror'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libcrypto.a(dso_dlfcn.o):
In function `dlfcn_unload':
dso_dlfcn.c:(.text+0x6e3): undefined reference to `dlclose'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libcrypto.a(dso_dlfcn.o):
In function `dlfcn_load':
Hi Wouter,
I just run the openssl config again and in attach is the result!
I hope is useful.
Best regards,
Eduardo Duarte
W.C.A. Wijngaards wrote, On 01/03/2012 11:27 AM:
opensslconfig.log (15 KB)