krb5.h: No such file or directory

Everything about the installation and compilation

Moderator: feffer

Post Reply
hypnotic

krb5.h: No such file or directory

Post by hypnotic » Tue Jun 01, 2004 6:54 pm

Hi guys,

Here's the error I get when I do a make:

make[3]: Entering directory `/root/partimage/partimage-0.6.4/src/shared'
if g++ -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\" -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I. -I. -I../.. -I../.. -I../../src/client -I../../src/shared -I/usr/include/slang -Wno-deprecated -I/usr/include/openssl -Wall -g -O2 -MT net.o -MD -MP -MF ".deps/net.Tpo" -c -o net.o net.cpp; \
then mv -f ".deps/net.Tpo" ".deps/net.Po"; else rm -f ".deps/net.Tpo"; exit 1; fi
In file included from /usr/include/openssl/ssl.h:179,
from structures.h:30,
from net.h:39,
from net.cpp:22:
/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
In file included from /usr/include/openssl/ssl.h:179,
from structures.h:30,
from net.h:39,
from net.cpp:22:
/usr/include/openssl/kssl.h:134: 'krb5_enctype' is used as a type, but is not
defined as a type.
/usr/include/openssl/kssl.h:136: syntax error before `*' token
/usr/include/openssl/kssl.h:149: parse error before `*' token
/usr/include/openssl/kssl.h:153: parse error before `*' token
/usr/include/openssl/kssl.h:155: parse error before `*' token
/usr/include/openssl/kssl.h:157: parse error before `*' token
/usr/include/openssl/kssl.h:159: parse error before `*' token
/usr/include/openssl/kssl.h:161: `krb5_context' was not declared in this scope
/usr/include/openssl/kssl.h:161: parse error before `,' token
/usr/include/openssl/kssl.h:162: `krb5_context' was not declared in this scope
/usr/include/openssl/kssl.h:162: parse error before `,' token
/usr/include/openssl/kssl.h:165: `krb5_timestamp' was not declared in this
scope
/usr/include/openssl/kssl.h:165: parse error before `,' token
/usr/include/openssl/kssl.h:167: parse error before `*' token
/usr/include/openssl/kssl.h:169: `krb5_enctype' was not declared in this scope
/usr/include/openssl/kssl.h:169: parse error before `,' token
make[3]: *** [net.o] Error 1
make[3]: Leaving directory `/root/partimage/partimage-0.6.4/src/shared'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/partimage/partimage-0.6.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/partimage/partimage-0.6.4'
make: *** [all] Error 2

Does someone have a clue?

hypnotic

Post by hypnotic » Fri Jun 04, 2004 5:27 pm

Okay I finally found the problem! I'm no configure/makefile guru so if someone wants to submit a better solution, you're highly welcome to do so (like fixing the configure script to take care of that problem)

The problem is that RH9 built openssl to work with kerberos and put the kerberos include file in /usr/kerberos/include

You have to add -I/usr/kerberos/include to the CPPFLAGS in each Makefiles. That's it!

Post Reply