php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9773 Configure hangs
Submitted: 2001-03-15 16:51 UTC Modified: 2001-06-04 09:07 UTC
From: keith at newnova dot com Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.4pl1 OS: RedHat 6.1
Private report: No CVE-ID: None
 [2001-03-15 16:51 UTC] keith at newnova dot com
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-15 23:11 UTC] sniper@php.net
What is the version of GCC ?

--Jani

 [2001-03-16 08:59 UTC] keith at newnova dot com
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-16 11:24 UTC] keith at newnova dot com
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

 [2001-05-05 18:22 UTC] derick@php.net
Which glibc do you have?

ls -l /lib/*libc-*

And what kind of system do you have?
As this works fine on my RedHat 6.[12] install.
 [2001-05-08 11:07 UTC] keith at newnova dot com
My lib version is this,

/lib/libc-2.1.3.so

and I'm using RedHat 6.1

Keith



 [2001-06-04 04:36 UTC] sniper@php.net
This is definately not bug in PHP. There is something
really broken in your system.

--Jani

 [2001-06-04 09:07 UTC] keith at newnova dot com
The latest version of PHP (4.05) works perfectly fine.  The configuration
and compilation scripts run without any errors or "hangs".  Weird.

Keith
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 01:01:28 2024 UTC