ID: 9773 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: *Configuration Issues Description: Configure hangs Here is the complete config.log file: This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:1299: checking for a BSD compatible install configure:1352: checking whether build environment is sane configure:1409: checking whether make sets ${MAKE} configure:1448: checking for working aclocal configure:1461: checking for working autoconf configure:1474: checking for working automake configure:1487: checking for working autoheader configure:1500: checking for working makeinfo configure:1530: checking whether to enable maintainer-specific portions of Makefiles configure:1559: checking host system type configure:1587: checking for gawk configure:1621: checking for bison configure:1655: checking bison version configure:1668: checking for gcc configure:1781: checking whether the C compiler (gcc ) works configure:1797: gcc -o conftest conftest.c 1>&5 configure:1823: checking whether the C compiler (gcc ) is a cross-compiler configure:1828: checking whether we are using GNU C configure:1837: gcc -E conftest.c configure:1856: checking whether gcc accepts -g configure:1888: checking how to run the C preprocessor configure:1909: gcc -E conftest.c >/dev/null 2>conftest.out configure:1968: checking for AIX configure:2013: checking for gcc option to accept ANSI C configure:2066: gcc -c -g -O2 conftest.c 1>&5 configure:2093: checking for ranlib configure:2122: checking whether gcc and cc understand -c and -o together configure:2137: gcc -c conftest.c -o conftest.o 1>&5 configure:2138: gcc -c conftest.c -o conftest.o 1>&5 configure:2143: cc -c conftest.c 1>&5 configure:2145: cc -c conftest.c -o conftest.o 1>&5 configure:2146: cc -c conftest.c -o conftest.o 1>&5 configure:2173: checking whether ln -s works configure:2200: checking for flex configure:2233: checking for flex configure:2267: checking for yywrap in -lfl configure:2286: gcc -o conftest -g -O2 conftest.c -lfl 1>&5 configure:2309: checking lex output file root configure:2330: checking whether yytext is a pointer configure:2349: gcc -o conftest -g -O2 conftest.c -lfl 1>&5 configure:2372: checking for working const configure:2426: gcc -c -g -O2 conftest.c 1>&5 configure:2543: gcc -o conftest -g -O2 conftest.c 1>&5 /tmp/cce0pXlV.o: In function `main': /home/k/keith/php/php-4.0.4pl1/configure:2538: undefined reference to `pthread_mutexattr_init' /home/k/keith/php/php-4.0.4pl1/configure:2539: undefined reference to `pthread_create' collect2: ld returned 1 exit status configure: failed program was: #line 2525 "configure" #include "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:2563: checking for pthreads_cflags configure:2596: gcc -o conftest -g -O2 -kthread conftest.c 1>&5 gcc: unrecognized option `-kthread' /tmp/ccV61Ryr.o: In function `main': /home/k/keith/php/php-4.0.4pl1/configure:2591: undefined reference to `pthread_mutexattr_init' /home/k/keith/php/php-4.0.4pl1/configure:2592: undefined reference to `pthread_create' collect2: ld returned 1 exit status configure: failed program was: #line 2578 "configure" #include "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:2596: gcc -o conftest -g -O2 -pthread conftest.c 1>&5 Keith Previous Comments: --------------------------------------------------------------------------- [2001-03-16 08:59:07] [EMAIL PROTECTED] After running 'gcc -v' I get this, Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) Keith --------------------------------------------------------------------------- [2001-03-15 23:11:30] [EMAIL PROTECTED] What is the version of GCC ? --Jani --------------------------------------------------------------------------- [2001-03-15 16:51:52] [EMAIL PROTECTED] After I type ./configure with any options or just ./configure this happens: checking for a BSD compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking whether to enable maintainer-specific portions of Makefiles... no checking host system type... i686-pc-linux-gnu checking for gawk... gawk checking for bison... bison -y checking bison version... 1.28 (ok) checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking how to run the C preprocessor... gcc -E checking for AIX... no checking for gcc option to accept ANSI C... none needed checking for ranlib... ranlib checking whether gcc and cc understand -c and -o together... yes checking whether ln -s works... yes checking for flex... flex checking for flex... (cached) flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for working const... yes checking for pthreads_cflags... In the config.log it shows this (last line): configure:2596: gcc -o conftest -g -O2 -pthread conftest.c 1>&5 I've successfully compiled and installed php3, but I just don't know why this is happening. I also searched in the archived mailing list and 2 other poeple have the same problem, but there was no way to get around it without modifying the configure file. Keith --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=9773 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]