Package: libsodium-dev
Version: 1.0.18-1+b2
Severity: normal

I get the following error when trying to compile a shared object that uses 
libsodium.a:

/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-randombytes.o): 
warning: relocation against `randombytes_sysrandom_implementation' in read-only 
section `.text'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-randombytes.o): 
relocation R_X86_64_PC32 against symbol `randombytes_sysrandom_implementation' 
can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:511: blib/arch/auto/Crypt/NaCl/Sodium/Sodium.so] Error 1
make[1]: Leaving directory '/home/etbe/matrix/libcrypt-nacl-sodium-perl'

-- System Information:
Debian Release: 13.1
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.48+deb13-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages libsodium-dev depends on:
ii  libsodium23  1.0.18-1+b2

libsodium-dev recommends no packages.

libsodium-dev suggests no packages.

-- debconf-show failed

  • Bug#1117464: libsodium-dev: relocation R_X86_64_PC32 against... Russell Coker

Reply via email to