Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Package `j` provides `libj.so`, but it's not linked or copied into the default linker search path
@ 2021-08-23  1:49 subsetpark
  2021-09-11 10:40 ` leahneukirchen
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: subsetpark @ 2021-08-23  1:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1392 bytes --]

New issue by subsetpark on void-packages repository

https://github.com/void-linux/void-packages/issues/32640

Description:
### System

* xuname:  `Void 5.13.9_1 x86_64 GenuineIntel uptodate rrrmFFFF`
* package:  `j-901.f_1`

### Expected behavior

`libj.so` is available on the default dynamic linker search path (ie, a system call like `dlopen("j")` should locate `libj.so`)

### Actual behavior

`libj.so` is present and functional at `/usr/lib64/j/j64/libj.so`, but not available in `/usr/lib64`.

### Steps to reproduce the behavior

Attempt to use dynamic linking to access the `libj.so` file provided in the J distribution.

Here's a minimal C program that demonstrates the difference (obviously, the `janet` package is installed on my system!):

```c
#include <dlfcn.h>
#include <stdio.h>

int main(int argc, char **argv) {
  void *p = dlopen("libjanet.so", RTLD_NOW);
  printf("Janet DLL pointer: %p\n", p);
  void *q = dlopen("libj.so", RTLD_NOW);
  printf("J DLL pointer: %p\n", q);
}
```

Here's the execution example on my system:

```
Desktop [] ⊕ gcc ex.c -ldl                                                                                              
Desktop [] ⊕ ./a.out                                                                                                    
Janet DLL pointer: 0x5561857862c0
J DLL pointer: (nil)
```

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-06-17  2:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-23  1:49 [ISSUE] Package `j` provides `libj.so`, but it's not linked or copied into the default linker search path subsetpark
2021-09-11 10:40 ` leahneukirchen
2021-09-12 16:05 ` subsetpark
2021-09-24 15:15 ` subsetpark
2022-06-02  2:15 ` github-actions
2022-06-17  2:13 ` [ISSUE] [CLOSED] " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).