php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12342 error in configuration with pthread
Submitted: 2001-07-24 11:21 UTC Modified: 2001-07-30 06:22 UTC
From: longinos dot ferrando at carm dot es Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 4.0.6 OS: RH 7.1
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: longinos dot ferrando at carm dot es
New email:
PHP Version: OS:

 

 [2001-07-24 11:21 UTC] longinos dot ferrando at carm dot es
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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-27 13:50 UTC] sniper@php.net
I get similar 'errors' in config.log but it's normal.
More important are the errors you during 'make' ??
What are they?

--Jani

 [2001-07-30 05:05 UTC] longinos dot ferrando at carm dot es
I get some warnings:
zlib_fopen_wrapper.c:59: warning: initialization from incompatible pointer type
bz2.c: In function `php_bz2_error':
bz2.c:408: warning: initialization discards qualifiers from pointer target type
bz2.c:414: warning: passing arg 4 of `add_assoc_string_ex' discards qualifiers f
rom pointer target type
oracle.c: In function `php_minit_oracle':
oracle.c:298: warning: passing arg 1 of `zend_register_list_destructors_ex' from
 incompatible pointer type
oracle.c:299: warning: passing arg 2 of `zend_register_list_destructors_ex' from
 incompatible pointer type
yp.c: In function `php_if_yp_err_string':
yp.c:350: warning: assignment discards qualifiers from pointer target type

No php executable file is generated. No  libphp4.so is generated. Only  libphp4.la in the root directory and no modules is generated only libphp_java.la  and ibphp_java.so is generated in directory modules. 
 [2001-07-30 06:00 UTC] sniper@php.net
Try this:

# rm config.cache
# ./configure
# make clean ; make

Do you get 'php' binary now?

--Jani

 [2001-07-30 06:24 UTC] sniper@php.net
User error. (read INSTALL file next time..)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 05 08:01:28 2024 UTC