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

Problem at installation: undefined symbol #59

Closed
ulf85 opened this issue Apr 27, 2021 · 2 comments
Closed

Problem at installation: undefined symbol #59

ulf85 opened this issue Apr 27, 2021 · 2 comments

Comments

@ulf85
Copy link

ulf85 commented Apr 27, 2021

Hi,
I just wanted to install your wonderful mlr3verse package (from CRAN). But it stopped at the installation of mlr3misc with the following error I can not understand:

Error: package or namespace load failed for ‘mlr3misc’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/applvg/os/usr/lib64/R/library/mlr3misc/libs/mlr3misc.so':
/applvg/os/usr/lib64/R/library/mlr3misc/libs/mlr3misc.so: undefined symbol: REAL_RO
Error: loading failed
Execution halted
ERROR: loading failed

Further, I get the following warnings:

gcc -m64 -std=gnu99 -I/applvg/os/apps/gcc/gmp/include -I/applvg/os/apps/gcc/mpfr/include -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c count_missing.c -o count_missing.o
count_missing.c: In function ‘count_missing_logical’:
count_missing.c:11:5: warning: implicit declaration of function ‘LOGICAL_RO’ [-Wimplicit-function-declaration]
const int * xp = LOGICAL_RO(x);
^
count_missing.c:11:22: warning: initialization makes pointer from integer without a cast
const int * xp = LOGICAL_RO(x);
^
count_missing.c: In function ‘count_missing_integer’:
count_missing.c:26:5: warning: implicit declaration of function ‘INTEGER_RO’ [-Wimplicit-function-declaration]
const int * xp = INTEGER_RO(x);
^
count_missing.c:26:22: warning: initialization makes pointer from integer without a cast
const int * xp = INTEGER_RO(x);
^
count_missing.c: In function ‘count_missing_double’:
count_missing.c:41:5: warning: implicit declaration of function ‘REAL_RO’ [-Wimplicit-function-declaration]
const double * xp = REAL_RO(x);
^
count_missing.c:41:25: warning: initialization makes pointer from integer without a cast
const double * xp = REAL_RO(x);
^
count_missing.c: In function ‘count_missing_complex’:
count_missing.c:52:5: warning: implicit declaration of function ‘COMPLEX_RO’ [-Wimplicit-function-declaration]
const Rcomplex * xp = COMPLEX_RO(x);
^
count_missing.c:52:27: warning: initialization makes pointer from integer without a cast
const Rcomplex * xp = COMPLEX_RO(x);
^

I have a Redhat 6 Unix System with R 3.4.3 and my default gcc is a 4.8.5. I also tried with the newer version 4.9.4.
Are there any dependencies I can not see? Do I need a newer gcc?
The version of the package I got from CRAN is 0.9.0

Best
Ulf

@ulf85
Copy link
Author

ulf85 commented Apr 27, 2021

Update: Package Version 0.8.0 (from CRAN archive) works.

@mllg mllg closed this as completed in e784323 Apr 27, 2021
@mllg
Copy link
Sponsor Member

mllg commented Apr 27, 2021

Some preprocessor macros were missing for R versions prior to 3.5.0. I'll upload a fixed release now. Thanks for reporting.

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