Re: mod_php4 cannot start apache with /usr/local/lib/libxml2.so.5: Undefined symbol "pthread_equal"
| From: | Marek Kilimajer | Date: | Tue, 29 Apr 2003 11:23:27 +0000 |
| Subject: | Re: mod_php4 cannot start apache with /usr/local/lib/libxml2.so.5: Undefined symbol "pthread_equal" | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145624@lists.php.net to get a copy of this message | ||
Is the symbol defined in pthread library?
Ilya wrote:
Hi I am trying to compile mod_php4 from freebsd ports for second day now. 4.8-STABLE FreeBSD 4.8-STA i386 i386PORTVERSION= 4.3.1At first I was getting errors during configure state: configure:33845: gcc -o conftest -g -O2 -DHARD_SERVER_LIMIT=512 -DDOCUMENT_LOCATION="/usr/local/www/data/" -DDEFAULT_PATH="/u sr/local/bin:/bin:/usr/bin" -DACCEPT_FILTER_NAME="httpready" -DMOD_SSL=20811 4 -DEAPI -DEAPI_MM -DUSE_EXPAT-L/usr/local/lib -R/usr/local/lib -L/usr/local/lib conftest.c -liconv -lz -lsasl2-lcyrus -lcurl -lcrack -lbz2 -lz -lcrypt -lssl -lc rypto -lm -lcrypt -lcurl -lz -lssl -lcrypto -lz -lxml2 -lz -liconv -lm 1>&5 /usr/local/lib/libxml2.so: undefined reference to `pthread_cond_signal' /usr/local/lib/libxml2.so: undefined reference to `pthread_getspecific' /usr/local/lib/libxml2.so: undefined reference to `pthread_equal' /usr/local/lib/libxml2.so: undefined reference to `pthread_once' /usr/local/lib/libxml2.so: undefined reference to `pthread_key_create' /usr/local/lib/libxml2.so: undefined reference to `pthread_mutex_unlock' /usr/local/lib/libxml2.so: undefined reference to `pthread_self' /usr/local/lib/libxml2.so: undefined reference to `pthread_mutex_destroy' /usr/local/lib/libxml2.so: undefined reference to `pthread_mutex_lock' /usr/local/lib/libxml2.so: undefined reference to `pthread_cond_wait' /usr/local/lib/libxml2.so: undefined reference to `pthread_mutex_init' /usr/local/lib/libxml2.so: undefined reference to `pthread_setspecific' I then recompiled mod_php with -pthread option gcc, and I was able to build and compile php successfully. However on start sate apache still complains about one pthread_ option: Cannot load /usr/local/libexec/apache/libphp4.so into server: /usr/local/lib/libxml2.so.5: Undefined symbol "pthread_equal" I have already recompiled libxml2 completely, it does use -pthread option. nm /usr/local/lib/libxml2.so.5|grep pthreadU pthread_cond_signal U pthread_cond_wait U pthread_equal U pthread_getspecific U pthread_key_create U pthread_mutex_destroy U pthread_mutex_init U pthread_mutex_lock U pthread_mutex_unlock U pthread_once U pthread_self U pthread_setspecificdoes anyone know how to get php working. Please let me know, thank you this is my configure line from ports, there is some repetition, but as far as i can see there is no apparent problem in it. ./configure --with-apxs=/usr/local/sbin/apxs --with-config-file-path=/usr/l ocal/etc --enable-versioning --with-regex=system --with-gd --enable-exif --with-cyrus --with-mysql --with-gd=/usr/local --en able-gd-native-ttf --with-freetype-dir=/usr/local --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-zlib --with-bz2= /usr --with-crack=/usr/local --with-mcrypt=/usr/lo cal --with-mhash=/usr/local --with-pdflib=/usr/local --with-zlib-dir=/usr -- with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-tiff-dir=/usr/local --with-imap=/usr/local --with-imap-ssl=/usr/loca l --with-mysql=/usr/local --with-openssl=/usr --wi th-snmp=/usr/local --enable-ucd-snmp-hack --with-openssl=/usr --with-expat-d ir=/usr/local --with-xmlrpc --enable-xslt --with-x slt-sablot=/usr/local --enable-wddx --with-dom=/usr/local --enable-ftp --wit h-curl=/usr/local --with-gettext=/usr/local --with -iconv=/usr/local --with-pspell=/usr/local --enable-mbregex --enable-mbstrin g --enable-bcmath --enable-sockets --enable-trans- sid --prefix=/usr/local i386-portbld-freebsd4.8