configure: error: You need libgcrypt to build this program.
At least version 1.6.0 (API 1) is required.
I have 1.1 and 1.5
Search Criteria
Package Details: gnunet 0.24.1-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/gnunet.git (read-only, click to copy) |
---|---|
Package Base: | gnunet |
Description: | A framework for secure peer-to-peer networking |
Upstream URL: | http://gnunet.org |
Keywords: | Anonymity F2F File-Sharing GNS GNUnet Internet P2P VPN |
Licenses: | AGPL |
Conflicts: | gnunet-bin, gnunet-git |
Submitter: | arojas |
Maintainer: | grufo (redfish) |
Last Packager: | grufo |
Votes: | 12 |
Popularity: | 0.25 |
First Submitted: | 2021-05-08 09:11 (UTC) |
Last Updated: | 2025-04-21 22:40 (UTC) |
Dependencies (45)
- brotli (brotli-gitAUR)
- gettext (gettext-gitAUR)
- gmp (gmp-hgAUR)
- gnutls (gnutls-gitAUR)
- iptables (iptables-gitAUR, iptables-fullconenat-nftAUR, iptables-nft)
- jansson (jansson-gitAUR)
- libcurl-gnutls (libcurl3-gnutlsAUR, libcurl-gnutls-gitAUR)
- libextractor
- libgcrypt
- libidn2 (libidn2-gitAUR)
- libmicrohttpd (libmicrohttpd-gitAUR)
- libsodium (libsodium-gitAUR, libsodium-1.0.18AUR)
- libtool (libtool-gitAUR)
- libunistring (libunistring-gitAUR)
- miniupnpc (miniupnpc-gitAUR)
- nss (nss-hgAUR)
- openssl (openssl-gitAUR, openssl-staticAUR)
- sqlite (sqlite-fossilAUR)
- which (which-gitAUR)
- zlib (zlib-ng-compat-gitAUR, zlib-gitAUR, zlib-ng-compat)
- bluez-libs (bluez-gitAUR) (make)
- libpulse (pulseaudio-dummyAUR, libpulse-gitAUR) (make)
- libtool (libtool-gitAUR) (make)
- meson (meson-gitAUR) (make)
- opus (opus-gitAUR) (make)
- pkgconfig (pkgconf-gitAUR, pkg-config-gitAUR, pkgconf) (make)
- postgresql (postgresql13AUR, postgresql-gitAUR, postgresql-12AUR, postgresql15-docsAUR, postgresql15AUR, postgresql16-docsAUR, postgresql16AUR) (make)
- python (python37AUR, python311AUR, python310AUR) (make)
- python-sphinx (python-sphinx-gitAUR) (make)
- python-sphinx-multiversionAUR (make)
- python-sphinx_rtd_theme (make)
- bluez (bluez-gitAUR, bluez-ps3AUR) (optional) – for bluetooth transport
- gnunet-gtkAUR (gnunet-gtk-gitAUR) (optional) – for handling the gnunet:// URI scheme
- jose (jose-gitAUR) (optional) – for re:claimID OpenID Connect plugin
- libogg (libogg-gitAUR) (optional) – for conversation service
- libpabc (libpabc-gitAUR) (optional) – for re:claimID zero-knowledge privacy credentials
- libpulse (pulseaudio-dummyAUR, libpulse-gitAUR) (optional) – for conversation service
- mysqlAUR (mysql55AUR, mysql56AUR, mysql81AUR, mysql57AUR, mroongaAUR, mariadb-gitAUR, mysqlAUR, mysql80AUR, mysql84AUR, mariadb, mariadb-lts, percona-server) (optional) – for an alternative to sqlite in the database plugin
- opus (opus-gitAUR) (optional) – for conversation service
- postgresql (postgresql13AUR, postgresql-gitAUR, postgresql-12AUR, postgresql15-docsAUR, postgresql15AUR, postgresql16-docsAUR, postgresql16AUR) (optional) – for an alternative to sqlite in the database plugin
- python (python37AUR, python311AUR, python310AUR) (optional) – for test suite
- texi2mdocAUR (optional) – for automatic mdoc generation
- texinfo (texinfo-gitAUR) (optional) – for building the documentation
- texlive-core (texlive-installerAUR, texlive-fullAUR, texlive-basic) (optional) – for generating GNS business cards via gnunet-bcd
- zbar (zbar-gitAUR) (optional) – for reading/writing QR codes using gnunet-qr
Required by (24)
- anastasis
- anastasis-git
- anastasis-gtk
- anastasis-gtk-git
- cadet-gtk
- gnunet-fuse
- gnunet-fuse-git
- gnunet-groupchat-git
- gnunet-gtk
- gnunet-python-git
- gnunet-secushare-git
- gnunet-webui-git
- libgnunetchat
- libgnunetworker
- libgnunetworker-git
- messenger-cli
- messenger-gtk
- sync
- taler-exchange
- taler-exchange-git
- taler-mdb
- taler-merchant
- taler-merchant-git
- taler-twister
Sources (7)
simona commented on 2024-06-22 10:07 (UTC)
loqy commented on 2024-06-22 01:58 (UTC)
gnunet fails to build, even though libgcrypt is installed
configure: error: You need libgcrypt to build this program.
At least version 1.6.0 (API 1) is required.
grufo commented on 2022-10-18 16:58 (UTC)
@lash
Note: The group base-devel is assumed to be already installed when building with makepkg. Members of this group should not be included in
makedepends
array.
lash commented on 2022-10-18 16:51 (UTC)
recommend adding automake to explicit deps
frankspace commented on 2022-03-14 00:25 (UTC)
Sorry for the delay -- yes, it works now, thank you!
grufo commented on 2022-03-03 01:53 (UTC)
@frankspace
The problem should be solved now.
grufo commented on 2022-02-28 03:02 (UTC)
@frankspace
Apparently that error is due to different versions of libtool
between who packaged the GNUnet tarball upstream and who uses Arch.
Previously it was easily solvable by launching autoreconf -i
, however with this release that will not work, due to a missing file necessary for launching autoreconf -i
(the file was restored after the package was released, so version 0.16.1 will not have the same problem).
Solutions:
- Install
gnunet-git
and stick to it (if you do it now it is almost identical to this version) - Or: Try to compile and install this package while you have
gnunet-git
installed (you will be asked to removegnunet-git
at the end of the process and you will have to sayYes
)
frankspace commented on 2022-02-27 23:40 (UTC)
I am getting a compilation error that looks a lot like what @franz encountered. I am building it in a clean chroot without use of any AUR helpers. Compilation fails with the following:
Making install in block
make[2]: Entering directory '/build/gnunet/src/gnunet-0.16.0/src/block'
make[3]: Entering directory '/build/gnunet/src/gnunet-0.16.0/src/block'
/usr/bin/mkdir -p '/build/gnunet/pkg/gnunet/usr/lib'
/bin/sh ../../libtool --mode=install /usr/bin/install -c libgnunetblock.la libgnunetblockgroup.la '/build/gnunet/pkg/gnunet/usr/lib'
/usr/bin/mkdir -p '/build/gnunet/pkg/gnunet/usr/lib/gnunet'
/bin/sh ../../libtool --mode=install /usr/bin/install -c libgnunet_plugin_block_test.la '/build/gnunet/pkg/gnunet/usr/lib/gnunet'
libtool: warning: relinking 'libgnunet_plugin_block_test.la'
libtool: warning: relinking 'libgnunetblock.la'
libtool: install: (cd /build/gnunet/src/gnunet-0.16.0/src/block; /bin/sh "/build/gnunet/src/gnunet-0.16.0/libtool" --silent --tag CC --mode=relink gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -export-dynamic -avoid-version -module -no-undefined -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,--unresolved-symbols=report-all -o libgnunet_plugin_block_test.la -rpath /usr/lib/gnunet plugin_block_test.lo libgnunetblockgroup.la libgnunetblock.la ../../src/util/libgnunetutil.la -lm -inst-prefix-dir /build/gnunet/pkg/gnunet)
libtool: install: (cd /build/gnunet/src/gnunet-0.16.0/src/block; /bin/sh "/build/gnunet/src/gnunet-0.16.0/libtool" --silent --tag CC --mode=relink gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -export-dynamic -no-undefined -version-info 0:0:0 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,--unresolved-symbols=report-all -o libgnunetblock.la -rpath /usr/lib block.lo ../../src/util/libgnunetutil.la -lm -inst-prefix-dir /build/gnunet/pkg/gnunet)
/usr/bin/ld: warning: libgnunetblock.so.0, needed by /build/gnunet/src/gnunet-0.16.0/src/block/.libs/libgnunetblockgroup.so, not found (try using -rpath or -rpath-link)
libtool: install: /usr/bin/install -c .libs/libgnunetblock.so.0.0.0T /build/gnunet/pkg/gnunet/usr/lib/libgnunetblock.so.0.0.0
libtool: install: (cd /build/gnunet/pkg/gnunet/usr/lib && { ln -s -f libgnunetblock.so.0.0.0 libgnunetblock.so.0 || { rm -f libgnunetblock.so.0 && ln -s libgnunetblock.so.0.0.0 libgnunetblock.so.0; }; })
libtool: install: (cd /build/gnunet/pkg/gnunet/usr/lib && { ln -s -f libgnunetblock.so.0.0.0 libgnunetblock.so || { rm -f libgnunetblock.so && ln -s libgnunetblock.so.0.0.0 libgnunetblock.so; }; })
/usr/bin/ld: /build/gnunet/src/gnunet-0.16.0/src/block/.libs/libgnunetblockgroup.so: undefined reference to `GNUNET_BLOCK_mingle_hash'
libtool: install: /usr/bin/install -c .libs/libgnunetblock.lai /build/gnunet/pkg/gnunet/usr/lib/libgnunetblock.la
collect2: error: ld returned 1 exit status
libtool: warning: relinking 'libgnunetblockgroup.la'
libtool: error: error: relink 'libgnunet_plugin_block_test.la' with the above command before installing it
make[3]: *** [Makefile:625: install-pluginLTLIBRARIES] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: install: (cd /build/gnunet/src/gnunet-0.16.0/src/block; /bin/sh "/build/gnunet/src/gnunet-0.16.0/libtool" --silent --tag CC --mode=relink gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -export-dynamic -no-undefined -version-info 0:0:0 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,--unresolved-symbols=report-all -o libgnunetblockgroup.la -rpath /usr/lib bg_bf.lo libgnunetblock.la ../../src/util/libgnunetutil.la -lm -inst-prefix-dir /build/gnunet/pkg/gnunet)
libtool: install: /usr/bin/install -c .libs/libgnunetblockgroup.so.0.0.0T /build/gnunet/pkg/gnunet/usr/lib/libgnunetblockgroup.so.0.0.0
libtool: install: (cd /build/gnunet/pkg/gnunet/usr/lib && { ln -s -f libgnunetblockgroup.so.0.0.0 libgnunetblockgroup.so.0 || { rm -f libgnunetblockgroup.so.0 && ln -s libgnunetblockgroup.so.0.0.0 libgnunetblockgroup.so.0; }; })
libtool: install: (cd /build/gnunet/pkg/gnunet/usr/lib && { ln -s -f libgnunetblockgroup.so.0.0.0 libgnunetblockgroup.so || { rm -f libgnunetblockgroup.so && ln -s libgnunetblockgroup.so.0.0.0 libgnunetblockgroup.so; }; })
libtool: install: /usr/bin/install -c .libs/libgnunetblockgroup.lai /build/gnunet/pkg/gnunet/usr/lib/libgnunetblockgroup.la
libtool: warning: remember to run 'libtool --finish /usr/lib'
make[3]: Leaving directory '/build/gnunet/src/gnunet-0.16.0/src/block'
make[2]: *** [Makefile:812: install-am] Error 2
make[2]: Leaving directory '/build/gnunet/src/gnunet-0.16.0/src/block'
make[1]: *** [Makefile:545: install-recursive] Error 1
make[1]: Leaving directory '/build/gnunet/src/gnunet-0.16.0/src'
make: *** [Makefile:625: install-recursive] Error 1
==> ERROR: A failure occurred in package().
Aborting...
==> ERROR: Build failed, check /home/frank/artixbuild/frank/build
I tried putting the autoreconf -i
line back in, but that just caused compilation to barf immediately with the following:
==> Starting prepare()...
Copying file m4/fcntl-o.m4
Copying file m4/threadlib.m4
Copying file po/Makevars.template
sh: line 1: contrib/get_version.sh: No such file or directory
configure.ac:33: error: AC_INIT should be called with package and version arguments
/usr/share/aclocal-1.16/init.m4:29: AM_INIT_AUTOMAKE is expanded from...
configure.ac:33: the top level
autom4te: error: /usr/bin/m4 failed with exit status: 1
aclocal: error: /usr/bin/autom4te failed with exit status: 1
autoreconf: error: aclocal failed with exit status: 1
==> ERROR: A failure occurred in prepare().
Aborting...
==> ERROR: Build failed, check /home/frank/artixbuild/frank/build
I'm running Artix rather than Arch, but I can't imagine that should make any meaningful difference. So I'm stumped.
Pinned Comments
grufo commented on 2021-12-30 18:18 (UTC)
After installing the package do not forget to add your user to the
gnunet
group, withIf later you want to remove your user from the group, launch:
For information on how to use GNUnet plaese refer to the GNUnet article in the ArchWiki.