Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Sep 2005 14:23:45 -0400
From:      "\"Adam Gregoire\" <Adam Gregoire" <ebola@psychoholics.org>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Subject:   ports/85982: PHP fails to build when libxml2 is build using WITH_THREADS=yes.
Message-ID:  <1126463025.0@S0106c0ffeec0ffee>
Resent-Message-ID: <200509111830.j8BIU6sh099899@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         85982
>Category:       ports
>Synopsis:       PHP fails to build when libxml2 is build using WITH_THREADS=yes.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 11 18:30:05 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Adam Gregoire
>Release:        FreeBSD 7.0-CURRENT amd64
>Organization:
>Environment:


System: FreeBSD 7.0-CURRENT #16: Sun Sep 11 04:48:02 EDT 2005
    root@S0106c0ffeec0ffee:/usr/obj/usr/src/sys/OPTMZD



>Description:


When WITH_THREADS is defined in /etc/make.conf and libxml2 is built threaed, php build fails.

Following is a snippit from php5-cgi's config.log

configure:18440: checking whether to enable LIBXML support
configure:18487: checking libxml2 install dir
configure:18647: checking whether libxml build works
configure:18674: cc -o conftest -O2 -pipe -march=athlon64   -R/usr/local/lib -L/usr/local/lib conftest.c

         -lm  -lxml2 -lz -liconv -lm 1>&5
/usr/local/lib/libxml2.so: undefined reference to `pthread_equal'
configure: failed program was:
#line 18663 "configure"
#include "confdefs.h"


    char xmlInitParser();
    int main() {
      xmlInitParser();
      return 0;
    }



>How-To-Repeat:


Define WITH_THREADS=yes in make.conf,
recompile libxml2,
try to compile php.


>Fix:





>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1126463025.0>