Date: Wed, 05 Jul 2000 14:32:41 EDT From: "John Daniels" <jmd526@hotmail.com> To: hetzels@westbend.net Cc: freebsd-questions@freebsd.org, freebsd-www@freebsd.org Subject: Re: mod_apache port install Message-ID: <20000705183241.92077.qmail@hotmail.com>
next in thread | raw e-mail | index | archive | help
Hi: I tried to install mod_php and got the output in the listing below. The pertinent error messages seem to be: /tmp/ccYs2159.o(.text+0x1d): undefined reference to `pthread_mutexattr_init' /tmp/ccYs2159.o(.text+0x31): undefined reference to `pthread_create' -and- /usr/libexec/elf/ld: cannot open -lpthread: No such file or directory >>Attempting to fetch from http://us.php.net/distributions/. Receiving php-4.0.1.tar.gz (1957859 bytes): 100% 1957859 bytes transferred in 110.2 seconds (17.35 Kbytes/s) >>php-4.0.1-4.0.1pl2.diff.gz doesn't seem to exist on this system. >>Attempting to fetch from http://us.php.net/distributions/. Receiving php-4.0.1-4.0.1pl2.diff.gz (1527 bytes): 100% 1527 bytes transferred in 0.0 seconds (71.86 Kbytes/s) ===> Extracting for mod_php-4.0.1.2 >>Checksum OK for php-4.0.1.tar.gz. >>Checksum OK for php-4.0.1-4.0.1pl2.diff.gz. ===> mod_php-4.0.1.2 depends on executable: libtool - found ===> mod_php-4.0.1.2 depends on shared library: gd.1 - found ===> mod_php-4.0.1.2 depends on shared library: mcrypt-2.2.2 - found ===> mod_php-4.0.1.2 depends on shared library: mysqlclient.6 - found ===> mod_php-4.0.1.2 depends on shared library: pq.2 - found ===> Patching for mod_php-4.0.1.2 ===> Applying distribution patches for mod_php-4.0.1.2 ===> Applying FreeBSD patches for mod_php-4.0.1.2 ===> Configuring for mod_php-4.0.1.2 creating cache ./config.cache checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel 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 Updated php_version.h checking whether to enable maintainer-specific portions of Makefiles... no checking host system type... i386--freebsd4.0 checking for bison... no checking for byacc... byacc configure: warning: You will need bison if you want to regenerate the PHP parsers. checking for gcc... cc checking whether the C compiler (cc -O -pipe ) works... yes checking whether the C compiler (cc -O -pipe ) is a cross-compiler... no checking whether we are using GNU C... yes configure:1747: cc -E conftest.c configure:1766: checking whether cc accepts -g configure:1798: checking how to run the C preprocessor configure:1819: cc -E conftest.c >/dev/null 2>conftest.out configure:1878: checking for AIX configure:1915: checking for cc option to accept ANSI C configure:1968: cc -c -O -pipe conftest.c 1>&5 configure:1995: checking for ranlib configure:2027: checking whether cc understands -c and -o together configure:2039: cc -c conftest.c -o conftest.o 1>&5 configure:2040: cc -c conftest.c -o conftest.o 1>&5 configure:2075: checking whether ln -s works configure:2102: checking for flex configure:2135: checking for flex configure:2169: checking for yywrap in -lfl configure:2188: cc -o conftest -O -pipe conftest.c -lfl 1>&5 configure:2211: checking lex output file root configure:2232: checking whether yytext is a pointer configure:2251: cc -o conftest -O -pipe conftest.c -lfl 1>&5 configure:2274: checking for working const configure:2328: cc -c -O -pipe conftest.c 1>&5 configure:2442: cc -o conftest -O -pipe conftest.c 1>&5 /tmp/ccYs2159.o: In function `main': /tmp/ccYs2159.o(.text+0x1d): undefined reference to `pthread_mutexattr_init' /tmp/ccYs2159.o(.text+0x31): undefined reference to `pthread_create' configure: failed program was: #line 2424 "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:2462: checking for pthreads_cflags configure:2495: cc -o conftest -O -pipe -kthread conftest.c 1>&5 /usr/libexec/elf/ld: cannot open -lpthread: No such file or directory configure: failed program was: #line 2477 "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:2495: cc -o conftest -O -pipe -pthread conftest.c 1>&5 configure:2524: checking for pthreads_lib configure:2629: checking for AOLserver support configure:2703: checking for Apache module support via DSO through APXS (end of "config.log") *** Error code 1 Stop in /usr/ports/www/mod_php4. *** Error code 1 Stop in /usr/ports/www/mod_php4. *** Error code 1 Stop in /usr/ports/www/mod_php4. *** Error code 1 Stop in /usr/ports/www/mod_php4. *** Error code 1 Stop in /usr/ports/www/mod_php4. ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000705183241.92077.qmail>