Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:2303 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72256 invoked from network); 13 Jun 2003 00:00:36 -0000 Received: from unknown (HELO mail.echospace.com) (216.57.208.136) by pb1.pair.com with SMTP; 13 Jun 2003 00:00:36 -0000 Received: (qmail 9114 invoked from network); 13 Jun 2003 00:00:35 -0000 Received: from bdsl.66.14.129.196.gte.net (HELO php.net) (66.14.129.196) by mail.echospace.com with SMTP; 13 Jun 2003 00:00:35 -0000 Message-ID: <3EE91422.5010807@php.net> Date: Thu, 12 Jun 2003 17:00:34 -0700 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: walt boring CC: internals@lists.php.net References: <3EE9099F.5040104@3gstech.com> In-Reply-To: <3EE9099F.5040104@3gstech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] php5 compile problem From: vlad@php.net (Vlad Krupin) That's a known problem on redhat9 - kerberos include files are in /usr/kerberos/include, which is not in your include path. You have to tweak it by hand to make PHP compile with openssl on redhat9. PHP is not alone - any application that needs to be compiled against openssl on a redhat9 box will fail like that (unless it is aware that kerberos is installed in /usr/kerberos). :( Vlad walt boring wrote: > I am trying to compile the latest PHP5 from CVS w/ openssl support, > and it bails looking for krb.h. I have > a RedHat9 box. Below is the output. I have this same issue with > compiling php 4.3.2. I usually have to hack the > Makefile to add the include path where the krb.h include is. > > [root@hemna php5]# make > /bin/sh /usr/local/src/php5/libtool --silent --preserve-dup-deps > --mode=compile gcc -Iext/openssl/ -I/usr/local/src/php5/ext/openssl/ > -DPHP_ATOM_INC -I/usr/local/src/php5/include > -I/usr/local/src/php5/main -I/usr/local/src/php5 > -I/usr/local/src/php5/Zend -I/usr/include/libxml2 -I/usr/local/include > -I/usr/include/mysql -I/u01/app/oracle/product/8.1.7/rdbms/public > -I/u01/app/oracle/product/8.1.7/rdbms/demo > -I/usr/local/src/php5/TSRM -g -O2 -prefer-pic -c > /usr/local/src/php5/ext/openssl/xp_ssl.c -o ext/openssl/xp_ssl.lo > In file included from /usr/include/openssl/ssl.h:179, > from /usr/local/src/php5/ext/openssl/xp_ssl.c:26: > /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 /usr/local/src/php5/ext/openssl/xp_ssl.c:26: > /usr/include/openssl/kssl.h:132: parse error before "krb5_enctype" > /usr/include/openssl/kssl.h:134: parse error before "FAR" > /usr/include/openssl/kssl.h:135: parse error before '}' token > /usr/include/openssl/kssl.h:147: parse error before "kssl_ctx_setstring" > /usr/include/openssl/kssl.h:147: parse error before '*' token > /usr/include/openssl/kssl.h:148: parse error before '*' token > /usr/include/openssl/kssl.h:149: parse error before '*' token > /usr/include/openssl/kssl.h:149: parse error before '*' token > /usr/include/openssl/kssl.h:150: parse error before '*' token > /usr/include/openssl/kssl.h:151: parse error before "kssl_ctx_setprinc" > /usr/include/openssl/kssl.h:151: parse error before '*' token > /usr/include/openssl/kssl.h:153: parse error before "kssl_cget_tkt" > /usr/include/openssl/kssl.h:153: parse error before '*' token > /usr/include/openssl/kssl.h:155: parse error before "kssl_sget_tkt" > /usr/include/openssl/kssl.h:155: parse error before '*' token > /usr/include/openssl/kssl.h:157: parse error before "kssl_ctx_setkey" > /usr/include/openssl/kssl.h:157: parse error before '*' token > /usr/include/openssl/kssl.h:159: parse error before "context" > /usr/include/openssl/kssl.h:160: parse error before > "kssl_build_principal_2" > /usr/include/openssl/kssl.h:160: parse error before "context" > /usr/include/openssl/kssl.h:163: parse error before "kssl_validate_times" > /usr/include/openssl/kssl.h:163: parse error before "atime" > /usr/include/openssl/kssl.h:165: parse error before "kssl_check_authent" > /usr/include/openssl/kssl.h:165: parse error before '*' token > /usr/include/openssl/kssl.h:167: parse error before "enctype" > In file included from /usr/local/src/php5/ext/openssl/xp_ssl.c:26: > /usr/include/openssl/ssl.h:909: parse error before "KSSL_CTX" > /usr/include/openssl/ssl.h:931: parse error before '}' token > make: *** [ext/openssl/xp_ssl.lo] Error 1 > > [root@hemna php5]# locate krb5.h > /usr/kerberos/include/gssapi/gssapi_krb5.h > /usr/kerberos/include/krb5.h > > [root@hemna php5]# rpm -qf /usr/kerberos/include/krb5.h > krb5-devel-1.2.7-14 > > Walt > > >