From:             [EMAIL PROTECTED]
Operating system: RH 7.1
PHP version:      4.0.6
PHP Bug Type:     PHP options/info functions
Bug description:  error in configuration with pthread

make version 3.79.1
automake version 1.4
gcc version 2.96
kernel 2.4.3-12enterprise
when run ./configure \
        --prefix=/usr \
        --disable-debug \
        --enable-pic \
        --enable-shared \
        --enable-inline-optimization \
        $* \
        --with-exec-dir=/usr/bin \
        --with-regex=system \
        --with-gettext \
        --with-gd \
        --with-jpeg-dir=/usr \
        --with-config-file-path=/etc \
        --with-png \
        --with-zlib \
        --with-bz2 \
        --with-gdbm \
        --with-mysql \
        --without-db2 \
        --without-db3 \
        --enable-debugger \
        --enable-magic-quotes \
        --enable-safe-mode \
        --enable-sockets \
        --enable-sysvsem \
        --enable-sysvshm \
        --enable-track-vars \
        --enable-yp \
        --enable-ftp \
        --enable-wddx \
        --with-oracle \
        --with-oci8 \
        --with-xml \
        --with-java \
        --with-smtp
I have no errors in the screen but in the config.log I get a lot of error
messages same as:
configure:2572: gcc -o conftest -g -O2   conftest.c  1>&5
/tmp/ccarKgpO.o: In function `main':
/varios/php-4.0.6/configure:2567: undefined reference to
`pthread_mutexattr_init'
/varios/php-4.0.6/configure:2568: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2554 "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:2592: checking for pthreads_cflags
configure:2625: gcc -o conftest -g -O2 -kthread   conftest.c  1>&5
gcc: unrecognized option `-kthread'
/tmp/ccVNfWDx.o: In function `main':
/varios/php-4.0.6/configure:2620: undefined reference to
`pthread_mutexattr_init'
/varios/php-4.0.6/configure:2621: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2607 "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);
}

 and then the make does´t run properly.
Same as the 9788 bug but without the --with-crack option.


-- 
Edit bug report at: http://bugs.php.net/?id=12342&edit=1


-- 
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]

Reply via email to