PHP Config
| From: | Patrick Lanphier | Date: | Thu, 21 Sep 2000 16:08:53 +0000 |
| Subject: | PHP Config | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-1@lists.php.net to get a copy of this message | ||
Below I receive the following type of error multiple times throughout my
config.log file. '-lpthread' has been set in both CPPFLAGS and LDFLAGS and
if I compiled this small segment of at the commandline it works fine. I
don't understand what going on. I'm using version 3.78 of make from
RedHat. As you can see I have modified the include paths they are correct
I believe.
configure:2345: checking for working const
configure:2399: gcc -c -g -O2 conftest.c 1>&5
configure:2516: gcc -o conftest -g -O2 conftest.c 1>&5
/tmp/cc8hwBxz.o: In function `main':
/home/php-4.0.2/configure:2511: undefined reference to
`pthread_mutexattr_init'
/home/php-4.0.2/configure:2512: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2498 "configure"
#include "confdefs.h"
#include "/usr/include/pthread.h"
#include "/usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/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:2536: checking for pthreads_cflags
Patrick Lanphier
The Artemis Group
http://www.artemisgroup.com