ID: 26141
Updated by: [EMAIL PROTECTED]
Reported By: alan at pair dot com
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: FreeBSD 4.8-STABLE
PHP Version: 4.3.4
New Comment:
Try this configure line:
# rm config.cache && ./configure --disable-all --disable-cgi
# make clean && make
Does it work? That -pthread option is not coming from PHP,
are you sure it's not set by some environment variable when you run
configure/make ??
Previous Comments:
------------------------------------------------------------------------
[2003-11-06 10:31:44] alan at pair dot com
You are correct in the sense that phpinfo() reports "Thread Safety
disabled". But using this patch, the compilation was definitely taking
place with -pthread as an option
to gcc, for whatever reason.
Truthfully, even if threads aren't enabled, I'd rather have it compile
than not compile.
------------------------------------------------------------------------
[2003-11-05 11:12:57] [EMAIL PROTECTED]
With that configure line you won't be enabling any thread stuff.
------------------------------------------------------------------------
[2003-11-05 09:22:47] alan at pair dot com
Description:
------------
By default, libtool uses -pthread, but this causes a compile-time error
with FreeBSD 4.8-STABLE:
libtool: Cannot find library `'
Reproduce code:
---------------
We configured as follows:
./configure --with-apache=/usr/pair/sw/apache_1.3.29
--with-config-file-path=/usr/local/etc --enable-magic-quotes
--enable-bcmath --without-cdb --with-zlib-dir=
/usr/local --with-gd --with-ttf --without-msql
--with-mysql=/usr/local --with-iodbc --with-pdflib
--enable-inline-optimization --disable-memory-limit --with-db
--without-gdbm --with-ndbm --without-db2 --without-dbm --with-gettext
--without-readline --with-recode --without-openssl --with-mcrypt
--without-db3 --enable-dba --with-curl --with-png-dir=/usr/local/lib
--with-jpeg-dir=/usr/local/lib --enable-calendar --with-mhash
--enable-xslt --with-xslt-sablot --with-expat-dir=/usr/local
--enable-gd-lzw-gif
make
However,
I think it can be reproduced with just:
./configure
make
Expected result:
----------------
I expect it to compile.
Actual result:
--------------
It doesn't compile: it spits out a library error, instead.
A Patch:
diff -C 3 ltmain.sh ../php-4.3.3
*** ltmain.sh Mon Feb 10 12:12:17 2003
--- ../php-4.3.3/ltmain.sh Wed Oct 29 07:56:14 2003
***************
*** 1511,1516 ****
--- 1511,1519 ----
fi
continue
;;
+ -pthread) # KJM 10/29/03
+ continue
+ ;;
%DEPLIBS%)
alldeplibs=yes
continue
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26141&edit=1