Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Python 2.1 Compilation error - can't find krb5.h

Reply
Thread Tools

Python 2.1 Compilation error - can't find krb5.h

 
 
Gabby
Guest
Posts: n/a
 
      09-17-2003
I am attempting to compile python 2.1 from the source on a RedHat 9.0
system. The problem is that a openssl header file (kssl.h) requires
krb5.h which isn't in the usual place (/usr/include). Instead krb5.h
gets installed at usr/kerberos/include. The openssl version is
0.9.7a-2. When I build python, the ./configure works fine but the
make' has problems building the _socket extension. The beginning of
the error message is pasted below. How do I let python know where to
find the krb5.h file?


In file included from /usr/include/openssl/ssl.h:179,
from /home/merlin/Python-2.1.2/Modules/socketmodule.c:196:
/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 /home/merlin/Python-2.1.2/Modules/socketmodule.c:196:
 
Reply With Quote
 
 
 
 
Jeremy Hylton
Guest
Posts: n/a
 
      09-17-2003
On Wed, 2003-09-17 at 11:07, Gabby wrote:
> I am attempting to compile python 2.1 from the source on a RedHat 9.0
> system. The problem is that a openssl header file (kssl.h) requires
> krb5.h which isn't in the usual place (/usr/include). Instead krb5.h
> gets installed at usr/kerberos/include. The openssl version is
> 0.9.7a-2. When I build python, the ./configure works fine but the
> make' has problems building the _socket extension. The beginning of
> the error message is pasted below. How do I let python know where to
> find the krb5.h file?


This problem is fixed in CVS, but there hasn't been much interest in a
2.1.4 release since it's now two minor revisions out of date.

The solution is to add the following bit of code to setup.py just after
ssl_incs is defined.

krb5_h = find_file('krb5.h', inc_dirs,
['/usr/kerberos/include'])
if krb5_h:
ssl_incs += krb5_h

Jeremy



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to exclude action of Find::Find::find in subdirectories withknown names? vdvorkin Perl Misc 0 02-10-2011 05:18 PM
Compilation error with seperate compilation C__chp C++ 4 02-15-2008 03:57 PM
Find.find does not find orphaned links? Wybo Dekker Ruby 1 11-15-2005 02:50 PM
Compilation error - Most likely embarassingly easy, but I can't find what's wrong. Sune C Programming 10 10-07-2005 04:31 PM
CAnnot find the compilation error in this circular list Vince C++ 4 11-30-2004 08:26 PM



Advertisments