cURL / Mailing Lists / curl-users / Single Mail


Re: Including non-standard -I directories fails

From: <>
Date: Wed, 24 Aug 2011 13:24:16 +0200


> On Wed, 24 Aug 2011, wrote:
> >> Why? It is included witht -isystem instead. Why is that good enough?
> > If it is supposed to be like that? I an not a make/C expert. Fixing it
> > manually make it work. That's what puzzles me.
> To me that seems to indicate a bug in your gcc version.
> We convert -I to -isystem for some things to make the headers included
> from
> that path to be treated as system headers by gcc. It has the advantage
> that
> for example gcc will ignore more problems/nits that aren't really ours.

Make sense, though other includes are left as-is with -I. I can't jugde here so I assume your approach is correct.
> >> What gcc version is this?
> >
> > $ gcc --verbose --verbose
> > gcc version 4.2.2 20070831 prerelease [FreeBSD]
> The version closest to 4.2.2 for which I found docs for is 4.2.4 and it
> clearly documents -isystem:
> So to sum up: I don't know why your gcc needs -isystem converted to -I. It
> shouldn't!

Just a test, I have unset CPPFLAGS and ran configure and make again.
Make goes way further but quits with:

libtool: compile: gcc -DHAVE_CONFIG_H -I../include/curl -I../include -I../include -I../lib -I../lib -I/usr/include -I/usr/local/openssl/include -I/usr/local/openssl/include/openssl -g0 -O2 -Wno-system-headers -MT http_negotiate.lo -MD -MP -MF .deps/http_negotiate.Tpo -c http_negotiate.c -fPIC -DPIC -o .libs/http_negotiate.o
In file included from urldata.h:172,
                 from http_negotiate.c:37:
/usr/include/gssapi.h:3:2: warning: #warning "this file includes <gssapi.h> which is deprecated, use <gssapi/gssapi.h> instead"
http_negotiate.c:45:26: error: spnegohelp.h: No such file or directory
*** Error code 1

Stop in /.amd_mnt/blnn728x/home/osipovmi/curl-7.21.7/lib.
*** Error code 1

Stop in /.amd_mnt/blnn728x/home/osipovmi/curl-7.21.7/lib.
*** Error code 1

Stop in /.amd_mnt/blnn728x/home/osipovmi/curl-7.21.7.

Now it cannot find the spnegohelp.h because I have unset CPPFLAGS.
Chicken and egg problem, huh?

Moreover, is there a good reason why curl requires fbopenssl for? If I take a look into my /usr/lib there is one for both MIT and Heimdal. libneon works with that just fine. SPNEGO has a different OID than Keberos but is treated equally by the GSS-API. Is this some legacy dependency?



NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!		
Jetzt informieren:
List admin:
Received on 2011-08-24