Returning value in void function in 1.4.3

Albert Chin gcrypt-devel at
Fri Oct 17 20:28:37 CEST 2008

Building libgcrypt-1.4.3 with the Sun C compiler on Solaris 10:

gmake[2]: Entering directory `/opt/build/libgcrypt-1.4.3/random' /opt/fsw/bash32/bin/bash ../libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -I../src -I../src -I/opt/TWWfsw/libgpgerror16/include   -mr -Qn -xstrconst -xO2 -xtarget=ultra2 -m32 -xarch=sparcvis -c -o random.lo random.c
mkdir .libs
 cc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/opt/TWWfsw/libgpgerror16/include -mr -Qn -xstrconst -xO2 -xtarget=ultra2 -m32 -xarch=sparcvis -c random.c  -KPIC -DPIC -o .libs/random.o
"random.c", line 322: void function cannot return value
cc: acomp failed for random.c
gmake[2]: *** [random.lo] Error 1
gmake[2]: Leaving directory `/opt/build/libgcrypt-1.4.3/random'

Patch attached.

albert chin (china at
-------------- next part --------------
Index: random/random.c
--- random/random.c.orig	2008-10-17 18:26:32.749302613 +0000
+++ random/random.c	2008-10-17 18:26:34.999740069 +0000
@@ -319,5 +319,5 @@
 _gcry_random_deinit_external_test (void *context)
   if (fips_mode ())
-    return _gcry_rngfips_deinit_external_test (context);
+    _gcry_rngfips_deinit_external_test (context);

More information about the Gcrypt-devel mailing list