Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

current release 2.0.4 fails to compile under musl #43

Closed
bastistician opened this issue Dec 12, 2024 · 2 comments
Closed

current release 2.0.4 fails to compile under musl #43

bastistician opened this issue Dec 12, 2024 · 2 comments

Comments

@bastistician
Copy link

The current CRAN release cannot be installed on Alpine Linux, blocking also a dozen reverse dependencies. Here is the relevant part of the installation log:

** libs
using C compiler: 'gcc (Alpine 13.2.1_git20240309) 13.2.1 20240309'
make[1]: Entering directory '/var/local/PKGS/CRAN/pingr/src'
gcc -I"/home/runner/R-patched/build/include" -DNDEBUG   -I/usr/local/include    -fpic  -O2 -mtune=native  -c dns.c -o dns.o
dns.c: In function 'r_nsl':
dns.c:314:9: warning: implicit declaration of function 'res_ninit'; did you mean 'res_init'? [-Wimplicit-function-declaration]
  314 |   ret = res_ninit(statep);
      |         ^~~~~~~~~
      |         res_init
dns.c:325:9: warning: implicit declaration of function 'res_nquery'; did you mean 'res_query'? [-Wimplicit-function-declaration]
  325 |   ret = res_nquery(
      |         ^~~~~~~~~~
      |         res_query
dns.c:333:5: warning: implicit declaration of function 'res_nclose' [-Wimplicit-function-declaration]
  333 |     res_nclose(statep);
      |     ^~~~~~~~~~
[...]
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for 'pingr' in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/home/runner/R-patched/lib/00LOCK-pingr/00new/pingr/libs/pingr.so':
  Error relocating /home/runner/R-patched/lib/00LOCK-pingr/00new/pingr/libs/pingr.so: res_ninit: symbol not found
Error: loading failed

Recent commits suggest this has already been fixed in the development version. It would be nice to get a fixed release. Thanks!

@gaborcsardi
Copy link
Member

Closed by #44.

@bastistician
Copy link
Author

Great, thanks!

* DONE (pingr)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants