You need to link against the dynamic loading library:

   gcc -Wall [yadda, yadda] -ldl

-Eric

Todd W. Smeed wrote:
Good evening all, I have been battling the install.sh on a FC3 box for a
few days and have been resolving each issue as it arises.  I am not
having this problem which I can not resolve.  I was having a problem
with the libssl-dev package, but was able to finally resolve it.  I am
now getting this issue which still appears to be linked to OpenSSL.
gcc -Wall -g -O2 -o check_http check_http.o sslutils.o netutils.o
utils.o
-L/usr/local/src/zenoss-0.22.1/build/nagios-plugins-1.4.3/plugins
../lib/libnagiosplug.a ../lib/libcoreutils.a -lnsl -lresolv -lssl
-lcrypto -Wl,--rpath -Wl,/usr/local/ssl/lib
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libcrypto.a(dso_dlfcn.o)(.
text+0x38): In function `dlfcn_load':
: undefined reference to `dlopen'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libcrypto.a(dso_dlfcn.o)(.
text+0xa0): In function `dlfcn_load':
: undefined reference to `dlclose'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libcrypto.a(dso_dlfcn.o)(.
text+0xc9): In function `dlfcn_load':
: undefined reference to `dlerror'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libcrypto.a(dso_dlfcn.o)(.
text+0x13e): In function `dlfcn_unload':
: undefined reference to `dlclose'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libcrypto.a(dso_dlfcn.o)(.
text+0x1f5): In function `dlfcn_bind_var':
: undefined reference to `dlsym'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libcrypto.a(dso_dlfcn.o)(.
text+0x241): In function `dlfcn_bind_var':
: undefined reference to `dlerror'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libcrypto.a(dso_dlfcn.o)(.
text+0x2d5): In function `dlfcn_bind_func':
: undefined reference to `dlsym'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libcrypto.a(dso_dlfcn.o)(.
text+0x321): In function `dlfcn_bind_func':
: undefined reference to `dlerror'
collect2: ld returned 1 exit status
gmake[3]: *** [check_http] Error 1
gmake[3]: Leaving directory
`/usr/local/src/zenoss-0.22.1/build/nagios-plugins-1.4.3/plugins'
gmake[2]: *** [install-recursive] Error 1
gmake[2]: Leaving directory
`/usr/local/src/zenoss-0.22.1/build/nagios-plugins-1.4.3/plugins'
gmake[1]: *** [install-recursive] Error 1
gmake[1]: Leaving directory
`/usr/local/src/zenoss-0.22.1/build/nagios-plugins-1.4.3'

Any assistance would be greatly appreciated.

Thank you,
Todd W Smeed
------------------------------------------------------------------------

_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to