search for: dlclose

Displaying 20 results from an estimated 132 matches for "dlclose".

2018 Jul 01
2
[PATCH nbdkit] valgrind: Don't call dlclose when running under valgrind.
When valgrinding plugins, the following sequence can happen: plugin_free -> dlclose -> unloads the plugin and symbol table exit -> valgrind prints failures (the same applies to filters). When valgrind is printing the failures, it looks up the addresses in the symbol table, but that has been unloaded already so all you see are "???", resulting in useless...
2016 Apr 06
2
Writing a test for gcov style coverage crashing after dlclose
...piler-rt/test/gcov (or gcda) to put my test case ? Guidance would be appreciated. Benoit ‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹ See: https://llvm.org/bugs/show_bug.cgi?id=27224 Bug 27224 <https://llvm.org/bugs/show_bug.cgi?id=27224> - gcov / gcda-based profiling crashes when shared libraries are unloaded (dlclose()) I believe that GCDA profiling functions should be declared as hidden, i.e. symbols that are not exported by shared libraries. This would allow the GCDA based profiling to work correctly with code using dlopen/dlclose to load and unload shared libraries. Each shared library must have its own c...
2018 Jul 01
0
Re: [PATCH nbdkit] valgrind: Don't call dlclose when running under valgrind.
On Sun, Jul 01, 2018 at 12:50:46PM +0100, Richard W.M. Jones wrote: > diff --git a/src/Makefile.am b/src/Makefile.am > index 7ead75c..915efe4 100644 > --- a/src/Makefile.am > +++ b/src/Makefile.am > @@ -63,7 +63,8 @@ nbdkit_CPPFLAGS = \ > nbdkit_CFLAGS = \ > -pthread \ > $(WARNINGS_CFLAGS) \ > - $(GNUTLS_CFLAGS) > + $(GNUTLS_CFLAGS) \ > + $(VALGRIND_CFLAGS)
2016 Nov 13
3
[PATCH] Manually cleanup OpenSSL from dovecot_openssl_common_global_unref()
OpenSSL 1.1 features a cleanup function that is automatically run on shutdown using atexit(3). This function frees all OpenSSL-allocated resources. In dovecot, OpenSSL is loaded indirectly using dlopen(3) against the relevant dovecot crypto module and is finally unloaded using dlclose(3). Until OpenSSL 1.0.1c this worked fine, however OpenSSL 1.0.1c makes sure[1] that the library stays loaded after the initial dlclose() so that the atexit(3) handlers can run on shutdown. This, together with the fact that dovecot uses custom allocation functions for OpenSSL and has already partia...
2001 Aug 08
3
openssh-2.9p2 Config - undefined references
...lib conftest.c -lz -lnsl -lutil -lcrypto 1>&5 /opt/openssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load': dso_dlfcn.o(.text+0x8e): undefined reference to `dlopen' dso_dlfcn.o(.text+0xa4): undefined reference to `dlopen' dso_dlfcn.o(.text+0x10a): undefined reference to `dlclose' /opt/openssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload': dso_dlfcn.o(.text+0x1d2): undefined reference to `dlclose' /opt/openssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var': dso_dlfcn.o(.text+0x283): undefined reference to `dlsym' /opt/openssl/lib/...
2005 Sep 06
3
OpenSSH-4.2p1 with OpenSSL-0.98 (bug)
...penbsd-compat -lresolv -lcrypto -lutil -lz -lnsl -lcrypt /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x35): In function `dlfcn_load': : undefined reference to `dlopen' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x95): In function `dlfcn_load': : undefined reference to `dlclose' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0xbc): In function `dlfcn_load': : undefined reference to `dlerror' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x147): In function `dlfcn_bind_var': : undefined reference to `dlsym' /usr/local/ssl/lib/libcrypto.a(dso...
2001 Jul 19
1
This is what I get when I try to install openssh
.../TWWfsw/zlib11/include -L/usr/local/lib -R/usr/local/lib -L/usr/lib - R/usr/lib -L/opt/TWWfsw/zlib11/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib conftes t.c -lz -lsocket -lnsl -lgen -lcrypto 1>&5 Undefined first referenced symbol in file dlclose /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o) (sy mbol belongs to implicit dependency /usr/lib/libdl.so.1) dlsym /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o) (sy mbol belongs to implicit dependency /usr/lib/libdl.so.1) dlopen /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o) (sy mbol belongs to implicit...
2018 Jun 15
2
[WebAssembly] lld dynamic loader
Hi Sam, Thanks for your answer! Sorry I didn't really know how to process, but this issue block me to make some legacy C code works without having some glue with a bit static lib ;( (The change have really low risk) The changes I used locally to make dlopen/dlclose et dlsym mechanism works :) : Index: wasm/Writer.cpp =================================================================== --- wasm/Writer.cpp (revision 330555) +++ wasm/Writer.cpp (working copy) @@ -257,7 +257,7 @@ raw_ostream &OS = Section->getStream(); writeUleb128(OS, 1, &qu...
2006 Mar 14
2
Problem compiling openssh-4.3p2 w/ openssl.0.9.8a on FC3
...lopenbsd-compat -lresolv -lcrypto -lutil -lz -lnsl -lcrypt /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x38): In function `dlfcn_load': : undefined reference to `dlopen' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0xa0): In function `dlfcn_load': : undefined reference to `dlclose' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0xc9): In function `dlfcn_load': : undefined reference to `dlerror' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x13e): In function `dlfcn_unload': : undefined reference to `dlclose' /usr/local/ssl/lib/libcrypto.a(dso_dl...
2016 Feb 11
5
issues with split llvm libraries and llvmpipe and failing to load library
Hey, So in Fedora rawhide we are now building llvm 3.7.1 into the lots of little shared libraries format. However I'm running into a major problem with the fact that sometimes dlclose isn't dropping all the LLVM libraries from the address space of the process. We have a sequence like this: a) X server asks mesa gbm library to init, it loads the kms_swrast_dri.so with dlopen(LAZY|GLOBAL). kms_swrast_dri.so is linked against a large bunch of LLVM libraries (see below). b) g...
2019 Aug 19
3
[ORC] Removing / replacing JITDylibs
Hi, I'm working on a runtime autotuner that utilizes ORCv2 JIT (I'm closely tracking tip-of-tree), so linking new object files and patching in the new function(s) will happen frequently. One of the concerns my runtime system has is the ability to do one of the following: (1) replacement of the contents of a JITDylib with a new object file [to provide semi-space GC-style reclaiming], (2)
2014 May 23
4
[LLVMdev] Selectively Jitting using MCJIT
> As far as I know, ObjectFile is either COFF, ELF or MachO format, > statically compiled. But the pass manager for applying optimisation > passes works only on llvm-ir. I would not need to apply optimisations on the parts of the program in the object file. These are meant to be optimised beforehand. The only parts I want to run passes on are specific function that I know
2016 Nov 15
0
[PATCH] Manually cleanup OpenSSL from dovecot_openssl_common_global_unref()
...; OpenSSL 1.1 features a cleanup function that is automatically run on shutdown > using atexit(3). This function frees all OpenSSL-allocated resources. > > In dovecot, OpenSSL is loaded indirectly using dlopen(3) against the relevant > dovecot crypto module and is finally unloaded using dlclose(3). Until > OpenSSL 1.0.1c this worked fine, however OpenSSL 1.0.1c makes sure[1] that the > library stays loaded after the initial dlclose() so that the atexit(3) > handlers can run on shutdown. This, together with the fact that dovecot > uses custom allocation functions for OpenSSL an...
2002 May 18
0
[Bug 251] New: openssh-3.2.2p1-1.src.rpm won't build under RH6.2
...at iq.pl Openssl updated to openssl-0.9.6b-18 error: /usr/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load': dso_dlfcn.o(.text+0xb9): undefined reference to `dlopen' dso_dlfcn.o(.text+0xc8): undefined reference to `dlopen' dso_dlfcn.o(.text+0x121): undefined reference to `dlclose' /usr/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload': dso_dlfcn.o(.text+0x192): undefined reference to `dlclose' /usr/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var': dso_dlfcn.o(.text+0x253): undefined reference to `dlsym' /usr/lib/libcrypto.a(dso_dlfc...
2002 Jun 27
0
[Bug 307] New: configure fails to add -ldl (RedHat specfile)
...ect2.o sshtty.o readconf.o clientloop.o -L. -Lopenbsd-compat/ -lssh -lopenbsd-compat -lutil -lz -lnsl /usr/lib/libcrypto.a /usr/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load': dso_dlfcn.o(.text+0x8a): undefined reference to `dlopen' dso_dlfcn.o(.text+0xe8): undefined reference to `dlclose' /usr/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload': dso_dlfcn.o(.text+0x18c): undefined reference to `dlclose' /usr/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var': dso_dlfcn.o(.text+0x239): undefined reference to `dlsym' /usr/lib/libcrypto.a(dso_dlfcn.o):...
2005 Sep 27
1
make fails with ssl 0.9.8
...ind_var': dso_dlfcn.c: undefined reference to `dlsym' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x448):dso_dlfcn.c: undefined reference to `dlerror' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x49d): In function `dlfcn_unload': dso_dlfcn.c: undefined reference to `dlclose' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x551): In function `dlfcn_load': dso_dlfcn.c: undefined reference to `dlopen' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x5c6):dso_dlfcn.c: undefined reference to `dlclose' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.t...
2004 Sep 24
1
Compilation error
...uring compilation Linking nsswitch/libnss_wins.so lib/system.po: In function `sys_dlopen': lib/system.po(.text+0xb37): undefined reference to `dlopen' lib/system.po: In function `sys_dlsym': lib/system.po(.text+0xb57): undefined reference to `dlsym' lib/system.po: In function `sys_dlclose': lib/system.po(.text+0xb74): undefined reference to `dlclose' lib/system.po: In function `sys_dlerror': lib/system.po(.text+0xb91): undefined reference to `dlerror' lib/username.po: In function `user_in_netgroup_list': lib/username.po(.text+0xab7): undefined reference to `yp_ge...
2017 Jul 10
2
Re: [PATCH v3 3/5] threads: Use thread-local storage for errors.
On Tuesday, 27 June 2017 13:55:57 CEST Richard W.M. Jones wrote: > We permit the following constructs in libguestfs code: > > if (guestfs_some_call (g) == -1) { > fprintf (stderr, "failed: error is %s\n", guestfs_last_error (g)); > } > > and: > > guestfs_push_error_handler (g, NULL, NULL); > guestfs_some_call (g); >
2006 Sep 07
2
Plugins for Dovecot at FreeBSD 6.0
Hi I met problem developing plug-in under FreeBSD 6.1. First I tried to use internal plugins like quota and acl but I got: IMAP(xxx): module /usr/local/lib/dovecot/imap/lib01_acl_plugin.so: dlsym(acl_plugin_init) failed: Shared object "nss_dns.so.1" not found, required by "imap" This library doesn't exist on FreeBSD 6.1 Same story when u mention any plugin in
2005 May 31
1
compile errors samba-3.0.15pre2 redhat 7.3
...status.c with -fPIC Linking nsswitch/libnss_wins.so lib/system.po: In function `sys_dlopen': lib/system.po(.text+0xd71): undefined reference to `dlopen' lib/system.po: In function `sys_dlsym': lib/system.po(.text+0xd99): undefined reference to `dlsym' lib/system.po: In function `sys_dlclose': lib/system.po(.text+0xdbe): undefined reference to `dlclose' lib/system.po: In function `sys_dlerror': lib/system.po(.text+0xddc): undefined reference to `dlerror' lib/username.po: In function `user_in_netgroup_list': lib/username.po(.text+0xb76): undefined reference to `yp_ge...