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

Error installing on RHEL6 #4

Open
jrowen opened this issue Nov 1, 2016 · 7 comments
Open

Error installing on RHEL6 #4

jrowen opened this issue Nov 1, 2016 · 7 comments

Comments

@jrowen
Copy link

jrowen commented Nov 1, 2016

I'm running into problems installing sodium in RHEL6. It looks like RHEL6 uses an older version of libsodium-devel, and I'm wondering if that could be the issue here.

$ rpm -qa | grep  libsodium-devel
libsodium-devel-0.4.5-3.el6.x86_64
> install.packages("sodium")
Installing package into ‘/opt/Rapp/jrowen/R/x86_64-redhat-linux-gnu-library/3.3’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/sodium_0.4.tar.gz'
Content type 'application/x-gzip' length 469580 bytes (458 KB)
==================================================
downloaded 458 KB

* installing *source* package ‘sodium’ ...
** package ‘sodium’ successfully unpacked and MD5 sums checked
Found pkg-config cflags and libs!
Using PKG_CFLAGS= 
Using PKG_LIBS=-lsodium  
** libs
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fpic -fPIC   -c diffie.c -o diffie.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fpic -fPIC   -c hashing.c -o hashing.o
hashing.c: In function ‘R_auth_sha512’:
hashing.c:32: error: ‘crypto_auth_hmacsha512_BYTES’ undeclared (first use in this function)
hashing.c:32: error: (Each undeclared identifier is reported only once
hashing.c:32: error: for each function it appears in.)
hashing.c:35: warning: implicit declaration of function ‘crypto_auth_hmacsha512’
hashing.c: In function ‘R_pwhash’:
hashing.c:78: error: ‘crypto_pwhash_scryptsalsa208sha256_SALTBYTES’ undeclared (first use in this function)
hashing.c:81: warning: implicit declaration of function ‘crypto_pwhash_scryptsalsa208sha256’
hashing.c:82: error: ‘crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE’ undeclared (first use in this function)
hashing.c:82: error: ‘crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE’ undeclared (first use in this function)
make: *** [hashing.o] Error 1
ERROR: compilation failed for package ‘sodium’
@burley77
Copy link

I'm also interested in a response to this. I've encountered precisely the same error on RHEL 6.8:

* installing *source* package ‘sodium’ ...
** package ‘sodium’ successfully unpacked and MD5 sums checked
Found pkg-config cflags and libs!
Using PKG_CFLAGS=
Using PKG_LIBS=-lsodium
** libs
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fpic -fPIC   -c diffie.c -o diffie.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fpic -fPIC   -c hashing.c -o hashing.o
hashing.c: In function ‘R_auth_sha512’:
hashing.c:32: error: ‘crypto_auth_hmacsha512_BYTES’ undeclared (first use in this function)
hashing.c:32: error: (Each undeclared identifier is reported only once
hashing.c:32: error: for each function it appears in.)
hashing.c:35: warning: implicit declaration of function ‘crypto_auth_hmacsha512’
hashing.c: In function ‘R_pwhash’:
hashing.c:78: error: ‘crypto_pwhash_scryptsalsa208sha256_SALTBYTES’ undeclared (first use in this function)
hashing.c:81: warning: implicit declaration of function ‘crypto_pwhash_scryptsalsa208sha256’
hashing.c:82: error: ‘crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE’ undeclared (first use in this function)
hashing.c:82: error: ‘crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE’ undeclared (first use in this function)
make: *** [hashing.o] Error 1
ERROR: compilation failed for package ‘sodium’

@jedisct1
Copy link

Don't use a version that old, really.

@jeroen
Copy link
Member

jeroen commented Mar 10, 2017

I'll send the EPEL maintainer an email to update it. The R package requires at least version 1.0.3.

@jeroen
Copy link
Member

jeroen commented Mar 10, 2017

Until then you might need to install a more recent sodium from source.

@burley77
Copy link

Thanks Jeroen. Do you mean we may need to install a recent sodium from source, or are you meaning libsodium-devel?

I also tried building sodium from source, and got the same errors. I couldn't locate any source for libsodium-devel.

Thank you for contacting the maintainer.

@jeroen
Copy link
Member

jeroen commented Mar 10, 2017

You need to uninstall libsodium from your system and manually build it from source.

@burley77
Copy link

That did it. Thanks again!

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

4 participants