[Help-gnutls] Problem building from git

Brad Hards bradh at frogmouth.net
Sun Jul 5 08:04:17 CEST 2009


Hi,

I'm trying to build gnutls from git (commit 
762950f92f97f8fc71b9acdedce5872ba9c272f0), and having some trouble.

Its a clean checkout, and I've followed README-alpha.

I'm building with gcc (GCC) 4.4.0 20090506 (Red Hat 4.4.0-4)

make bootstrap ended with:
  version:          2.9.2 shared 41:2:15
  Host type:        x86_64-unknown-linux-gnu
  Install prefix:   /usr/local              
  Compiler:         gcc -std=gnu99          
  Warning flags:    errors:  -Werror warnings:  -Wall -W -Wformat-security -
Winit-self -Wmissing-include-dirs -Wunused -Wunknown-pragmas -Wstrict-aliasing 
-Wfloat-equal -Wdeclaration-after-statement -Wpointer-arith -Wbad-function-cast 
-Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -
Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wpacked -
Wredundant-decls -Wnested-externs -Winline -Winvalid-pch -Wlong-long -Wvla -
Wvolatile-register-var -Wdisabled-optimization -Wstack-protector -Woverlength-
strings -Wbuiltin-macro-redefined -Wmudflap -Wpacked-bitfield-compat -Wsync-nand 
-Wattributes -Wcoverage-mismatch -Wmultichar -Wunused-macros -Wno-missing-
field-initializers -Wno-sign-compare -Wno-pointer-sign -Wno-unused-parameter -
Wno-unused-parameter -Wno-stack-protector -fdiagnostics-show-option                                            
  Library types:    Shared=yes, Static=yes                                                                                    
  Valgrind:         valgrind                                                                                                  
  Guile wrappers:   no                                                                                                        
  C++ library:      yes                                                                                                       
  OpenSSL library:  yes 

When I run make, it errors out with this:
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I./../gl -I./../gl -
I./../includes -I./../includes -I./.. -I./../minitasn1 -Werror -Wframe-larger-
than=2100 -Wall -W -Wformat-security -Winit-self -Wmissing-include-dirs -
Wunused -Wunknown-pragmas -Wstrict-aliasing -Wfloat-equal -Wdeclaration-after-
statement -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -
Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-
noreturn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wnested-
externs -Winline -Winvalid-pch -Wlong-long -Wvla -Wvolatile-register-var -
Wdisabled-optimization -Wstack-protector -Woverlength-strings -Wbuiltin-macro-
redefined -Wmudflap -Wpacked-bitfield-compat -Wsync-nand -Wattributes -Wcoverage-
mismatch -Wmultichar -Wunused-macros -Wno-missing-field-initializers -Wno-sign-
compare -Wno-pointer-sign -Wno-unused-parameter -Wno-unused-parameter -Wno-
stack-protector -fdiagnostics-show-option -g -O2 -MT crq.lo -MD -MP -MF 
.deps/crq.Tpo -c crq.c  -fPIC -DPIC -o .libs/crq.o                                                                                                          
cc1: warnings being treated as errors                                                                                         
crq.c: In function 'get_subject_alt_name':                                                                                    
crq.c:1652: error: passing argument 5 of 
'gnutls_x509_crq_get_extension_by_oid' from incompatible pointer type                
./../includes/gnutls/x509.h:780: note: expected 'size_t *' but argument is of 
type 'unsigned int *'                           
crq.c:1668: error: passing argument 5 of 
'gnutls_x509_crq_get_extension_by_oid' from incompatible pointer type                
./../includes/gnutls/x509.h:780: note: expected 'size_t *' but argument is of 
type 'unsigned int *'
crq.c: In function 'gnutls_x509_crq_set_subject_alt_name':
crq.c:1892: error: passing argument 5 of 
'gnutls_x509_crq_get_extension_by_oid' from incompatible pointer type
crq.c:1804: note: expected 'size_t *' but argument is of type 'unsigned int *'
crq.c:1910: error: passing argument 5 of 
'gnutls_x509_crq_get_extension_by_oid' from incompatible pointer type
crq.c:1804: note: expected 'size_t *' but argument is of type 'unsigned int *'
crq.c: In function 'gnutls_x509_crq_get_key_purpose_oid':
crq.c:2088: error: passing argument 5 of 
'gnutls_x509_crq_get_extension_by_oid' from incompatible pointer type
crq.c:1804: note: expected 'size_t *' but argument is of type 'unsigned int *'
crq.c:2104: error: passing argument 5 of 
'gnutls_x509_crq_get_extension_by_oid' from incompatible pointer type
crq.c:1804: note: expected 'size_t *' but argument is of type 'unsigned int *'
crq.c: In function 'gnutls_x509_crq_set_key_purpose_oid':
crq.c:2185: error: passing argument 5 of 
'gnutls_x509_crq_get_extension_by_oid' from incompatible pointer type
crq.c:1804: note: expected 'size_t *' but argument is of type 'unsigned int *'
crq.c:2202: error: passing argument 5 of 
'gnutls_x509_crq_get_extension_by_oid' from incompatible pointer type
crq.c:1804: note: expected 'size_t *' but argument is of type 'unsigned int *'
make[4]: *** [crq.lo] Error 1
make[4]: Leaving directory `/home/bradh/devel/gnutls/lib/x509'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/bradh/devel/gnutls/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/bradh/devel/gnutls/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bradh/devel/gnutls'
make: *** [all] Error 2

The problem would appear to be that size_t isn't the same as   "unsigned int" 
(perhaps some 64 bit thing - the glibc headers are too confusing for me to 
divine today).

Brad





More information about the Gnutls-help mailing list