[Nagiosplug-devel] [ nagiosplug-Bugs-1291115 ] Wrong compile Options for openSSL
SourceForge.net
noreply at sourceforge.net
Wed Sep 14 08:48:03 CEST 2005
Bugs item #1291115, was opened at 2005-09-14 17:45
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1291115&group_id=29880
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Compilation
Group: Release (specify)
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael (fichi)
Assigned to: Nobody/Anonymous (nobody)
Summary: Wrong compile Options for openSSL
Initial Comment:
I tried to compile nagios-plugins-1.4.1.tar.gz on a
debian 3.1r0a system.
I installed openssl-0.9.8 successfully into
/usr/local/ssl which is default for this release.
I run ./configure --with-openssl=/usr/local/ssl
The make aborted with the following error message.
gcc -g -O2 -L. -R/usr/local/ssl/lib
-L/usr/local/ssl/lib -o check_http check_http.o
netutils.o utils.o ../lib/libnagiosplug.a
../lib/libcoreutils.a -lnsl -lresolv -lssl -lcrypto
-I/usr/local/ssl/include
gcc: unrecognized option `-R/usr/local/ssl/lib'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x45):
In function `dlfcn_load':
: undefined reference to `dlopen'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0xc4):
In function `dlfcn_load':
: undefined reference to `dlclose'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x102):
In function `dlfcn_load':
: undefined reference to `dlerror'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x1ad):
In function `dlfcn_bind_var':
: undefined reference to `dlsym'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x1f2):
In function `dlfcn_bind_var':
: undefined reference to `dlerror'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x2ed):
In function `dlfcn_bind_func':
: undefined reference to `dlsym'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x337):
In function `dlfcn_bind_func':
: undefined reference to `dlerror'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x68a):
In function `dlfcn_unload':
: undefined reference to `dlclose'
collect2: ld returned 1 exit status
make[2]: *** [check_http] Error 1
make[2]: Leaving directory
`/root/src/nagios-plugins-1.4.1/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/src/nagios-plugins-1.4.1'
make: *** [all] Error 2
The problem is in the Makefile from the plugin
directory. If you echang the following lines:
LDFLAGS = -L. -R/usr/local/ssl/lib -L/usr/local/ssl/lib
-> LDFLAGS = -L. -L/usr/local/ssl/lib -L/usr/local/ssl/lib
SSLLIBS = -lssl -lcrypto
-> SSLLIBS = -lssl -ldl -lcrypto
the compile goes OK
It seams that openSSL requires an additional link
option -ldl for this release.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1291115&group_id=29880
More information about the Devel
mailing list