Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Sep 2003 16:37:20 +0000
From:      Jens Rehsack <rehsack@liwing.de>
To:        Roman Neuhauser <neuhauser@bellavista.cz>
Cc:        freebsd-ports <freebsd-ports@freebsd.org>
Subject:   Re: lang/php4-cli build failure
Message-ID:  <3F5618C0.50808@liwing.de>
In-Reply-To: <20030903154539.GA68228@freepuppy.bellavista.cz>
References:  <20030903154539.GA68228@freepuppy.bellavista.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
Roman Neuhauser wrote:
> textproc/libxml2-2.5.10 knobs used:
>     -DWITH_THREADS -DWITH_SCHEMA
> 
> lang/php4-cli-4.3.3 knobs used:
>     -DBATCH PHP4_OPTIONS="BCMATH BZIP2 CDB CRACK CTYPE CURL DOMXML DOMXSLT FTP GD GETTEXT ICONV IMAP INIFILE MBSTRING MCRYPT MHASH MIME MYSQL OPENSSL OVERLOAD PCRE POSIX POSTGRESQL SESSION SOCKETS TOKENIZER XML XMLRPC ZIP ZLIB"
> 
> lang/php4-cli build fails with
> 
> configure:35980: checking for GNU gettext support
> configure:36040: checking for bindtextdomain in -lintl
> configure:36059: cc -o conftest -O2 -pipe    -R/usr/local/lib -L/usr/local/lib -L/usr/local/lib conftest.c -lintl  -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lcurl -lcrack -lbz2 -lz -lssl -lcrypto -lm  -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_cond_init'
> /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'
> 
> provided the above is enough information, what's the quick fix?
> 
Add a '-lc_r' to the libraries php is linked against.

Jens



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