compile errors on freebsd 9.1

Matthias Wachs wachs at net.in.tum.de
Thu Aug 22 12:03:20 CEST 2013


Hi,

on one of our buildsystems libgcrypt git (Libgcrypt v1.6.0-beta194)
fails to build due to serpent and twofish:

FreeBSD freebsd91 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825
gcc (GCC) 4.2.1 20070831 patched [FreeBSD]

serpent:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src
-D_THREAD_SAFE -I/usr/local/include -g -O2 -fvisibility=hidden -Wall -MT
serpent.lo -MD -MP -MF .deps/serpent.Tpo -c serpent.c  -fPIC -DPIC
-o .libs/serpent.o
serpent.c: In function '_gcry_serpent_ctr_enc':
serpent.c:892: error: expected string literal before ')' token
serpent.c: In function '_gcry_serpent_cbc_dec':
serpent.c:999: error: expected string literal before ')' token
serpent.c: In function '_gcry_serpent_cfb_dec':
serpent.c:1101: error: expected string literal before ')' token
*** [serpent.lo] Error code 1

twofish:

/usr/bin/ld: ../cipher/.libs/libcipher.a(twofish-amd64.o): relocation
R_X86_64_PC32 against `__twofish_dec_blk3' can not be used when making a
shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
*** [libgcrypt.la] Error code 1


When disabling both ciphers it compiles ...

Cheers,

Matthias 


-- 
Dipl.-Inf. Matthias Wachs
Free Secure Network Systems Group
Technische Universitaet Muenchen
Chair for Network Architectures and Services
Institute for Informatics / I8           Tel:    +49 89 289 18037
Boltzmannstr. 3 / Room 03.05.042         Fax:    +49 89 289 18033
D-85748 Garching b. Muenchen, Germany    Email: wachs at net.in.tum.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
URL: </pipermail/attachments/20130822/48ebee27/attachment.sig>


More information about the Gcrypt-devel mailing list