issues building gnutls from git on Ubuntu 12.04

Patrick Pelletier code at funwithsoftware.org
Sun May 20 17:37:34 CEST 2012


Thanks!  I did a "git clean -dfx" and that solved both of my previous  
problems.

I'd been so focused on the output of "git status" that I'd forgotten  
to consider that my checkout could be "dirty" in files that were being  
gitignored.  (I'd previously tried building gnutls in that same  
directory before I upgraded to Ubuntu 12.04, so that must be where the  
dirty files came from.  I just hadn't thought about that.)

Sorry for not figuring out such a basic issue on my own!

I'm now getting all the way through the "make bootstrap", and most of  
the way through "make", but it fails on the "compare-makefile" rule.   
Does that mean I'm still doing something wrong, or is this to be  
expected since I just grabbed the head of git, rather than using an  
official release?  (I'm not entirely clear what this step is doing,  
but perhaps these "FUNCS" lines are only updated before a release, and  
that's why they mismatch for me?)

--Patrick


Creating documentation for ../lib/includes/gnutls/ocsp.h... ok
mv -f enums.texi-tmp enums.texi
ENUMS=`grep '^@c ' enums.texi | sed 's/@c //g' | sort`; \
	STR=""; \
	for i in $ENUMS; do \
		STR="$STR\nENUMS += enums/$i"; \
	done; \
	grep -v -e '^ENUMS += ' ./Makefile.am | \
		perl -p -e "s,^ENUMS =,ENUMS =$STR," > tmp-compare-makefile; \
	diff -u ./Makefile.am tmp-compare-makefile
rm -f tmp-compare-makefile
FUNCS=`cat ../lib/includes/gnutls/*.h | ../doc/scripts/getfuncs.pl`; \
	MANS=""; \
	for i in $FUNCS; do \
		MANS="$MANS\nFUNCS += functions/$i"; \
	done; \
	grep -v -e '^FUNCS += ' Makefile.am | \
		perl -p -e "s,^FUNCS =,FUNCS =$MANS," > tmp-compare-makefile; \
	diff -u ./Makefile.am tmp-compare-makefile
--- ./Makefile.am	2012-05-19 23:10:37.000000000 -0700
+++ tmp-compare-makefile	2012-05-20 08:10:15.000000000 -0700
@@ -503,7 +503,6 @@
  FUNCS += functions/gnutls_x509_crt_set_pubkey
  FUNCS += functions/gnutls_x509_crq_set_pubkey
  FUNCS += functions/gnutls_pubkey_verify_hash
-FUNCS += functions/gnutls_pubkey_verify_hash2
  FUNCS += functions/gnutls_pubkey_get_verify_algorithm
  FUNCS += functions/gnutls_pubkey_verify_data
  FUNCS += functions/gnutls_pubkey_verify_data2
@@ -622,7 +621,6 @@
  FUNCS += functions/gnutls_certificate_type_get_name
  FUNCS += functions/gnutls_pk_get_name
  FUNCS += functions/gnutls_sign_get_name
-FUNCS += functions/gnutls_pk_to_sign
  FUNCS += functions/gnutls_mac_get_id
  FUNCS += functions/gnutls_compression_get_id
  FUNCS += functions/gnutls_cipher_get_id
make[5]: *** [compare-makefile] Error 1
make[5]: Leaving directory `/home/ppelletier/src/gnutls/doc'
make[4]: *** [stamp_functions] Error 2
make[4]: Leaving directory `/home/ppelletier/src/gnutls/doc'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/ppelletier/src/gnutls/doc'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ppelletier/src/gnutls/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ppelletier/src/gnutls'
make: *** [all] Error 2


On May 20, 2012, at 7:34 AM, Nikos Mavrogiannopoulos wrote:

> On Sun, May 20, 2012 at 10:00 AM, Patrick Pelletier
> <code at funwithsoftware.org> wrote:
>> On Ubuntu 12.04, I'm attempting to build gnutls from git.  I'm on  
>> the head
>> of the gnutls "master" branch, and "git status" shows I have no files
>> modified, and yet when I do "make bootstrap", autopoint complains  
>> that I
>> have modified files:
>>
>> ppelletier at patrick64:~/src/gnutls$ make bootstrap
>> for f in po/*.po.in; do \
>>                cp $f `echo $f | sed 's/.in//'`; \
>>        done
>> mv build-aux/config.rpath build-aux/config.rpath-
>> autopoint
>> autopoint: File ABOUT-NLS has been locally modified.
>> autopoint: File po/Makefile.in.in has been locally modified.
>> autopoint: File po/Rules-quot has been locally modified.
>> autopoint: *** Some files have been locally modified. Not  
>> overwriting them
>> because --force has not been specified. For your convenience, you  
>> find the
>> local modifications in the file '/tmp/gtuXtRkI/autopoint.diff'.
>> autopoint: *** Stop.
>
> That's strange because ABOUT-NLS isn't included in the repository. Are
> you sure there wasn't a stray one from a previous checkout? (it is
> being ignored as file so git status wouldn't show anything).
>
>> Anyway, with this change, the "make bootstrap" gets much further, but
>> eventually fails with:
>> configure: creating ./config.status
>> config.status: error: cannot find input file: src/libopts/Makefile.in
>> make: *** [bootstrap] Error 1
>
> If you run "autoreconf -fvi" does it fix the issue? make bootstrap may
> be fine for the first bootstrap but after than autoreconf -fvi should
> do.
>
> regards,
> Nikos
>





More information about the Gnutls-help mailing list