Closed drew1kun closed 7 years ago
Your libgcrypt is too old and you need to install a newer version first.
Thank you fro quick reply! I've already found this out... Any ideas how to install it on CentOS?
Besides compiling a custom libgcrypt? Not really.
Tried to compile the libgcrypt-1.8.0 I've compilled libgpg-error-1.27 (dependency)
Now trying to compile the libgcrpit and getting this:
$ cd libgcrypt-1.8.0
$ ./configure --prefix=/usr && make
[...]
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -fvisibility=hidden -Wall -MT dumpsexp-dumpsexp.o -MD -MP -MF .deps/dumpsexp-dumpsexp.Tpo -c -o dumpsexp-dumpsexp.o `test -f 'dumpsexp.c' || echo './'`dumpsexp.c
mv -f .deps/dumpsexp-dumpsexp.Tpo .deps/dumpsexp-dumpsexp.Po
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -fvisibility=hidden -Wall -o dumpsexp dumpsexp-dumpsexp.o
libtool: link: gcc -g -O2 -fvisibility=hidden -Wall -o dumpsexp dumpsexp-dumpsexp.o
gcc -DHAVE_CONFIG_H -I. -I.. -DSTANDALONE -g -O2 -fvisibility=hidden -Wall -MT hmac256-hmac256.o -MD -MP -MF .deps/hmac256-hmac256.Tpo -c -o hmac256-hmac256.o `test -f 'hmac256.c' || echo './'`hmac256.c
mv -f .deps/hmac256-hmac256.Tpo .deps/hmac256-hmac256.Po
/bin/sh ../libtool --tag=CC --mode=link gcc -DSTANDALONE -g -O2 -fvisibility=hidden -Wall -o hmac256 hmac256-hmac256.o
libtool: link: gcc -DSTANDALONE -g -O2 -fvisibility=hidden -Wall -o hmac256 hmac256-hmac256.o
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -fvisibility=hidden -Wall -MT mpicalc-mpicalc.o -MD -MP -MF .deps/mpicalc-mpicalc.Tpo -c -o mpicalc-mpicalc.o `test -f 'mpicalc.c' || echo './'`mpicalc.c
mv -f .deps/mpicalc-mpicalc.Tpo .deps/mpicalc-mpicalc.Po
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -fvisibility=hidden -Wall -o mpicalc mpicalc-mpicalc.o libgcrypt.la -lgpg-error
libtool: link: gcc -g -O2 -fvisibility=hidden -Wall -o .libs/mpicalc mpicalc-mpicalc.o ./.libs/libgcrypt.so -lgpg-error
./.libs/libgcrypt.so: undefined reference to `gpgrt_rewind'
./.libs/libgcrypt.so: undefined reference to `gpgrt_fclose_snatch'
./.libs/libgcrypt.so: undefined reference to `gpgrt_lock_lock'
./.libs/libgcrypt.so: undefined reference to `gpgrt_ferror'
./.libs/libgcrypt.so: undefined reference to `gpgrt_lock_init'
./.libs/libgcrypt.so: undefined reference to `gpgrt_fopenmem'
./.libs/libgcrypt.so: undefined reference to `gpgrt_fprintf'
./.libs/libgcrypt.so: undefined reference to `gpgrt_lock_destroy'
./.libs/libgcrypt.so: undefined reference to `gpgrt_fclose'
./.libs/libgcrypt.so: undefined reference to `gpgrt_lock_unlock'
./.libs/libgcrypt.so: undefined reference to `gpgrt_get_syscall_clamp'
collect2: error: ld returned 1 exit status
make[2]: *** [mpicalc] Error 1
make[2]: Leaving directory `/home/drew/libgcrypt-1.8.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/drew/libgcrypt-1.8.0'
make: *** [all] Error 2
Any ideas what can this mean? I'm starting to feel like it's impossible to get keepassxc work on CentOS.
Appears that you need some dependencies. Those symbols seem to be defined by libgpg.
@Drewshg312 This repository has pre-built CentOS packages: https://copr.fedorainfracloud.org/coprs/bugzy/keepassxc/
It also has a libgcrypt16 package that's specifically built for CentOS 7. You can pull the source RPM packages if you want to recompile yourself.
Thanks. It would be nice to add this to a README.md and add instructions.
I added it to the wiki!
https://github.com/keepassxreboot/keepassxc/wiki/Set-up-Build-Environment-on-Linux
Hi! I am building keepassxc on CentOS7. Prepared my environment as suggested at https://github.com/keepassxreboot/keepassxc/wiki/Set-up-Build-Environment-on-Linux
Installed latest Cmake:
I do:
Which looks good.
but then:
What am I missing?