[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fail compile with cURL caused by headers
From: |
Simon Josefsson |
Subject: |
Re: fail compile with cURL caused by headers |
Date: |
Mon, 09 Nov 2009 13:05:02 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) |
Marco Maggi <address@hidden> writes:
> Ciao,
>
> when compiling cURL version 7.19.6, it fails with:
>
> libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../include -I../lib
> -I../lib -I/usr/local/include -I/usr/local/include -I/usr/include/openssl
> -I/usr/include -I/usr/local/include -O3 -march=i686 -mtune=i686 -g0
> -Wno-system-headers -MT krb5.lo -MD -MP -MF .deps/krb5.Tpo -c krb5.c -fPIC
> -DPIC -o .libs/krb5.o
> In file included from /usr/local/include/gss.h:83,
> from urldata.h:130,
> from krb5.c:59:
> /usr/local/include/gss/api.h:92: error: redefinition of 'struct
> gss_OID_desc_struct'
> /usr/local/include/gss/api.h:98: error: redefinition of 'struct
> gss_OID_set_desc_struct'
> /usr/local/include/gss/api.h:104: error: redefinition of 'struct
> gss_buffer_desc_struct'
> /usr/local/include/gss/api.h:110: error: redefinition of 'struct
> gss_channel_bindings_struct'
>
> and indeed the following:
>
> #include <stdio.h>
> #include <stdlib.h>
> #include <gss.h>
> #include <gssapi/gssapi.h>
> int
> main (void)
> {
> exit(EXIT_SUCCESS);
> }
>
> fails with:
>
> In file included from proof.c:6:
> /usr/local/include/gssapi/gssapi.h:105: error: redefinition of 'struct
> gss_OID_desc_struct'
> /usr/local/include/gssapi/gssapi.h:111: error: redefinition of 'struct
> gss_OID_set_desc_struct'
> /usr/local/include/gssapi/gssapi.h:116: error: redefinition of 'struct
> gss_buffer_desc_struct'
> /usr/local/include/gssapi/gssapi.h:121: error: redefinition of 'struct
> gss_channel_bindings_struct'
>
> what should be done?
Don't include both those header files, gss.h is from GNU GSS and
gssapi/gssapi.h is (probably) from Heimdal. Both provide a GSS
implementation, and if you use both you'll run into problems. You
should be able to just remove the gssapi/gssapi.h include if you want to
use GNU GSS.
/Simon