gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnutls 2.11.0 released


From: lfinsto
Subject: Re: gnutls 2.11.0 released
Date: Wed, 28 Jul 2010 17:25:08 +0200
User-agent: SquirrelMail/1.4.20

On Fri, July 23, 2010 8:24 pm, Nikos Mavrogiannopoulos wrote:

>  Probably something is wrong with the order of the -I directives. If you
> can debug and find some hint on the issue, would be nice. Better check
> to see what the issue is on Makefile first.

This has turned out to be not so easy.  I've spent today trying to find
the variable where the path for the libgcrypt library is stored.  When
I've found it, I can try to get it passed to where it needs to be.

In the course of trying to figure things out, I've tried
make maintainer-clean
aclocal
autoconf
autoheader
etc.

It didn't work with the versions of Autoconf and Automake available for
OpenSuse 11.1, so I installed the most recent stable versions:

autoconf (GNU Autoconf) 2.66
automake (GNU automake) 1.11.1

aclocal must be called like this:
aclocal -I m4 -I gl/m4 -I lib/gl/m4 -I libextra/gl/m4 -I lib/m4 -I
libextra/m4

There may well be some way of telling aclocal where to look, but I haven't
check this yet.

One gets this error:

configure.ac:66: error: AC_CHECK_SIZEOF: requires literal arguments
../../lib/autoconf/types.m4:765: AC_CHECK_SIZEOF is expanded from...
lib/m4/hooks.m4:23: LIBGNUTLS_HOOKS is expanded from...
configure.ac:66: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1

The problem can be solved by the following patch for [...]/lib/m4/hooks.m4.

Briefly, `AC_CHECK_SIZEOF(void *)' doesn't work, although I think it
should, from what the Autoconf manual says.  Nor does
`AC_CHECK_SIZEOF(sizeof(void *))' nor any of the variants I tried, so I've
commented it out.

I've added calls to `AC_TYPE_UINTPTR_T' to and `AC_TYPE_INTPTR_T', which
define appropriate types, if needed.  `SIZEOF_VOID_P' isn't used anywhere
and the package builds correctly.

This applies to the master branch as well as gnutls 2.11.0;
[...]/lib/m4/hooks.m4 is identical in the two versions.

Laurence

**********************************************************

The patch:

diff --git a/m4/hooks.m4 b/m4/hooks.m4
index 378c94a..3a6a086 100644
--- a/m4/hooks.m4
+++ b/m4/hooks.m4
@@ -303,9 +303,12 @@ AC_DEFUN([LIBGNUTLS_HOOKS],

   # For storing integers in pointers without warnings
   #
http://developer.gnome.org/doc/API/2.0/glib/glib-Type-Conversion-Macros.html#desc
-  AC_CHECK_SIZEOF(void *)
-  AC_CHECK_SIZEOF(long)
-  AC_CHECK_SIZEOF(int)
+#  AC_CHECK_SIZEOF([void *])
+  AC_TYPE_UINTPTR_T
+  AC_TYPE_INTPTR_T
+#  AC_CHECK_SIZEOF([sizeof(int*)])
+  AC_CHECK_SIZEOF([long int])
+  AC_CHECK_SIZEOF([int])
   case $ac_cv_sizeof_void_p in
     $ac_cv_sizeof_long)
       AC_DEFINE([GNUTLS_POINTER_TO_INT_CAST], [(long)],


**********************************************************

> On 07/23/2010 02:25 PM, address@hidden wrote:
>> gnutls 2.11.0 released
>> From:        Nikos Mavrogiannopoulos
>> Subject:     gnutls 2.11.0 released
>> Date:        Thu, 22 Jul 2010 19:47:13 +0200
>>
>> I got it to build with only minor problems:
>>
>> As you mentioned in a previous message:
>>
>> Copied [...]/tests/sha2/key-subca-dsa.pem from master to
>> [...]/gnutls-2.11.0
>>
>> Then:
>>
>> configure --disable-valgrind-tests
>> --with-libgcrypt-prefix=/home/lfinsto/libgcrypt-1.4.6 --prefix=`pwd`
>
> Hi,
>  Probably something is wrong with the order of the -I directives. If you
> can debug and find some hint on the issue, would be nice. Better check
> to see what the issue is on Makefile first.
>
> regards,
> Nikos
>


-------------------------------------------------------------
Laurence Finston
Gesellschaft fuer wissenschaftliche Datenverarbeitung mbH
Am Fassberg 11
37077 Goettingen

Telefon:        +49 551 201-1882
E-Mail:         address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]