[krbdev.mit.edu #7953] krb5.h included after gssapi.h fails
Sam Hartman via RT
rt-comment at krbdev.mit.edu
Tue Jul 1 12:12:38 EDT 2014
hartmans at permutation-city:trust_router(556)> gcc -c foo.c
In file included from /usr/include/krb5.h:8:0,
from /usr/include/gssapi/gssapi_krb5.h:32,
from foo.c:3:
/usr/include/krb5/krb5.h:4016:1:
error: expected â=â, â,â, â;â, âasmâ
or â__attr
ibute__â before
âkrb5_build_principal_extâ
krb5_build_principal_ext(krb5_context
context, krb5_principal * princ,
^
/usr/include/krb5/krb5.h:4046:1:
error: expected â=â, â,â, â;â, âasmâ
or â__attr
ibute__â before
âkrb5_build_principalâ
krb5_build_principal(krb5_context
context,
^
/usr/include/krb5/krb5.h:7787:1:
error: expected â=â, â,â, â;â,
âasmâ or â__attr
ibute__â before
âkrb5_set_error_messageâ
krb5_set_error_message(krb5_context
ctx, krb5_error_code code, const
char *fmt,
...)
^
hartmans at permutation-city:trust_router(557)> cat foo.c
#include <gssapi/gssapi.h>
#include <gssapi/gssapi_krb5.h>
If that works for you it's presumably a Debian local issue.
Although
hartmans at permutation-city:krb5(559)> git diff --numstat upstream
src/include
5 1 src/include/Makefile.in
3 0 src/include/k5-int.h
5 4 src/include/osconf.hin
I'll take a closer look this evening.
hartmans at permutation-city:krb5(560)> gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc-4.8.real
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.8.2-16'
--with-
bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs
--enable-languages=c,c++,java,g
o,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8
--enable-shared --e
nable-linker-build-id --libexecdir=/usr/lib --without-included-gettext
--enable-
threads=posix --with-gxx-include-dir=/usr/include/c++/4.8
--libdir=/usr/lib --en
able-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
--enable
-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap
--enable-plu
gin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk
--enable-g
tk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre
--enable-jav
a-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64
--with-jvm-jar-
dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64
--with-arch-directory=amd64 --
with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc
--enable-multiarch
--with-arch-32=i586 --with-abi=m64 --with-multilib-list=m32,m64,mx32
--with-tun
e=generic --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux
-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.2 (Debian 4.8.2-16)
More information about the krb5-bugs
mailing list