From owner-freebsd-questions Wed Jul 5 11:32:53 2000 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (f294.law8.hotmail.com [216.33.240.169]) by hub.freebsd.org (Postfix) with SMTP id 26E3C37BEFB for ; Wed, 5 Jul 2000 11:32:42 -0700 (PDT) (envelope-from jmd526@hotmail.com) Received: (qmail 92078 invoked by uid 0); 5 Jul 2000 18:32:41 -0000 Message-ID: <20000705183241.92077.qmail@hotmail.com> Received: from 209.220.228.2 by www.hotmail.com with HTTP; Wed, 05 Jul 2000 11:32:41 PDT X-Originating-IP: [209.220.228.2] From: "John Daniels" To: hetzels@westbend.net Cc: freebsd-questions@freebsd.org, freebsd-www@freebsd.org Subject: Re: mod_apache port install Date: Wed, 05 Jul 2000 14:32:41 EDT Mime-Version: 1.0 Content-Type: text/plain; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 #include 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 #include 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