[Nagiosplug-devel] [ nagiosplug-Bugs-1291115 ] Wrong compile Options for openSSL

SourceForge.net noreply at sourceforge.net
Wed Jul 5 04:20:31 CEST 2006


Bugs item #1291115, was opened at 09/14/05 08:45
Message generated for change (Comment added) made by sf-robot
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: Closed
Resolution: None
Priority: 5
Submitted By: Michael (fichi)
Assigned to: Ton Voon (tonvoon)
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.

----------------------------------------------------------------------

>Comment By: SourceForge Robot (sf-robot)
Date: 07/04/06 19:20

Message:
Logged In: YES 
user_id=1312539

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

----------------------------------------------------------------------

Comment By: Ton Voon (tonvoon)
Date: 06/20/06 11:51

Message:
Logged In: YES 
user_id=664364

Michael,

Can you try the snapshot at http://nagiosplug.sf.net/snapshot?

Marking this call in pending and will auto close in 7 days if no response.

Ton

----------------------------------------------------------------------

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