Page MenuHome GnuPG

libgcrypt fails to build on FreeBSD 9.3
Closed, ResolvedPublic

Description

Hi,

Libgcrypt-1.7.0 fails to build with these errors

/bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -
I../src -I../src -I/usr/local/include -O2 -pipe -fstack-protector -fno-strict-
aliasing -std=gnu89 -fvisibility=hidden -Wall -MT crc-intel-pclmul.lo -MD -MP -
MF .deps/crc-intel-pclmul.Tpo -c -o crc-intel-pclmul.lo crc-intel-pclmul.c
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -
I/usr/local/include -O2 -pipe -fstack-protector -fno-strict-aliasing -std=gnu89
-fvisibility=hidden -Wall -MT crc-intel-pclmul.lo -MD -MP -MF .deps/crc-intel-
pclmul.Tpo -c crc-intel-pclmul.c -fPIC -DPIC -o .libs/crc-intel-pclmul.o
crc-intel-pclmul.c: In function 'crc32_reflected_bulk':
crc-intel-pclmul.c:146: error: expected string literal before ')' token
crc-intel-pclmul.c:154: error: expected string literal before ')' token
crc-intel-pclmul.c:191: error: expected string literal before ')' token
crc-intel-pclmul.c:202: error: expected string literal before ')' token
crc-intel-pclmul.c:225: error: expected string literal before ')' token
crc-intel-pclmul.c:239: error: expected string literal before ')' token
crc-intel-pclmul.c:259: error: expected string literal before ')' token
crc-intel-pclmul.c:291: error: expected string literal before ')' token
crc-intel-pclmul.c:321: error: expected string literal before ')' token
crc-intel-pclmul.c: In function 'crc32_reflected_less_than_16':
crc-intel-pclmul.c:336: error: expected string literal before ')' token
crc-intel-pclmul.c:375: error: expected string literal before ')' token
crc-intel-pclmul.c:394: error: expected string literal before ')' token
crc-intel-pclmul.c:407: error: expected string literal before ')' token
crc-intel-pclmul.c:414: error: expected string literal before ')' token
crc-intel-pclmul.c:425: error: expected string literal before ')' token
crc-intel-pclmul.c:438: error: expected string literal before ')' token
crc-intel-pclmul.c:468: error: expected string literal before ')' token
crc-intel-pclmul.c: In function 'crc32_bulk':
crc-intel-pclmul.c:480: error: expected string literal before ')' token
crc-intel-pclmul.c:500: error: expected string literal before ')' token
crc-intel-pclmul.c:508: error: expected string literal before ')' token
crc-intel-pclmul.c:549: error: expected string literal before ')' token
crc-intel-pclmul.c:560: error: expected string literal before ')' token
crc-intel-pclmul.c:583: error: expected string literal before ')' token
crc-intel-pclmul.c:598: error: expected string literal before ')' token
crc-intel-pclmul.c:619: error: expected string literal before ')' token
crc-intel-pclmul.c:653: error: expected string literal before ')' token
crc-intel-pclmul.c: In function 'crc32_less_than_16':
crc-intel-pclmul.c:700: error: expected string literal before ')' token
crc-intel-pclmul.c:777: error: expected string literal before ')' token
crc-intel-pclmul.c:784: error: expected string literal before ')' token
crc-intel-pclmul.c:795: error: expected string literal before ')' token
crc-intel-pclmul.c:808: error: expected string literal before ')' token

  • [crc-intel-pclmul.lo] Error code 1

Details

Version
1.7.0

Event Timeline

cpm added a subscriber: cpm.

cpm set Due Date to Apr 18 2016, 2:00 AM.

The following patch solves the problem.

Thanks for the patch.
Which compiler version are you using?

werner claimed this task.
werner added a subscriber: twoaday.

Hi Werner,

FreeBSD 9.x uses gcc version 4.2.1 20070831 patched [FreeBSD]

werner removed subscribers: cpm, werner.

Thanks for the info and the patch.
I have pushed commit 4545372 to master and it will eventually go into 1.7.1.

pushed to the 1.7 branch.