Displaying 15 results from an estimated 15 matches for "sem_init".
Did you mean:
mem_init
2008 Nov 12
2
dlopen-ing a library with OpenMP by a non-OpenMP process
Hello!
Currently, when a program built without OpenMP (-fopenmp) is trying to
dlopen a library, built with the feature, the result is a crash from
"bad system call":
#0 0x00000008009a223c in ksem_init () from /lib/libc.so.7
#1 0x0000000800998a8f in sem_init () from /lib/libc.so.7
#2 0x00000008011a6537 in omp_get_nested () from /usr/lib/libgomp.so.1
#3 0x00000008011a3466 in ?? () from /usr/lib/libgomp.so.1
#4 0x0000000000000002 in ?? ()
#5 0x00000008005072b2 in dlsym () f...
2010 Nov 30
1
Compiling ocfs2-tools-1.6.3 on slackware64-13.1
...fs2.a ../libo2dlm/libo2dlm.a ../libo2cb/libo2cb.a -L../libocfs2 -locfs2 -L../libo2dlm -lo2dlm -L../libo2cb -lo2cb -L/lib64 -lcom_err
/lib64/libcom_err.a(error_message.o): In function `setup_et_lock':
error_message.c:(.text+0x1a3): undefined reference to `sem_init'
/lib64/libcom_err.a(error_message.o): In function `fini_et_lock':
error_message.c:(.text+0x1cc): undefined reference to `sem_destroy'
/lib64/libcom_err.a(error_message.o): In function `et_list_lock':
error_message.c:(.text+0x1ff): undefined reference to `sem_wait'
/lib64/libcom...
2010 Feb 13
3
ocfs2 compile error in x86_64
...../../../lib/et/error_message.c:74:
undefined reference to `sem_destroy'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/../../../../lib/libcom_err.a(error_message.o):
In function `setup_et_lock':
/sources/e2fsprogs-1.41.9/build/lib/et/../../../lib/et/error_message.c:68:
undefined reference to `sem_init'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/../../../../lib/libcom_err.a(error_message.o):
In function `et_list_unlock':
/sources/e2fsprogs-1.41.9/build/lib/et/../../../lib/et/error_message.c:95:
undefined reference to `sem_post'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/../../../../...
2010 Feb 13
3
ocfs2 compile error in x86_64
...../../../lib/et/error_message.c:74:
undefined reference to `sem_destroy'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/../../../../lib/libcom_err.a(error_message.o):
In function `setup_et_lock':
/sources/e2fsprogs-1.41.9/build/lib/et/../../../lib/et/error_message.c:68:
undefined reference to `sem_init'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/../../../../lib/libcom_err.a(error_message.o):
In function `et_list_unlock':
/sources/e2fsprogs-1.41.9/build/lib/et/../../../lib/et/error_message.c:95:
undefined reference to `sem_post'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/../../../../...
2011 Nov 16
1
febootstrap-3.12 configure error on Fedora 16
...libcom_err.a(error_message.o): In function `et_list_unlock':
> (.text+0x1b6): undefined reference to `sem_post'
> /usr/lib/gcc/x86_64-redhat-linux/4.6.2/../../../../lib64/libcom_err.a(error_message.o): In function `setup_et_lock':
> (.text.startup+0x11): undefined reference to `sem_init'
> /usr/lib/gcc/x86_64-redhat-linux/4.6.2/../../../../lib64/libcom_err.a(error_message.o): In function `fini_et_lock':
> (.text.exit+0xa): undefined reference to `sem_destroy'
> collect2: ld returned 1 exit status
>
>
> It seems that sem_* symbols are in -pthread -...
2019 Aug 15
3
[nbdkit PATCH] nbd: Another libnbd version bump
...!= LIBNBD_TLS_DISABLE) {
struct nbd_handle *nbd = nbd_create ();
if (!nbd) {
@@ -345,23 +347,12 @@ nbdplug_reader (void *handle)
return NULL;
}
-/* Prepare for a transaction. */
-static void
-nbdplug_prepare (struct transaction *trans)
-{
- memset (trans, 0, sizeof *trans);
- if (sem_init (&trans->sem, 0, 0))
- assert (false);
-}
-
+/* Callback used at end of a transaction. */
static int
-nbdplug_notify (unsigned valid_flag, void *opaque, int *error)
+nbdplug_notify (void *opaque, int *error)
{
struct transaction *trans = opaque;
- if (!(valid_flag & LIBNBD_CALL...
2011 Mar 13
1
Samba4 won't compile
...undefined reference to `sem_post'
/lib/libcom_err.a(error_message.o): In function `fini_et_lock':
error_message.c:(.text+0x3e): undefined reference to `sem_destroy'
/lib/libcom_err.a(error_message.o): In function `setup_et_lock':
error_message.c:(.text+0x6e): undefined reference to `sem_init'
/lib/libcom_err.a(error_message.o): In function `et_list_lock':
error_message.c:(.text+0x9d): undefined reference to `sem_wait'
collect2: ld returned 1 exit status
Waf: Leaving directory `/tmp/samba-4.0.0alpha14/source4/bin'
Build failed: -> task failed (err #1):
{task: cc_lin...
2019 Jul 01
3
[nbdkit PATCH 0/2] Use new libnbd _notify functions
I'm not observing any noticeable performance differences, but I'm
liking the diffstat. I can't push this patch until we release a new
libnbd version with the _notify API addition, but am posting it now
for playing with things.
Eric Blake (2):
nbd: Move transaction info from heap to stack
nbd: Use nbdkit aio_*_notify variants
plugins/nbd/nbd.c | 217
2019 May 25
1
[nbdkit PATCH] nbd: Rewrite thread passing to use semaphore rather than pipe
...trans);
if (!trans) {
nbdkit_error ("unable to track transaction: %m");
/* Still in sync with server, so don't mark connection dead */
- return -1;
+ return NULL;
}
- if (pipe (trans->u.fds)) {
- nbdkit_error ("unable to create pipe: %m");
+ if (sem_init (&trans->sem, 0, 0)) {
+ nbdkit_error ("unable to create semaphore: %m");
/* Still in sync with server, so don't mark connection dead */
free (trans);
- return -1;
+ return NULL;
}
trans->buf = rep_buf;
trans->count = rep_buf ? count : 0;
@@ -3...
2019 May 30
0
[nbdkit PATCH 3/4] nbd: Use libnbd 0.1
...*extents)
-{
- int err;
- struct transaction *trans;
- uint64_t cookie;
-
- trans = calloc (1, sizeof *trans);
- if (!trans) {
- nbdkit_error ("unable to track transaction: %m");
- /* Still in sync with server, so don't mark connection dead */
- return NULL;
- }
- if (sem_init (&trans->sem, 0, 0)) {
- nbdkit_error ("unable to create semaphore: %m");
- /* Still in sync with server, so don't mark connection dead */
- free (trans);
- return NULL;
- }
- trans->buf = rep_buf;
- trans->count = rep_buf ? count : 0;
- trans->offset =...
2019 Jun 12
0
[nbdkit PATCH v3 3/5] nbd: Use libnbd 0.1.3+
...*extents)
-{
- int err;
- struct transaction *trans;
- uint64_t cookie;
-
- trans = calloc (1, sizeof *trans);
- if (!trans) {
- nbdkit_error ("unable to track transaction: %m");
- /* Still in sync with server, so don't mark connection dead */
- return NULL;
- }
- if (sem_init (&trans->sem, 0, 0)) {
- nbdkit_error ("unable to create semaphore: %m");
- /* Still in sync with server, so don't mark connection dead */
- free (trans);
- return NULL;
- }
- trans->buf = rep_buf;
- trans->count = rep_buf ? count : 0;
- trans->offset =...
2019 May 30
5
[nbdkit PATCH 0/4] Play with libnbd for nbdkit-add
Patch 1 played with an early draft of Rich's Fedora 30 libnbd package:
https://bugzilla.redhat.com/show_bug.cgi?id=1713767#c17
Note that comment 21 provides a newer package 0.1.1-1 with a different
API; and that libnbd has more unreleased API changes in the pipeline
(whether that will be called 0.2 or 0.1.2); so we'll have to tweak
things based on what is actually available in distros.
2019 Jun 02
5
[nbdkit PATCH v2 0/5] Play with libnbd for nbdkit-nbd
libnbd-0.1.2-1 is now available in Fedora 29/30 updates-testing,
although it was not compiled against libxml2 so it lacks uri support
(I ended up testing patch 4 with a self-built libnbd).
Diffs since v1 - rebase to master, bump from libnbd 0.1 to 0.1.2, add
URI support, better timing results
Still not done - patch 5 needs associated tests
Eric Blake (5):
nbd: Check for libnbd
nbd:
2020 Mar 19
1
[nbdkit PATCH] nbd: Drop nbd-standalone fallback
...*extents)
-{
- int err;
- struct transaction *trans;
- uint64_t cookie;
-
- trans = calloc (1, sizeof *trans);
- if (!trans) {
- nbdkit_error ("unable to track transaction: %m");
- /* Still in sync with server, so don't mark connection dead */
- return NULL;
- }
- if (sem_init (&trans->sem, 0, 0)) {
- nbdkit_error ("unable to create semaphore: %m");
- /* Still in sync with server, so don't mark connection dead */
- free (trans);
- return NULL;
- }
- trans->buf = rep_buf;
- trans->count = rep_buf ? count : 0;
- trans->offset =...
2019 Jun 12
8
[nbdkit PATCH v3 0/5] Play with libnbd for nbdkit-nbd
libnbd-0.1.4-1 is now available in Fedora 29/30 updates testing.
Diffs since v2 - rebase to master, bump from libnbd 0.1.2 to 0.1.3+,
add tests to TLS usage which flushed out the need to turn relative
pathnames into absolute, doc tweaks
Now that the testsuite covers TLS and libnbd has been fixed to provide
the things I found lacking when developing v2, I'm leaning towards
pushing this on