#23180 [Bgs]: Make fails not finding a krb5.h

From: Date: Tue, 29 Apr 2003 21:59:28 +0000
Subject: #23180 [Bgs]: Make fails not finding a krb5.h
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38772@lists.php.net to get a copy of this message
ID: 23180 User updated by: alietss at yahoo dot com Reported By: alietss at yahoo dot com Status: Bogus Bug Type: Compile Failure Operating System: Linux RedHat 9.0 PHP Version: 4.3.2-RC New Comment: Hi Guys: Wow at last, I built it, all you have to do to workaround this on RedHat 9.0, if you're gonna build it on console type the command export CPPFLAGS=-I/usr/kerberos/include, and with a spec file to build a RPMS add before the configure this CPPFLAGS="-I/usr/kerberos/include"; export CPPFLAGS. With this you are going to build it ok, Ah important don't build php with his mysql builtin support, this will fail on Redhat 9.0, rather build it with your extern mysql headers, ex --with-mysql=/usr. Thank's hewei, it works Previous Comments: ------------------------------------------------------------------------ [2003-04-29 08:16:34] hewei at ied dot org dot cn can export CPPFLAGS=-I/usr/kerberos/include before ./configure as a walkaround. How about adding a 'with-kerberos-dir=DIR' option? ------------------------------------------------------------------------ [2003-04-28 18:05:20] sniper@php.net This is some RH 9.0 bug with their openssl packages. Not PHP problem. ------------------------------------------------------------------------ [2003-04-28 12:37:32] alietss at yahoo dot com Hi Snipper: Hey I tested with latest snapshot and the error persists in the make.... Here my openssl and rpms related on RedHat 9.0 openssl-0.9.7a-5 openssl-devel-0.9.7a-5 openssl-perl-0.9.7a-5 krb5-libs-1.2.7-14 pam_krb5-1.60-1 krb5-server-1.2.7-14 krb5-workstation-1.2.7-14 krb5-devel-1.2.7-14 Regards ------------------------------------------------------------------------ [2003-04-28 10:28:14] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Some configure stuff is fixed now. Also, what Openssl version is this?? Did you install it from RPM or compile yourself? If RPM, did you install the development RPM too? (openssl-dev or something like that) ------------------------------------------------------------------------ [2003-04-24 20:10:10] alietss at yahoo dot com Hi sniper: I tested with this configure line and the error persists... ./configure --with-openssl Remember I'm on RedHat 9.0, I check the config.log and I saw some erros, compile it on RedHat 9.0 and you'll see then this are some of the errors... configure:2298: gcc -V </dev/null >&5 gcc: argument to `-V' is missing configure:2725: gcc -c -g -O2 conftest.c >&5 conftest.c:2: parse error before "me" configure:2728: $? = 1 configure: failed program was: | #ifndef __cplusplus | choke me | #endif configure:2933: checking how to run the C preprocessor configure:2969: gcc -E conftest.c configure:2975: $? = 0 configure:3007: gcc -E conftest.c configure:3006:28: ac_nonexistent.h: No such file or directory configure:3013: $? = 1 configure: failed program was: | #line 2998 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:3238: gcc -o conftest -g -O2 conftest.c -R /usr/lib >&5 gcc: unrecognized option `-R' /usr/lib: file not recognized: Is a directory collect2: ld returned 1 exit status configure:3241: $? = 1 configure: failed program was: | #line 3221 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:4007: gcc -o conftest -g -O2 conftest.c >&5 /tmp/ccqISvsu.o(.text+0x20): In function `main': /Downloads/devel/php-4.3.2/configure:4004: undefined reference to `pthread_mutexattr_init' /tmp/ccqISvsu.o(.text+0x34):/Downloads/devel/php-4.3.2/configure:4005: undefined reference to `pthread_create' collect2: ld returned 1 exit status configure:4010: $? = 1 configure: program exited with status 1 configure: failed program was: | #line 3983 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define YYTEXT_POINTER 1 | /* end confdefs.h. */ | | #include <pthread.h> | #include <stddef.h> | | void *thread_routine(void *data) { | return data; | } | | int main() { | pthread_t thd; | pthread_mutexattr_t mattr; | int data = 1; | pthread_mutexattr_init(&mattr); | return pthread_create(&thd, NULL, thread_routine, &data); | } configure:4035: checking for pthreads_cflags configure:4074: gcc -o conftest -g -O2 -kthread conftest.c >&5 gcc: unrecognized option `-kthread' /tmp/ccTYCzuX.o(.text+0x20): In function `main': /Downloads/devel/php-4.3.2/configure:4071: undefined reference to `pthread_mutexattr_init' /tmp/ccTYCzuX.o(.text+0x34):/Downloads/devel/php-4.3.2/configure:4072: undefined reference to `pthread_create' collect2: ld returned 1 exit status configure:4077: $? = 1 configure: program exited with status 1 configure: failed program was: | #line 4050 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define YYTEXT_POINTER 1 | /* end confdefs.h. */ | | #include <pthread.h> | #include <stddef.h> | | void *thread_routine(void *data) { | return data; | } | | int main() { | pthread_t thd; | pthread_mutexattr_t mattr; | int data = 1; | pthread_mutexattr_init(&mattr); | return pthread_create(&thd, NULL, thread_routine, &data); | } configure:5619: gcc -c -g -O2 conftest.c >&5 configure:5611:19: httpd.h: No such file or directory configure: In function `main': configure:5615: `conn_rec' undeclared (first use in this function) configure:5615: (Each undeclared identifier is reported only once configure:5615: for each function it appears in.) configure:5615: `c' undeclared (first use in this function) configure:5622: $? = 1 configure: failed program was: | #line 5602 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define YYTEXT_POINTER 1 | /* end confdefs.h. */ | #include <httpd.h> | int | main () | { | conn_rec *c; int fd = c->client->fd; | ; | return 0; | } configure:12789: gcc -o conftest -g -O2 conftest.c >&5 configure:12792: $? = 0 configure:12794: ./conftest configure:12797: $? = 1 configure: program exited with status 1 configure: failed program was: | #line 12775 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define YYTEXT_POINTER 1 | #define PHP_WRITE_STDOUT 1 | #define FORCE_CGI_REDIRECT 0 | #define DISCARD_PATH 0 | #define ENABLE_PATHINFO_CHECK 1 | #define PHP_FASTCGI 0 | #define PHP_FCGI_STATIC 0 | #define HAVE_SENDMAIL 1 | /* end confdefs.h. */ | | int main(void) { | return (unsigned char)'A' != (unsigned char)0xC1; | } | ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/23180 -- Edit this bug report at http://bugs.php.net/?id=23180&edit=1

« previous php.bugs (#38772) next »