This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "SFCB - Small Footprint CIM Broker".
The branch, master has been updated
via 8fa527ba5807999599178f7c0e660df315d5a283 (commit)
from 0420ab03d25c9163c062dc5a58f3995251e93c36 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 8fa527ba5807999599178f7c0e660df315d5a283
Author: Dave Heller <hel...@us...>
Date: Mon Jan 7 01:43:30 2013 -0500
[ 3599329 ] dlopen failed for sfcbCustomLib
-----------------------------------------------------------------------
Summary of changes:
diff --git a/NEWS b/NEWS
index 15214c3..9d92c6b 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,7 @@ New features:
Bugs fixed:
- 3599526 segfault during ecn with classProviderSf
+- 3599329 dlopen failed for sfcbCustomLib
Changes in 1.4.3
================
diff --git a/contributions.txt b/contributions.txt
index 40595b8..c8773d8 100644
--- a/contributions.txt
+++ b/contributions.txt
@@ -117,6 +117,7 @@ Klaus Kampf, Novell
09/30/2011 [ 3416055 ] SIGSEGV sometimes does not print provider name
03/29/2012 [ 3441028 ] sblim-sfcb fails on large https requests
03/29/2012 [ 3416054 ] Provider continues despite SIGSEGV
+01/05/2013 [ 3599329 ] dlopen failed for sfcbCustomLib
Mike Brasher, Inova
-------------------
diff --git a/support.c b/support.c
index db3d042..e69ff80 100644
--- a/support.c
+++ b/support.c
@@ -1109,38 +1109,43 @@ int loadHostnameLib()
hostnameLib = NULL;
if (getControlChars("sfcbCustomLib", &ln) == 0) {
- libraryName(NULL, ln, dlName, 512);
- if ((hostnameLib = dlopen(dlName, RTLD_LAZY))) {
- dlerror();
- sfcbHostname = dlsym(hostnameLib, "_sfcbGetResponseHostname");
- if ((err = dlerror()) != NULL) {
- printf("dlsym failed for _sfcbGetResponseHostname: %s\n", err);
- dlclose(hostnameLib);
- return -1;
- }
- dlerror();
- sfcbSlpHostname = dlsym(hostnameLib, "_sfcGetSlpHostname");
- if ((err = dlerror()) != NULL) {
- printf("dlsym failed for _sfcbGetSlpHostname: %s\n", err);
- dlclose(hostnameLib);
- return -1;
- }
- dlerror();
- indAuditLog = dlsym(hostnameLib, "_sfcbIndAuditLog");
- if ((err = dlerror()) != NULL) {
- printf("dlsym failed for _sfcbIndAuditLog: %s\n", err);
- dlclose(hostnameLib);
- return -1;
- }
- }
- else {
- printf("dlopen failed for sfcbCustomLib\n");
- return -1;
- }
+ libraryName(NULL, ln, dlName, 512);
+ hostnameLib = dlopen(dlName, RTLD_LAZY);
+ if (!hostnameLib) {
+ libraryName(SFCB_LIBDIR, ln, dlName, 512);
+ hostnameLib = dlopen(dlName, RTLD_LAZY);
+ }
+ if (hostnameLib) {
+ dlerror();
+ sfcbHostname = dlsym(hostnameLib, "_sfcbGetResponseHostname");
+ if ((err = dlerror()) != NULL) {
+ printf("dlsym failed for _sfcbGetResponseHostname: %s\n", err);
+ dlclose(hostnameLib);
+ return -1;
+ }
+ dlerror();
+ sfcbSlpHostname = dlsym(hostnameLib, "_sfcGetSlpHostname");
+ if ((err = dlerror()) != NULL) {
+ printf("dlsym failed for _sfcbGetSlpHostname: %s\n", err);
+ dlclose(hostnameLib);
+ return -1;
+ }
+ dlerror();
+ indAuditLog = dlsym(hostnameLib, "_sfcbIndAuditLog");
+ if ((err = dlerror()) != NULL) {
+ printf("dlsym failed for _sfcbIndAuditLog: %s\n", err);
+ dlclose(hostnameLib);
+ return -1;
+ }
+ }
+ else {
+ printf("dlopen failed for sfcbCustomLib\n");
+ return -1;
+ }
}
else {
- printf("Cannot find the libary to open: %s\n", ln);
- return -1;
+ printf("Cannot find the libary to open: %s\n", ln);
+ return -1;
}
return 0;
hooks/post-receive
--
SFCB - Small Footprint CIM Broker
|