[Announce] Libgcrypt 1.4.0 (stable) released

Tim Mooney Tim.Mooney at ndsu.edu
Mon Dec 10 23:07:16 CET 2007


Werner Koch wrote:
> Hello! 
> 
> We are pleased to announce the availability of Libgcrypt 1.4.0.  This is
> the new stable version of Libgcrypt and upward compatible with the 1.2
> series.

The Solaris compiler doesn't like it when a void function uses return:

  cc -DHAVE_CONFIG_H -I. -I.. -I/local/include -I/local/gnu/include 
-I/local/gnu/include -Xa -xO2 -xstrconst -KPIC -xtarget=native -m64 
-xarch=native -I/local/include -I/local/gnu/include -c misc.c  -KPIC 
-DPIC -o .libs/libgcrypt_la-misc.o
"visibility.c", line 702: void function cannot return value
"visibility.c", line 851: void function cannot return value
cc: acomp failed for visibility.c
gmake[2]: *** [libgcrypt_la-visibility.lo] Error 1


Removing the "return" in both places allows visibility.c to compile,
though I'm not certain that's the correct fix.


Also, the test suite fails to build if the version of libgpg-error
doesn't have gpg_err_code_from_syserror:

cc -I/local/gnu/include -Xa -xO2 -xstrconst -KPIC -xtarget=native -m64 
-xarch=native -I/local/include -I/local/gnu/include -o .libs/version 
version.o  -L/local/lib/64 -L/local/gnu/lib/64 ../src/.libs/libgcrypt.so 
/local/gnu/lib/64/libgpg-error.so /local/gnu/lib/64/libintl.so -lc 
-lsocket  -R/local/gnu/lib/64
Undefined                       first referenced
  symbol                             in file
gpg_err_code_from_syserror          ../src/.libs/libgcrypt.so
ld: fatal: Symbol referencing errors. No output written to .libs/version
gmake[2]: *** [version] Error 1

I have version 1.3 of libgpg-error installed and libgcrypt's configure 
was OK with that, but it appears that's not OK.  It looks like this
line in configure.ac needs to be updated to some newer version that's 
greater than at least 1.3 (looks like it appeared in 1.4?):

NEED_GPG_ERROR_VERSION=1.0

I'm attaching patches for these two issues -- I don't recall if the
mailing list allows attachments, but I can resend if they don't make it.

Tim
-- 
Tim Mooney                                        Tim.Mooney at ndsu.edu
Information Technology Services                   (701) 231-1076 (Voice)
Room 242-J6, IACC Building                        (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgcrypt-1.4.0-gpg-error-check.patch
Type: text/x-patch
Size: 454 bytes
Desc: not available
Url : /pipermail/attachments/20071210/b28a410a/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgcrypt-1.4.0-visibility.c.patch
Type: text/x-patch
Size: 754 bytes
Desc: not available
Url : /pipermail/attachments/20071210/b28a410a/attachment-0003.bin 


More information about the Gcrypt-devel mailing list