php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39528 PHP configuration failed while libxml2 compiled with pthreads.
Submitted: 2006-11-16 08:35 UTC Modified: 2006-11-24 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: aleksey dot ovcharenko at gmail dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 5.2.0 OS: FreeBSD 6.1-RELEASE-p7
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-11-16 08:35 UTC] aleksey dot ovcharenko at gmail dot com
Description:
------------
Maybe it somehow related to issue #31256?

I tried to build php5.2-200611160730 snapshot, but configure failed with same error as bellow.

Reproduce code:
---------------
Simply try to build lang/php5 port that depends on libxml2
where libxml2 is build with threads-support.

Expected result:
----------------
I expect the configure phase to complete successfully.

Actual result:
--------------
configure:27639: cc -o conftest -O2 -fno-strict-aliasing -pipe -march=athlon-xp   -R/usr/local/lib -L/usr/local/lib conftest.c

         -lm  -lxml2 -lz -liconv -lm >&5
/usr/local/lib/libxml2.so: undefined reference to `pthread_equal'
configure:27642: $? = 1
configure: program exited with status 1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-16 09:30 UTC] tony2001@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.



 [2006-11-16 10:04 UTC] aleksey dot ovcharenko at gmail dot com
Seems like it's only configure problem. As soon as rebuild libxml2 without pthread I was able to configure and build PHP 5.2.0.

After that I reinstalled libxml2:
# xmllint --version
xmllint: using libxml version 20626
   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude Iconv ISO8859X Unicode Regexps Automata Expr Schemas Schematron Modules Debug

And php binary has been able to see that library:

# php -i | grep -i libxml
Configure Command =>  './configure' '--enable-versioning' '--enable-memory-limit' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection' '--enable-spl' '--program-prefix=' '--enable-fastcgi' '--with-apxs2=/usr/local/sbin/apxs' '--with-regex=php' '--with-zend-vm=CALL' '--enable-zend-multibyte' '--disable-ipv6' '--prefix=/usr/local'
libxml
libXML support => active
libXML Version => 2.6.26
libXML streams => enabled
 [2006-11-24 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 04:01:33 2024 UTC