Some compile issues of gnutls 2.6.3 on Solaris

Dagobert Michelsen dam at opencsw.org
Wed Jan 21 20:47:27 CET 2009


Hi,

I am having some compile issues with the current version gnutls 2.6.3
on Solaris with Sun Studio 11 compiler:

- Some void functions try to return values which is fixed with this  
patch:

diff -Naur gnutls-2.6.3.orig/lib/mac-libgcrypt.c gnutls-2.6.3.patched/ 
lib/mac-libgcrypt.c
--- gnutls-2.6.3.orig/lib/mac-libgcrypt.c       2008-12-12  
19:45:34.000000000 +0100
+++ gnutls-2.6.3.patched/lib/mac-libgcrypt.c    2009-01-21  
20:36:56.850155449 +0100
@@ -93,7 +93,7 @@
  static void
  wrap_gcry_md_close (void *hd)
  {
-  return gcry_md_close (hd);
+  gcry_md_close (hd);
  }

  static int
diff -Naur gnutls-2.6.3.orig/lib/mpi-libgcrypt.c gnutls-2.6.3.patched/ 
lib/mpi-libgcrypt.c
--- gnutls-2.6.3.orig/lib/mpi-libgcrypt.c       2008-12-12  
19:45:34.000000000 +0100
+++ gnutls-2.6.3.patched/lib/mpi-libgcrypt.c    2009-01-21  
20:22:33.521197971 +0100
@@ -120,7 +120,7 @@
  static void
  wrap_gcry_mpi_release (bigint_t a)
  {
-  return gcry_mpi_release (a);
+  gcry_mpi_release (a);
  }

  #undef _gnutls_mpi_alloc_like


- The generated includes from lgl/ are not used during compilation:

...
gmake[6]: Entering directory `/home/dam/mgar/pkg/gnutls/trunk/work/ 
build-isa-sparcv8/gnutls-2.6.3/libextra/gl'
source='hmac-md5.c' object='hmac-md5.lo' libtool=yes \
         DEPDIR=.deps depmode=none /bin/bash ../../build-aux/depcomp \
         /bin/bash ../../libtool --tag=CC   --mode=compile /opt/studio/ 
SOS11/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I../..   -I/opt/csw/include  
-I/opt/csw/include -xO3 -xarch=v8 -I/opt/csw/include -c -o hmac-md5.lo  
hmac-md5.c
libtool: compile:  /opt/studio/SOS11/SUNWspro/bin/cc -DHAVE_CONFIG_H - 
I. -I../.. -I/opt/csw/include -I/opt/csw/include -xO3 -xarch=v8 -I/opt/ 
csw/include -c hmac-md5.c  -KPIC -DPIC -o .libs/hmac-md5.o
"md5.h", line 25: cannot find include file: <stdint.h>
...
build8s% find . -name stdint.h
./work/build-isa-sparcv8/gnutls-2.6.3/lgl/stdint.h


Best regards

   -- Dagobert Michelsen





More information about the Gnutls-devel mailing list