charmed-hpc / slurm-snap

Snap package for Slurm. Slurm is a highly scalable cluster management and job scheduling system for large and small Linux clusters :balance_scale::penguin:
https://slurm.schedmd.com
Apache License 2.0
5 stars 3 forks source link

Munge fails to build #43

Closed jamesbeedy closed 2 months ago

jamesbeedy commented 2 months ago

When running snapcraft --use-lxd in the project root I get this error: https://paste.ubuntu.com/p/jrnKwC9N9s/

To reproduce:

git clone git@github.com:charmed-hpc/slurm-snap
cd slurm-snap
snapcraft --use-lxd
NucciTheBoss commented 2 months ago

Copied logs from pastebin:

Copying needed symlink target '/lib/x86_64-linux-gnu/libgpg-error.so.0.28.0' from host to satisfy '/root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgpg-error.so'.
Copying needed symlink target '/lib/x86_64-linux-gnu/libcrypt.so.1.1.0' from host to satisfy '/root/parts/munge/install/usr/lib/x86_64-linux-gnu/libcrypt.so'.
Building munge 
+ snapcraftctl build
+ '[' '!' -f ./configure ']'
+ '[' -f ./autogen.sh ']'
+ '[' '!' -f ./configure ']'
+ '[' -f ./bootstrap ']'
+ env NOCONFIGURE=1 ./bootstrap
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force --warnings=none -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force --warnings=none
autoreconf: running: /usr/bin/autoheader --force --warnings=none
autoreconf: running: automake --add-missing --copy --force-missing --warnings=none
configure.ac:31: installing 'build-aux/compile'
configure.ac:32: installing 'build-aux/config.guess'
configure.ac:32: installing 'build-aux/config.sub'
configure.ac:28: installing 'build-aux/install-sh'
configure.ac:28: installing 'build-aux/missing'
src/common/Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
autoreconf: Leaving directory `.'
+ '[' '!' -f ./configure ']'
+ ./configure --prefix=/usr --sysconfdir=/etc --with-crypto-lib=libgcrypt --with-logrotatedir=/etc/logrotate.d
configure: WARNING: unrecognized options: --with-logrotatedir
checking for MUNGE socket pathname... default
checking for runstatedir... ${localstatedir}/run
checking for systemdunitdir... ${prefix}/lib/systemd/system
checking for sysvinitddir... disabled
checking for sysconfigdir... ${sysconfdir}/default
checking for logrotateddir... ${sysconfdir}/logrotate.d
checking for pkgconfigdir... ${libdir}/pkgconfig
checking for a sense of humor... a hollow voice says 'PLUGH'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for specified code architecture... no
checking for gawk... (cached) mawk
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for a sed that does not truncate output... (cached) /bin/sed
checking whether debugging is enabled... no
checking how to link against pthreads... -lpthread
checking for BZ2_bzBuffToBuffCompress in default libs... no
checking for BZ2_bzBuffToBuffCompress in -lbz2... yes
checking for compress in default libs... no
checking for compress in -lz... yes
checking for library containing gethostbyname... none required
checking for library containing socket... none required
checking for libgcrypt-config... /root/parts/munge/install/usr/bin/libgcrypt-config
checking for LIBGCRYPT - version >= 1.2.0... yes (1.8.5)
checking LIBGCRYPT API version... okay
checking for OpenSSL installation... /usr
checking which cryptographic library to use... libgcrypt
checking bzlib.h usability... yes
checking bzlib.h presence... yes
checking for bzlib.h... yes
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking standards.h usability... no
checking standards.h presence... no
checking for standards.h... no
checking sys/random.h usability... yes
checking sys/random.h presence... yes
checking for sys/random.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... yes
checking for socklen_t... yes
checking for getentropy... yes
checking for getifaddrs... yes
checking for getrandom... yes
checking for localtime_r... yes
checking for mlockall... yes
checking for sysconf... yes
checking for inet_ntop... yes
checking for strlcat... no
checking for strlcpy... no
checking for getgrent... yes
checking for getgrent_r (AIX)... no
checking for getgrent_r (GNU)... yes
checking for getgrent_r (SunOS)... no
checking for getgrnam... yes
checking for getgrnam_r (POSIX)... yes
checking for getgrnam_r (SunOS)... no
checking for getpwnam... yes
checking for getpwnam_r (AIX)... no
checking for getpwnam_r (POSIX)... yes
checking for getpwnam_r (SunOS)... no
configure: checking authentication support
checking for getpeereid... no
checking for getpeerucred... no
checking ucred.h usability... no
checking ucred.h presence... no
checking for ucred.h... no
checking for struct ucred... yes
checking for SO_PEERCRED sockopt... yes
checking for struct xucred... no
checking for LOCAL_PEERCRED sockopt... no
checking for struct strrecvfd... no
checking if file descriptors can be passed over a fifo... no
checking for /dev/spx... no
checking for authentication method... AUTH_METHOD_SO_PEERCRED
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/common/Makefile
config.status: creating src/etc/Makefile
config.status: creating src/libcommon/Makefile
config.status: creating src/libmissing/Makefile
config.status: creating src/libmunge/Makefile
config.status: creating src/libtap/Makefile
config.status: creating src/munge/Makefile
config.status: creating src/munged/Makefile
config.status: creating src/mungekey/Makefile
config.status: creating t/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --with-logrotatedir
+ make -j8
make  all-recursive
make[1]: Entering directory '/root/parts/munge/build'
Making all in src
make[2]: Entering directory '/root/parts/munge/build/src'
Making all in common
make[3]: Entering directory '/root/parts/munge/build/src/common'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/parts/munge/build/src/common'
Making all in etc
make[3]: Entering directory '/root/parts/munge/build/src/etc'
  GEN      munge.logrotate.conf
  GEN      munge.pkgconfig.pc
  GEN      munge.systemd.service
  GEN      munge.systemd.sysconfig
  GEN      munge.sysvinit.init
  GEN      munge.tmpfiles.conf
  GEN      munge.sysvinit.sysconfig
make[3]: Leaving directory '/root/parts/munge/build/src/etc'
Making all in libcommon
make[3]: Entering directory '/root/parts/munge/build/src/libcommon'
  CC       libcommon_la-daemonpipe.lo
  CC       libcommon_la-fd.lo
  CC       libcommon_la-license.lo
  CC       libcommon_la-log.lo
  CC       libcommon_la-str.lo
  CC       libcommon_la-m_msg.lo
  CC       libcommon_la-version.lo
  GEN      munge.7
  CCLD     libcommon.la
make[3]: Leaving directory '/root/parts/munge/build/src/libcommon'
Making all in libmissing
make[3]: Entering directory '/root/parts/munge/build/src/libmissing'
  CC       getopt.lo
  CC       getopt1.lo
  CC       strlcat.lo
  CC       strlcpy.lo
  CCLD     libmissing.la
make[3]: Leaving directory '/root/parts/munge/build/src/libmissing'
Making all in libmunge
make[3]: Entering directory '/root/parts/munge/build/src/libmunge'
  CC       libmunge_la-auth_send.lo
  CC       libmunge_la-ctx.lo
  CC       libmunge_la-decode.lo
  CC       libmunge_la-encode.lo
  CC       libmunge_la-enum.lo
  CC       libmunge_la-m_msg_client.lo
  CC       libmunge_la-strerror.lo
make[4]: Entering directory '/root/parts/munge/build/src/libcommon'
make[4]: 'libcommon.la' is up to date.
make[4]: Leaving directory '/root/parts/munge/build/src/libcommon'
  GEN      munge.3
  GEN      munge_ctx.3
  GEN      munge_enum.3
  CCLD     libmunge.la
make[3]: Leaving directory '/root/parts/munge/build/src/libmunge'
Making all in libtap
make[3]: Entering directory '/root/parts/munge/build/src/libtap'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/parts/munge/build/src/libtap'
Making all in munge
make[3]: Entering directory '/root/parts/munge/build/src/munge'
  CC       munge-munge.o
  CC       munge-read.o
  CC       munge-query.o
  CC       munge-xgetgr.o
  CC       munge-xgetpw.o
  CC       munge-xsignal.o
make[4]: Entering directory '/root/parts/munge/build/src/libmissing'
make[4]: 'libmissing.la' is up to date.
make[4]: Leaving directory '/root/parts/munge/build/src/libmissing'
make[4]: Entering directory '/root/parts/munge/build/src/libcommon'
make[4]: 'libcommon.la' is up to date.
make[4]: Leaving directory '/root/parts/munge/build/src/libcommon'
  CC       remunge-remunge.o
make[4]: Entering directory '/root/parts/munge/build/src/libmunge'
  CC       remunge-query.o
  CC       remunge-xgetgr.o
make[5]: Entering directory '/root/parts/munge/build/src/libcommon'
make[5]: 'libcommon.la' is up to date.
make[5]: Leaving directory '/root/parts/munge/build/src/libcommon'
make[4]: Leaving directory '/root/parts/munge/build/src/libmunge'
  CC       remunge-xgetpw.o
  CC       remunge-xsignal.o
  CC       unmunge-unmunge.o
  CC       unmunge-read.o
  CC       unmunge-xsignal.o
  GEN      munge.1
  GEN      remunge.1
  GEN      unmunge.1
  CCLD     munge
  CCLD     remunge
  CCLD     unmunge
make[3]: Leaving directory '/root/parts/munge/build/src/munge'
Making all in munged
make[3]: Entering directory '/root/parts/munge/build/src/munged'
  CC       munged-munged.o
  CC       munged-auth_recv.o
  CC       munged-base64.o
  CC       munged-cipher.o
  CC       munged-conf.o
  CC       munged-cred.o
  CC       munged-enc.o
  CC       munged-dec.o
  CC       munged-gids.o
  CC       munged-hash.o
  CC       munged-job.o
  CC       munged-lock.o
  CC       munged-net.o
  CC       munged-path.o
  CC       munged-random.o
  CC       munged-replay.o
  CC       munged-thread.o
  CC       munged-timer.o
  CC       munged-work.o
  CC       munged-zip.o
  CC       munged-crypto.o
  CC       munged-entropy.o
  CC       munged-mac.o
  CC       munged-md.o
  CC       munged-query.o
  CC       munged-rotate.o
  CC       munged-xgetgr.o
  CC       munged-xgetpw.o
  CC       munged-xsignal.o
make[4]: Entering directory '/root/parts/munge/build/src/libcommon'
make[4]: 'libcommon.la' is up to date.
make[4]: Leaving directory '/root/parts/munge/build/src/libcommon'
make[4]: Entering directory '/root/parts/munge/build/src/libmissing'
make[4]: 'libmissing.la' is up to date.
make[4]: Leaving directory '/root/parts/munge/build/src/libmissing'
  GEN      munged.8
make[4]: Entering directory '/root/parts/munge/build/src/libmunge'
make[5]: Entering directory '/root/parts/munge/build/src/libcommon'
make[5]: 'libcommon.la' is up to date.
make[5]: Leaving directory '/root/parts/munge/build/src/libcommon'
make[4]: Leaving directory '/root/parts/munge/build/src/libmunge'
  CCLD     munged
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-visibility.o): in function `gcry_err_make_from_errno':
(.text+0x4a): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-visibility.o): in function `gcry_error_from_errno':
(.text+0x79): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-visibility.o): in function `gcry_strerror':
(.text+0x5): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-visibility.o): in function `gcry_strsource':
(.text+0x15): undefined reference to `gpg_strsource'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-visibility.o): in function `gcry_err_code_from_errno':
(.text+0x25): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-visibility.o): in function `gcry_err_code_to_errno':
(.text+0x35): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-misc.o): in function `_gcry_fatal_error':
(.text+0xf7): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-misc.o): in function `_gcry_strtokenize':
(.text+0xf6a): undefined reference to `gpg_err_set_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-misc.o): in function `_gcry_divide_by_zero':
(.text+0x1190): undefined reference to `gpg_err_set_errno'
/usr/bin/ld: (.text+0x119c): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-global.o): in function `global_init.part.0':
(.text+0x157): undefined reference to `gpgrt_get_syscall_clamp'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-global.o): in function `do_malloc':
(.text+0x24e): undefined reference to `gpg_err_set_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-global.o): in function `_gcry_get_config':
(.text+0x3f9): undefined reference to `gpgrt_fopenmem'
/usr/bin/ld: (.text+0x452): undefined reference to `gpgrt_fprintf'
/usr/bin/ld: (.text+0x48b): undefined reference to `gpgrt_fprintf'
/usr/bin/ld: (.text+0x4bb): undefined reference to `gpgrt_fprintf'
/usr/bin/ld: (.text+0x4eb): undefined reference to `gpgrt_fprintf'
/usr/bin/ld: (.text+0x514): undefined reference to `gpgrt_fprintf'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-global.o):(.text+0x53d): more undefined references to `gpgrt_fprintf' follow
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-global.o): in function `_gcry_get_config':
(.text+0x6bb): undefined reference to `gpgrt_ferror'
/usr/bin/ld: (.text+0x6cb): undefined reference to `gpgrt_rewind'
/usr/bin/ld: (.text+0x6d8): undefined reference to `gpgrt_fclose_snatch'
/usr/bin/ld: (.text+0x765): undefined reference to `gpgrt_fprintf'
/usr/bin/ld: (.text+0x7ae): undefined reference to `gpgrt_fclose'
/usr/bin/ld: (.text+0x7b5): undefined reference to `gpg_err_set_errno'
/usr/bin/ld: (.text+0x7c9): undefined reference to `gpg_err_set_errno'
/usr/bin/ld: (.text+0x80e): undefined reference to `gpgrt_fprintf'
/usr/bin/ld: (.text+0x82b): undefined reference to `gpgrt_fprintf'
/usr/bin/ld: (.text+0x843): undefined reference to `gpgrt_fprintf'
/usr/bin/ld: (.text+0x85b): undefined reference to `gpgrt_fprintf'
/usr/bin/ld: (.text+0x873): undefined reference to `gpgrt_fprintf'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-global.o):(.text+0x884): more undefined references to `gpgrt_fprintf' follow
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-global.o): in function `_gcry_get_config':
(.text+0x8c3): undefined reference to `gpg_err_set_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-global.o): in function `_gcry_vcontrol':
(.text+0x12cd): undefined reference to `gpgrt_get_syscall_clamp'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-global.o): in function `_gcry_realloc_core':
(.text+0x1649): undefined reference to `gpg_err_set_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-global.o): in function `_gcry_calloc':
(.text+0x1726): undefined reference to `gpg_err_set_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-global.o): in function `_gcry_calloc_secure':
(.text+0x17c6): undefined reference to `gpg_err_set_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-global.o): in function `_gcry_xmalloc':
(.text+0x187c): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-global.o): in function `_gcry_xrealloc':
(.text+0x18f9): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-global.o): in function `_gcry_xmalloc_secure':
(.text+0x19b1): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-global.o): in function `_gcry_xcalloc':
(.text+0x1a0d): undefined reference to `gpg_err_set_errno'
/usr/bin/ld: (.text+0x1a19): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-global.o): in function `_gcry_xcalloc_secure':
(.text+0x1a6d): undefined reference to `gpg_err_set_errno'
/usr/bin/ld: (.text+0x1a79): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-global.o): in function `_gcry_xstrdup':
(.text+0x1b16): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-global.o): in function `do_malloc':
(.text+0x20d): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-global.o): in function `_gcry_free':
(.text+0xbab): undefined reference to `gpg_err_set_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-global.o): in function `_gcry_vcontrol':
(.text+0x135c): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: (.text+0x13c1): undefined reference to `gpgrt_lock_destroy'
/usr/bin/ld: (.text+0x1587): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: (.text+0x159c): undefined reference to `gpgrt_lock_init'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-sexp.o): in function `do_vsexp_sscan':
(.text+0x765): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: (.text+0x1dd6): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-sexp.o): in function `make_space':
(.text+0x32c): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-stdmem.o): in function `_gcry_private_malloc':
(.text+0xc6): undefined reference to `gpg_err_set_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-stdmem.o): in function `_gcry_private_malloc_secure':
(.text+0x126): undefined reference to `gpg_err_set_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-secmem.o): in function `mb_get_new':
(.text+0xdf): undefined reference to `gpg_err_set_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-secmem.o): in function `_gcry_secmem_malloc_internal':
(.text+0x7c7): undefined reference to `gpg_err_set_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-secmem.o): in function `_gcry_secmem_set_auto_expand':
(.text+0x959): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-secmem.o): in function `_gcry_secmem_set_flags':
(.text+0x98f): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-secmem.o): in function `_gcry_secmem_get_flags':
(.text+0xa11): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: (.text+0xa61): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-secmem.o): in function `_gcry_secmem_init':
(.text+0xa80): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-secmem.o): in function `_gcry_secmem_malloc':
(.text+0xac8): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: (.text+0xae1): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-secmem.o): in function `_gcry_secmem_free':
(.text+0xb11): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: (.text+0xb28): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-secmem.o): in function `_gcry_secmem_realloc':
(.text+0xb5e): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: (.text+0xb74): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-secmem.o): in function `_gcry_secmem_dump_stats':
(.text+0xe97): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-secmem.o): in function `_gcry_secmem_set_auto_expand':
(.text+0x97a): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-secmem.o): in function `_gcry_secmem_set_flags':
(.text+0x9d4): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-secmem.o): in function `_gcry_secmem_init':
(.text+0xa95): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-secmem.o): in function `_gcry_secmem_dump_stats':
(.text+0xf96): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-fips.o): in function `lock_fsm':
(.text+0x9): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: (.text+0x18): undefined reference to `gpg_strerror'
/usr/bin/ld: (.text+0x30): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-fips.o): in function `unlock_fsm':
(.text+0x69): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: (.text+0x78): undefined reference to `gpg_strerror'
/usr/bin/ld: (.text+0x90): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-fips.o): in function `_gcry_fips_run_selftests':
(.text+0x9a1): undefined reference to `gpg_strerror'
/usr/bin/ld: (.text+0xa23): undefined reference to `gpg_strerror'
/usr/bin/ld: (.text+0xaae): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-fips.o):(.text+0xb53): more undefined references to `gpg_strerror' follow
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-fips.o): in function `_gcry_initialize_fips_mode':
(.text+0xe88): undefined reference to `gpgrt_lock_init'
/usr/bin/ld: (.text+0xfb7): undefined reference to `gpg_strerror'
/usr/bin/ld: (.text+0xfcf): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(cipher.o): in function `_gcry_cipher_open_internal':
(.text+0x84d): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(dsa.o): in function `run_selftests':
(.text+0x93): undefined reference to `gpg_strerror'
/usr/bin/ld: (.text+0x20a): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(dsa.o): in function `dsa_check_secret_key':
(.text+0x65c): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(dsa.o): in function `dsa_sign':
(.text+0xacc): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(dsa.o): in function `dsa_verify':
(.text+0x1084): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(dsa.o): in function `dsa_generate':
(.text+0x26b6): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: (.text+0x26c6): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(ecc-curves.o): in function `scanval':
(.text+0x49): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(ecc-curves.o): in function `point_from_keyparam':
(.text+0x38c): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(ecc-curves.o): in function `_gcry_mpi_ec_new':
(.text+0x1132): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(ecc-curves.o): in function `_gcry_ecc_update_curve_param':
(.text+0xa1f): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(ecc-eddsa.o): in function `eddsa_encode_x_y':
(.text+0xb1): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(ecc-eddsa.o): in function `scanval':
(.text+0x109): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(ecc-eddsa.o): in function `_gcry_ecc_eddsa_compute_h_d.part.0':
(.text+0x539): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(ecc-eddsa.o): in function `_gcry_ecc_eddsa_ensure_compact':
(.text+0x729): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(ecc-eddsa.o): in function `_gcry_ecc_eddsa_decodepoint':
(.text+0xa79): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(ecc-eddsa.o): in function `_gcry_ecc_eddsa_genkey':
(.text+0xe37): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(ecc-eddsa.o): in function `_gcry_ecc_eddsa_sign':
(.text+0x149f): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(ecc-misc.o): in function `_gcry_ecc_ec2os':
(.text+0x373): undefined reference to `gpg_strerror'
/usr/bin/ld: (.text+0x38b): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(ecc-misc.o): in function `_gcry_ecc_mont_decodepoint':
(.text+0x8c1): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(elgamal.o): in function `elg_check_secret_key':
(.text+0x184): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(elgamal.o): in function `elg_sign':
(.text+0x684): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(elgamal.o): in function `elg_encrypt':
(.text+0x9a4): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(elgamal.o): in function `elg_verify':
(.text+0xdfc): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(elgamal.o): in function `elg_decrypt':
(.text+0x1344): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(elgamal.o): in function `elg_generate':
(.text+0x1f1c): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: (.text+0x1f31): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(kdf.o): in function `_gcry_kdf_pkdf2.part.0':
(.text+0x33e): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(mac.o): in function `_gcry_mac_open':
(.text+0x29d): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(md.o): in function `md_open':
(.text+0x510): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: (.text+0x560): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(md.o): in function `md_final.part.0':
(.text+0x7c6): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(md.o): in function `_gcry_md_copy':
(.text+0xcb0): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: (.text+0xce4): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(md.o): in function `_gcry_md_hash_buffer':
(.text+0x1118): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(md.o): in function `_gcry_md_setkey':
(.text+0x15a7): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(md.o): in function `md_enable.isra.0':
(.text+0x3c6): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(primegen.o): in function `prime_generate_internal':
(.text+0xd32): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: (.text+0xf4e): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: (.text+0xf62): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: (.text+0x1002): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: (.text+0x109c): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: (.text+0x1152): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: (.text+0x12b0): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: (.text+0x12d3): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: (.text+0x1452): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: (.text+0x15b2): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: (.text+0x1729): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: (.text+0x1814): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: (.text+0x1dcc): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: (.text+0x1f4b): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: (.text+0x1fad): undefined reference to `gpg_err_code_from_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(primegen.o): in function `_gcry_generate_fips186_2_prime':
(.text+0x2e47): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(primegen.o): in function `_gcry_generate_fips186_3_prime':
(.text+0x3520): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(pubkey-util.o): in function `_gcry_pk_util_preparse_encval':
(.text+0xd09): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(pubkey-util.o): in function `_gcry_pk_util_data_to_mpi':
(.text+0x16e7): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: (.text+0x17dc): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(pubkey-util.o):(.text+0x1813): more undefined references to `gpg_err_code_from_syserror' follow
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(rsa.o): in function `run_selftests':
(.text+0x343): undefined reference to `gpg_strerror'
/usr/bin/ld: (.text+0x62a): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(rsa.o): in function `rsa_check_secret_key':
(.text+0x874): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(rsa.o): in function `rsa_verify':
(.text+0xbfc): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(rsa.o): in function `rsa_encrypt':
(.text+0xf54): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(rsa.o):(.text+0x1584): more undefined references to `gpg_strerror' follow
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(scrypt.o): in function `_gcry_kdf_scrypt':
(.text+0x805): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: (.text+0x81b): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: (.text+0x825): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(random-drbg.o): in function `_gcry_rngdrbg_inititialize.part.0':
(.text+0x230c): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: (.text+0x2326): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: (.text+0x2346): undefined reference to `gpg_strerror'
/usr/bin/ld: (.text+0x235e): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(random-drbg.o): in function `_gcry_rngdrbg_reinit':
(.text+0x2438): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: (.text+0x247d): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: (.text+0x248c): undefined reference to `gpg_strerror'
/usr/bin/ld: (.text+0x24bc): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(random-drbg.o): in function `_gcry_rngdrbg_close_fds':
(.text+0x24f0): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: (.text+0x250d): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: (.text+0x251d): undefined reference to `gpg_strerror'
/usr/bin/ld: (.text+0x2535): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(random-drbg.o): in function `_gcry_rngdrbg_add_bytes':
(.text+0x25cf): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: (.text+0x25f6): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: (.text+0x2630): undefined reference to `gpg_strerror'
/usr/bin/ld: (.text+0x2648): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(random-drbg.o): in function `_gcry_rngdrbg_randomize':
(.text+0x2695): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: (.text+0x26fe): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: (.text+0x27e9): undefined reference to `gpg_strerror'
/usr/bin/ld: (.text+0x2801): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(random-drbg.o): in function `_gcry_rngdrbg_cavs_test':
(.text+0x2a80): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(random-drbg.o): in function `_gcry_rngdrbg_selftest':
(.text+0x2b1b): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: (.text+0x2bb0): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: (.text+0x2be9): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: (.text+0x2ca3): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: (.text+0x2d3e): undefined reference to `gpg_strerror'
/usr/bin/ld: (.text+0x2d56): undefined reference to `gpg_strerror'
/usr/bin/ld: (.text+0x2d71): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(random-drbg.o): in function `parse_flag_string':
(.text+0x439): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(random-drbg.o): in function `_drbg_init_internal':
(.text+0x1743): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(random.o): in function `_gcry_create_nonce':
(.text+0x791): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: (.text+0x84e): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: (.text+0x955): undefined reference to `gpg_strerror'
/usr/bin/ld: (.text+0x96d): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(rndjent.o): in function `lock_rng':
(.text+0xc03): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: (.text+0xc16): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(rndjent.o): in function `unlock_rng':
(.text+0xc59): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: (.text+0xc6c): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(ec.o): in function `ec_p_init':
(.text+0x1bb): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(ec.o): in function `_gcry_mpi_ec_p_new':
(.text+0xbc7): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(mpicoder.o): in function `_gcry_mpi_print':
(.text+0xf31): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(mpicoder.o): in function `_gcry_mpi_aprint':
(.text+0x1233): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(mpicoder.o): in function `_gcry_mpi_to_octet_string':
(.text+0x13b8): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(libgcrypt_la-hmac256.o): in function `_gcry_hmac256_file':
(.text+0x90a): undefined reference to `gpg_err_set_errno'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(dsa-common.o): in function `int2octets':
(.text+0x108): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(dsa-common.o): in function `_gcry_dsa_gen_rfc6979_k':
(.text+0x95a): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: (.text+0x9b8): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(ecc.o): in function `compute_keygrip':
(.text+0x618): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(ecc.o): in function `ecc_verify':
(.text+0x9a4): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(ecc.o): in function `ecc_sign':
(.text+0x1224): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(ecc.o): in function `ecc_decrypt_raw':
(.text+0x1980): undefined reference to `gpg_strerror'
/usr/bin/ld: (.text+0x1ea7): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: (.text+0x1ef5): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(ecc.o): in function `ecc_encrypt_raw':
(.text+0x22c4): undefined reference to `gpg_strerror'
/usr/bin/ld: (.text+0x2990): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: (.text+0x29a0): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(ecc.o): in function `ecc_check_secret_key':
(.text+0x2e9c): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(ecc.o): in function `run_selftests':
(.text+0x3443): undefined reference to `gpg_strerror'
/usr/bin/ld: (.text+0x3662): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(ecc.o): in function `ecc_generate':
(.text+0x4b3a): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(mac-poly1305.o): in function `poly1305mac_open':
(.text+0x41d): undefined reference to `gpg_err_code_from_syserror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(random-csprng.o): in function `lock_pool':
(.text+0xc): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: (.text+0x26): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(random-csprng.o): in function `unlock_pool':
(.text+0xa6): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: (.text+0xb6): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(random-system.o): in function `lock_rng':
(.text+0xc): undefined reference to `gpgrt_lock_lock'
/usr/bin/ld: (.text+0x26): undefined reference to `gpg_strerror'
/usr/bin/ld: /root/parts/munge/install/usr/lib/x86_64-linux-gnu/libgcrypt.a(random-system.o): in function `unlock_rng':
(.text+0x56): undefined reference to `gpgrt_lock_unlock'
/usr/bin/ld: (.text+0x66): undefined reference to `gpg_strerror'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:858: munged] Error 1
make[3]: Leaving directory '/root/parts/munge/build/src/munged'
make[2]: *** [Makefile:452: all-recursive] Error 1
make[2]: Leaving directory '/root/parts/munge/build/src'
make[1]: *** [Makefile:558: all-recursive] Error 1
make[1]: Leaving directory '/root/parts/munge/build'
make: *** [Makefile:489: all] Error 2
Failed to build 'munge'.

Recommended resolution:
Check the build logs and ensure the part's configuration and sources are correct.
Run the same command again with --debug to shell into the environment if you wish to introspect this failure.
NucciTheBoss commented 2 months ago

Hi @jamesbeedy :wave:

Which branch of the Slurm snap are you attempting to building with snapcraft --use-lxd? Reason I'm asking is that in the build logs I see that munge is trying to compile with a libgcrypt copied from the host instead of openssl. We're using openssl in the current snapcraft.yaml recipe:

https://github.com/charmed-hpc/slurm-snap/blob/de68a1e92c6e31c669495998c713834de565e37c/snap/snapcraft.yaml#L176-L193

jamesbeedy commented 2 months ago

main

NucciTheBoss commented 2 months ago

main

Interesting, can you share what the snapcraft.yaml file looks like in your local copy of main?

jamesbeedy commented 2 months ago

Dah - false alarm here - It appears I was building the other slurm snap snap-slurm 🤦